diff options
author | Max Kellermann <max@duempel.org> | 2008-10-06 14:31:33 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-06 14:31:33 +0200 |
commit | 07df83b7b074106ae391187feffba570748e990f (patch) | |
tree | 6b5a4a0d1baf62eb38a3d1f85f1fa6773072c544 | |
parent | 64fd42870e71609d7493e6b0c161058a5db55243 (diff) | |
download | mpd-07df83b7b074106ae391187feffba570748e990f.tar.gz mpd-07df83b7b074106ae391187feffba570748e990f.tar.xz mpd-07df83b7b074106ae391187feffba570748e990f.zip |
disable ncurses raw mode
We're better off doing our own signal handling, instead of switching
ncurses to raw mode. Anyway, it was commented out and didn't work...
-rw-r--r-- | configure.ac | 12 | ||||
-rw-r--r-- | src/command.c | 9 | ||||
-rw-r--r-- | src/main.c | 4 | ||||
-rw-r--r-- | src/ncu.c | 5 |
4 files changed, 0 insertions, 30 deletions
diff --git a/configure.ac b/configure.ac index 67ea2e3bb..4aa392e50 100644 --- a/configure.ac +++ b/configure.ac @@ -122,18 +122,6 @@ else AM_PO_SUBDIRS fi -dnl disbale raw mode -AC_MSG_CHECKING([Place the terminal into raw mode]) -AC_ARG_ENABLE([raw-mode], - AC_HELP_STRING([--disable-raw-mode], - [Disable raw terminal mode]), - [use_raw=$enableval], - [use_raw=yes]) -AC_MSG_RESULT([$use_raw]) -if test "x$use_raw" = "xyes" ; then - AC_DEFINE([ENABLE_RAW_MODE], [1], [Place the terminal into raw mode]) -fi - dnl enable colors AC_MSG_CHECKING([color support]) AC_ARG_ENABLE([colors], diff --git a/src/command.c b/src/command.c index b107ba3f0..b18a98b14 100644 --- a/src/command.c +++ b/src/command.c @@ -398,15 +398,6 @@ my_wgetch(WINDOW *w) c = wgetch(w); -#ifdef ENABLE_RAW_MODE - /* handle SIGSTOP (Ctrl-Z) */ - if (c == 26 || c == 407) - sigstop(); - /* handle SIGINT (Ctrl-C) */ - if (c == 3) - kill(getpid(), SIGTERM); -#endif - return c; } diff --git a/src/main.c b/src/main.c index da9f55389..5f55c490d 100644 --- a/src/main.c +++ b/src/main.c @@ -139,10 +139,6 @@ catch_sigint(mpd_unused int sig) static void catch_sigcont(mpd_unused int sig) { -#ifdef ENABLE_RAW_MODE - reset_prog_mode(); /* restore tty modes */ - refresh(); -#endif screen_resize(mpd); } @@ -42,11 +42,6 @@ ncu_init(void) /* tell curses not to do NL->CR/NL on output */ nonl(); - /* use raw mode (ignore interrupt,quit,suspend, and flow control ) */ -#ifdef ENABLE_RAW_MODE - // raw(); -#endif - /* don't echo input */ noecho(); |