161 |
Any real spaces in such a key sequence should be ignored; only @key{SPC} |
Any real spaces in such a key sequence should be ignored; only @key{SPC} |
162 |
really means press the space key. |
really means press the space key. |
163 |
|
|
164 |
The ASCII code sent by @kbd{C-x} (except for @kbd{C-?}) is the value |
The @acronym{ASCII} code sent by @kbd{C-x} (except for @kbd{C-?}) is the value |
165 |
that would be sent by pressing just @key{x} minus 96 (or 64 for |
that would be sent by pressing just @key{x} minus 96 (or 64 for |
166 |
upper-case @key{X}) and will be from 0 to 31. On Unix and GNU/Linux |
upper-case @key{X}) and will be from 0 to 31. On Unix and GNU/Linux |
167 |
terminals, the ASCII code sent by @kbd{M-x} is the sum of 128 and the |
terminals, the @acronym{ASCII} code sent by @kbd{M-x} is the sum of 128 and the |
168 |
ASCII code that would be sent by pressing just @key{x}. Essentially, |
@acronym{ASCII} code that would be sent by pressing just @key{x}. Essentially, |
169 |
@key{Control} turns off bits 5 and 6 and @key{Meta} turns on bit |
@key{Control} turns off bits 5 and 6 and @key{Meta} turns on bit |
170 |
7@footnote{ |
7@footnote{ |
171 |
DOS and Windows terminals don't set bit 7 when the @key{Meta} key is |
DOS and Windows terminals don't set bit 7 when the @key{Meta} key is |
172 |
pressed.}. |
pressed.}. |
173 |
|
|
174 |
@kbd{C-?} (aka @key{DEL}) is ASCII code 127. It is a misnomer to call |
@kbd{C-?} (aka @key{DEL}) is @acronym{ASCII} code 127. It is a misnomer to call |
175 |
@kbd{C-?} a ``control'' key, since 127 has both bits 5 and 6 turned ON. |
@kbd{C-?} a ``control'' key, since 127 has both bits 5 and 6 turned ON. |
176 |
Also, on very few keyboards does @kbd{C-?} generate ASCII code 127. |
Also, on very few keyboards does @kbd{C-?} generate @acronym{ASCII} code 127. |
177 |
|
|
178 |
@inforef{Text Characters, Text Characters, emacs}, and @inforef{Keys, |
@inforef{Text Characters, Text Characters, emacs}, and @inforef{Keys, |
179 |
Keys, emacs}, for more information. (@xref{On-line manual}, for more |
Keys, emacs}, for more information. (@xref{On-line manual}, for more |
4541 |
@cindex Help invoked by Backspace |
@cindex Help invoked by Backspace |
4542 |
@cindex DEL key does not delete |
@cindex DEL key does not delete |
4543 |
|
|
4544 |
The @key{Backspace} key (on most keyboards) generates ASCII code 8. |
The @key{Backspace} key (on most keyboards) generates @acronym{ASCII} code 8. |
4545 |
@kbd{C-h} sends the same code. In Emacs by default @kbd{C-h} invokes |
@kbd{C-h} sends the same code. In Emacs by default @kbd{C-h} invokes |
4546 |
help-command. This is intended to be easy to remember since the first |
help-command. This is intended to be easy to remember since the first |
4547 |
letter of @samp{help} is @samp{h}. The easiest solution to this problem |
letter of @samp{help} is @samp{h}. The easiest solution to this problem |
4739 |
@cindex Lacking an Escape key |
@cindex Lacking an Escape key |
4740 |
@cindex Escape key, lacking |
@cindex Escape key, lacking |
4741 |
|
|
4742 |
Type @kbd{C-[} instead. This should send ASCII code 27 just like an |
Type @kbd{C-[} instead. This should send @acronym{ASCII} code 27 just like an |
4743 |
Escape key would. @kbd{C-3} may also work on some terminal (but not |
Escape key would. @kbd{C-3} may also work on some terminal (but not |
4744 |
under X). For many terminals (notably DEC terminals) @key{F11} |
under X). For many terminals (notably DEC terminals) @key{F11} |
4745 |
generates @key{ESC}. If not, the following form can be used to bind it: |
generates @key{ESC}. If not, the following form can be used to bind it: |
4791 |
@item |
@item |
4792 |
Not all modifiers are permitted in all situations. @key{Hyper}, |
Not all modifiers are permitted in all situations. @key{Hyper}, |
4793 |
@key{Super}, and @key{Alt} are not available on Unix character |
@key{Super}, and @key{Alt} are not available on Unix character |
4794 |
terminals. Non-ASCII keys and mouse events (e.g. @kbd{C-=} and |
terminals. Non-@acronym{ASCII} keys and mouse events (e.g. @kbd{C-=} and |
4795 |
@kbd{Mouse-1}) also fall under this category. |
@kbd{Mouse-1}) also fall under this category. |
4796 |
|
|
4797 |
@end itemize |
@end itemize |
4821 |
find out what keysym your @key{Meta} key generates. It should be either |
find out what keysym your @key{Meta} key generates. It should be either |
4822 |
@code{Meta_L} or @code{Meta_R}. If it isn't, use @file{xmodmap} to fix |
@code{Meta_L} or @code{Meta_R}. If it isn't, use @file{xmodmap} to fix |
4823 |
the situation. If @key{Meta} does generate @code{Meta_L} or |
the situation. If @key{Meta} does generate @code{Meta_L} or |
4824 |
@code{Meta_R}, but @kbd{M-x} produces a non-ASCII character, put this in |
@code{Meta_R}, but @kbd{M-x} produces a non-@acronym{ASCII} character, put this in |
4825 |
your @file{~/.Xdefaults} file: |
your @file{~/.Xdefaults} file: |
4826 |
|
|
4827 |
@example |
@example |
4914 |
display or is invoked with @samp{emacs -nw}, you typically need to use |
display or is invoked with @samp{emacs -nw}, you typically need to use |
4915 |
@code{set-terminal-coding-system} to tell Emacs what the terminal can |
@code{set-terminal-coding-system} to tell Emacs what the terminal can |
4916 |
display, even after setting the language environment; otherwise |
display, even after setting the language environment; otherwise |
4917 |
non-ASCII characters will display as @samp{?}. On other operating |
non-@acronym{ASCII} characters will display as @samp{?}. On other operating |
4918 |
systems, such as MS-DOS and MS-Windows, Emacs queries the OS about the |
systems, such as MS-DOS and MS-Windows, Emacs queries the OS about the |
4919 |
character set supported by the display, and sets up the required |
character set supported by the display, and sets up the required |
4920 |
terminal coding system automatically. |
terminal coding system automatically. |