diff options
author | Eli Zaretskii <eliz@gnu.org> | 2024-05-04 13:12:21 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2024-05-04 13:12:21 +0300 |
commit | fa0f65aa342e181e0e98f55cbf5d9a9be5ed3be6 (patch) | |
tree | f4f143f00f32a1cfb141aef2279b1bafdcdc9b5d /src/keyboard.h | |
parent | 1121f17d7c4bc3b71edcd0799b894f50aa3a715e (diff) | |
download | emacs-fa0f65aa342e181e0e98f55cbf5d9a9be5ed3be6.tar.gz |
Fix implementation of the --terminal command-line switch
It sounds like this has been broken ever since multi-tty was
added to Emacs.
* src/keyboard.c (dev_tty): New global variable.
* src/keyboard.h: Declare 'dev_tty'.
* src/emacs.c (main): Initialize 'dev_tty'.
* src/term.c (Fcontrolling_tty_p, Fresume_tty, init_tty):
* src/process.c (dissociate_controlling_tty):
* src/keyboard.c (handle_interrupt_signal, handle_interrupt)
(Fset_quit_char): Use 'dev_tty' instead of 'DEV_TTY'. (Bug#70519)
Diffstat (limited to 'src/keyboard.h')
-rw-r--r-- | src/keyboard.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/keyboard.h b/src/keyboard.h index 2ce003fd444..42637ca1cf7 100644 --- a/src/keyboard.h +++ b/src/keyboard.h @@ -521,6 +521,9 @@ extern void mark_kboards (void); extern const char *const lispy_function_keys[]; #endif +/* Terminal device used by Emacs for terminal I/O. */ +extern char *dev_tty; +/* Initial value for dev_tty. */ extern char const DEV_TTY[]; INLINE_HEADER_END |