diff options
| author | Lars Ingebrigtsen | 2021-08-19 14:18:27 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-08-19 14:18:32 +0200 |
| commit | 6276f73115a0e976ea1e1cfdec231ca6c2396c88 (patch) | |
| tree | 1519282261672da1d6ccb9a128e9abf4c9765227 | |
| parent | 37f0ea99f8dc967f506b70f0d9ccb2a8fe76ca22 (diff) | |
| download | emacs-6276f73115a0e976ea1e1cfdec231ca6c2396c88.tar.gz emacs-6276f73115a0e976ea1e1cfdec231ca6c2396c88.zip | |
stterm doesn't understand all codes that xterm does
* lisp/term/st.el (xterm-st-extra-capabilities): New user option
(bug#50119).
(terminal-init-st): Use it to avoid a two-second timeout.
| -rw-r--r-- | lisp/term/st.el | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lisp/term/st.el b/lisp/term/st.el index 9a1c0646f89..e1db450b3e7 100644 --- a/lisp/term/st.el +++ b/lisp/term/st.el | |||
| @@ -11,9 +11,20 @@ | |||
| 11 | 11 | ||
| 12 | (require 'term/xterm) | 12 | (require 'term/xterm) |
| 13 | 13 | ||
| 14 | (defcustom xterm-st-extra-capabilities '( modifyOtherKeys getSelection | ||
| 15 | setSelection) | ||
| 16 | "Extra capabilities supported under \"stterm\". | ||
| 17 | Some features of screen depend on the terminal emulator in which | ||
| 18 | it runs, which can change when the screen session is moved to another tty." | ||
| 19 | :version "28.1" | ||
| 20 | :type xterm--extra-capabilities-type | ||
| 21 | :group 'xterm) | ||
| 22 | |||
| 14 | (defun terminal-init-st () | 23 | (defun terminal-init-st () |
| 15 | "Terminal initialization function for st." | 24 | "Terminal initialization function for st." |
| 16 | (tty-run-terminal-initialization (selected-frame) "xterm")) | 25 | ;; Using `check' leads to a two-second timeout. |
| 26 | (let ((xterm-extra-capabilities xterm-st-extra-capabilities)) | ||
| 27 | (tty-run-terminal-initialization (selected-frame) "xterm"))) | ||
| 17 | 28 | ||
| 18 | (provide 'term/st) | 29 | (provide 'term/st) |
| 19 | 30 | ||