On 2007-10-09, Andreas Leppert <[EMAIL PROTECTED]> wrote: > On Mon, Oct 08, 2007 at 02:36:30PM -0700, Gary Johnson wrote: > > Since you didn't elaborate on what you mean by "return" except that > > it is not the same as "enter", I assume that you mean an ASCII > > carriage return, 0x0D. That is the same character as Ctrl-J. > > Well, I did not know that Ctrl-J is the same character as "Return" / > 0x0D, now it makes sense why mutt is behaving as I've described it. > > Are there other mappings which overrides standards keys? I mean Ctrl-J > is overlapping with <Return>, are there others?
>From the standpoint of an application running in a terminal, Ctrl-J is identical to Carriage Return--those are two names for the same character. You can get a table of the names of all the ASCII character codes on a Unix system by executing man ascii You might find more meaningful names, spelled out, by Googling for ASCII. > Is there a tool which tells me the characters of keystrokes? > xev does not work for key combinations. Yes, there is such a tool built into mutt. From the index, type :exec what-key and hit enter. I just tried this and it seems a little broken. The following keys, <Enter> Ctrl-J Ctrl-M are all displayed as Char = <Return>, Octal = 12, Decimal = 10 Getting back to the subject of overlapping keys, applications that are designed to accept input from a terminal, as mutt is, accept only sequences of 7-bit or 8-bit characters because that's all the original terminals supported. Applications that are designed to run in a GUI often have access to the raw key codes generated by the keyboard, so they can distinguish the left Ctrl key from the right Ctrl key and can detect combinations such as Shift-Tab which don't exist in ASCII. This causes a lot of confusion among newcomers who don't understand why they can use all sorts of key combinations in a GUI program but can't use those combinations in program running in a terminal. > I've changed my sidebar settings to the standard values, now everything > is good. Thanks Gary! You're welcome. Regards, Gary