aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorEli Zaretskii2016-09-05 19:50:59 +0300
committerEli Zaretskii2016-09-05 19:50:59 +0300
commitcfaf18a27c262694750400005e882f1cfc7ff2b0 (patch)
treecf5b3cb11a3dd8ba29f63d64163f5cdae7bd47b6 /src/term.c
parent62e4dc4660cb3b29cfffcad0639e51c7f382ced8 (diff)
downloademacs-cfaf18a27c262694750400005e882f1cfc7ff2b0.tar.gz
emacs-cfaf18a27c262694750400005e882f1cfc7ff2b0.zip
Treat SIGINT correctly in GUI sessions on MS-Windows
* src/w32proc.c (sys_signal): Don't reject SIGINT, as it is supported by MS runtime. * src/term.c (DEV_TTY): Move from here ... * src/conf_post.h (DEV_TTY): ... to here. Separate definitions for WINDOWSNT and for the rest. * src/keyboard.c (handle_interrupt_signal): Use DEV_TTY instead of a literal "/dev/tty". * etc/NEWS: Mention the behavior change.
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/term.c b/src/term.c
index d54ff115f9d..cb684b3aaa6 100644
--- a/src/term.c
+++ b/src/term.c
@@ -58,10 +58,7 @@ static int been_here = -1;
58 58
59/* The name of the default console device. */ 59/* The name of the default console device. */
60#ifdef WINDOWSNT 60#ifdef WINDOWSNT
61#define DEV_TTY "CONOUT$"
62#include "w32term.h" 61#include "w32term.h"
63#else
64#define DEV_TTY "/dev/tty"
65#endif 62#endif
66 63
67static void tty_set_scroll_region (struct frame *f, int start, int stop); 64static void tty_set_scroll_region (struct frame *f, int start, int stop);