![]() ![]() By default the backarrowKey variable is set to true and Xterm sends '^H', ASCII value 8. One way to fix the immediate problem of your backspace key sending '^H' (bringing up help in emacs instead of doing a left delete) is to change the backarrowKey variable in Xterm. Please look at the best solution for the preferred fix. They have been included to provide more insight into altering the keycodes are sent and how they are interpreted by the console and applications. The solutions listed here are either partial solutions or less optimal than preferred. There are several methods of fixing or altering the behavior of the backspace key. The xev command is a X tool to show what keycodes are being sent. When this is done its representation of "\e[3~" is "^[[3~" for the delete key. Note that you can type ctrl-v followed by a key on the keyboard to show what key code is being sent for that key. ![]() The solutions shown in the next section address changing Emacs key-map, getting Xterm to send the different key codes, and setting stty's variables. To work around this problem the key-map in Emacs either has to be changed to accept '^H' as delete left or Xterm should send '^?' to delete to the left and tty should be told to expect '^?' as meaning delete left. Some programs, such as Emacs, want to use '^H' (0x08) for commands other than delete. In Xterm's emulate of the vt100 terminal it sends '^H' (0x08) when the backspace key is hit, "\e[3~" when the delete key is hit, and '^H' (0x08) when ctrl-h is hit. ASCII char DEL is 127 in decimal, 0x7f in hex, and alternatively '^?'. ASCII char BS is 08 in decimal, 0x08 in hex, and alternatively '^H'. It is helpful to note the ASCII codes that will be discussed. ![]() The delete key will refer to the key that says "delete" or "del" on it and is expected to delete the character to the right. Throughout the rest of this document it will be referred to as the backspace key. This key is typically called the backspace key, neutrally known as the ruboff key. If Emacs recognizes the key normally above the enter/return key (that produces a delete to the left) as sending the help command rather than the delete to the left command, then you are experiencing this problem.
0 Comments
Leave a Reply. |