comparison man/mule.texi @ 34691:a80251dea213

keyboard-coding-system
author Dave Love <fx@gnu.org>
date Mon, 18 Dec 2000 17:13:16 +0000
parents 78ec4a7ba765
children 2aa481613ac4
comparison
equal deleted inserted replaced
34690:971ef1cef2cd 34691:a80251dea213
841 Emacs can deduce the proper coding system from your terminal type or 841 Emacs can deduce the proper coding system from your terminal type or
842 your locale specification (@pxref{Language Environments}). 842 your locale specification (@pxref{Language Environments}).
843 843
844 @kindex C-x RET k 844 @kindex C-x RET k
845 @findex set-keyboard-coding-system 845 @findex set-keyboard-coding-system
846 @vindex keyboard-coding-system
846 The command @kbd{C-x @key{RET} k} (@code{set-keyboard-coding-system}) 847 The command @kbd{C-x @key{RET} k} (@code{set-keyboard-coding-system})
848 or the Custom option @code{keyboard-coding-system}
847 specifies the coding system for keyboard input. Character-code 849 specifies the coding system for keyboard input. Character-code
848 translation of keyboard input is useful for terminals with keys that 850 translation of keyboard input is useful for terminals with keys that
849 send non-ASCII graphic characters---for example, some terminals designed 851 send non-ASCII graphic characters---for example, some terminals designed
850 for ISO Latin-1 or subsets of it. 852 for ISO Latin-1 or subsets of it.
851 853
1158 characters: 1160 characters:
1159 1161
1160 @itemize @bullet 1162 @itemize @bullet
1161 @cindex 8-bit input 1163 @cindex 8-bit input
1162 @item 1164 @item
1165 @findex set-keyboard-coding-system
1166 @vindex keyboard-coding-system
1163 If your keyboard can generate character codes 128 and up, representing 1167 If your keyboard can generate character codes 128 and up, representing
1164 non-ASCII characters, you can execute the following expression to enable 1168 non-ASCII characters, use the command @code{M-x
1165 Emacs to understand them: 1169 set-keyboard-coding-system} or the Custom option
1166 1170 @code{keyboard-coding-system} to specify this in the same way as for
1167 @example 1171 multibyte usage (@pxref{Specify Coding}).
1168 (set-input-mode (car (current-input-mode))
1169 (nth 1 (current-input-mode))
1170 0)
1171 @end example
1172 1172
1173 It is not necessary to do this under a window system which can 1173 It is not necessary to do this under a window system which can
1174 distinguish 8-bit characters and Meta keys. If you do this on a normal 1174 distinguish 8-bit characters and Meta keys. If you do this on a normal
1175 terminal, you will probably need to use @kbd{ESC} to type Meta 1175 terminal, you will probably need to use @kbd{ESC} to type Meta
1176 characters.@footnote{In some cases, such as the Linux console and 1176 characters.@footnote{In some cases, such as the Linux console and