views:

82

answers:

1

Sometimes, when I am using less within a screen tab, the arrow keys display ^[OA, ^[OB, ^[OC, and ^[OD instead of doing what I want them to do. Is there something I can do to fix this and gain control of less again?

A: 
  • If it happens from time to time, it seems, that some application (e.g. cat or less a binary file) shatters your console by sending it control characters. You need to run reset command from command line to recover.
  • Otherwise you have to trick your terminal application. I suggest you to use CryptoTerm which allows you to define custom key mappings.
dma_k