blob: a1f68e2f6d1b30b60354414f59c9d3d3a139e021 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<h4 class="subsection">Terminal I/O Encoding</h4> <p>Emacs can use coding systems to decode keyboard input and encode terminal output. This is useful for terminals that transmit or display text using a particular encoding, such as Latin-1. Emacs does not set <code>last-coding-system-used</code> when encoding or decoding terminal I/O. </p> <dl> <dt id="keyboard-coding-system">Function: <strong>keyboard-coding-system</strong> <em>&optional terminal</em>
</dt> <dd><p>This function returns the coding system used for decoding keyboard input from <var>terminal</var>. A value of <code>no-conversion</code> means no decoding is done. If <var>terminal</var> is omitted or <code>nil</code>, it means the selected frame’s terminal. See <a href="multiple-terminals">Multiple Terminals</a>. </p></dd>
</dl> <dl> <dt id="set-keyboard-coding-system">Command: <strong>set-keyboard-coding-system</strong> <em>coding-system &optional terminal</em>
</dt> <dd><p>This command specifies <var>coding-system</var> as the coding system to use for decoding keyboard input from <var>terminal</var>. If <var>coding-system</var> is <code>nil</code>, that means not to decode keyboard input. If <var>terminal</var> is a frame, it means that frame’s terminal; if it is <code>nil</code>, that means the currently selected frame’s terminal. See <a href="multiple-terminals">Multiple Terminals</a>. Note that on modern MS-Windows systems Emacs always uses Unicode input when decoding keyboard input, so the encoding set by this command has no effect on Windows. </p></dd>
</dl> <dl> <dt id="terminal-coding-system">Function: <strong>terminal-coding-system</strong> <em>&optional terminal</em>
</dt> <dd><p>This function returns the coding system that is in use for encoding terminal output from <var>terminal</var>. A value of <code>no-conversion</code> means no encoding is done. If <var>terminal</var> is a frame, it means that frame’s terminal; if it is <code>nil</code>, that means the currently selected frame’s terminal. </p></dd>
</dl> <dl> <dt id="set-terminal-coding-system">Command: <strong>set-terminal-coding-system</strong> <em>coding-system &optional terminal</em>
</dt> <dd><p>This command specifies <var>coding-system</var> as the coding system to use for encoding terminal output from <var>terminal</var>. If <var>coding-system</var> is <code>nil</code>, that means not to encode terminal output. If <var>terminal</var> is a frame, it means that frame’s terminal; if it is <code>nil</code>, that means the currently selected frame’s terminal. </p></dd>
</dl><div class="_attribution">
<p class="_attribution-p">
Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
<a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Terminal-I_002fO-Encoding.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Terminal-I_002fO-Encoding.html</a>
</p>
</div>
|