diff options
Diffstat (limited to 'devdocs/elisp/terminal-i_002fo-encoding.html')
| -rw-r--r-- | devdocs/elisp/terminal-i_002fo-encoding.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/devdocs/elisp/terminal-i_002fo-encoding.html b/devdocs/elisp/terminal-i_002fo-encoding.html new file mode 100644 index 00000000..a1f68e2f --- /dev/null +++ b/devdocs/elisp/terminal-i_002fo-encoding.html @@ -0,0 +1,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> |
