summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 64fd428)
raw | patch | inline | side by side (parent: 64fd428)
author | Max Kellermann <max@duempel.org> | |
Mon, 6 Oct 2008 12:31:33 +0000 (14:31 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Mon, 6 Oct 2008 12:31:33 +0000 (14:31 +0200) |
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...
ncurses to raw mode. Anyway, it was commented out and didn't work...
configure.ac | patch | blob | history | |
src/command.c | patch | blob | history | |
src/main.c | patch | blob | history | |
src/ncu.c | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 67ea2e3bb1d8e2f9b44d914dd2c12e93558df0c8..4aa392e5008a1674d4f80840934e947ca2b29269 100644 (file)
--- a/configure.ac
+++ b/configure.ac
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 b107ba3f08b388c3da26381eab9232a139270878..b18a98b1446ab5c2799030086038199a60a24623 100644 (file)
--- a/src/command.c
+++ b/src/command.c
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 da9f55389a321abcdf7340fcf07f524c585aa1df..5f55c490de59f9701e8a7c670a87d8397b43fe2c 100644 (file)
--- a/src/main.c
+++ b/src/main.c
static void
catch_sigcont(mpd_unused int sig)
{
-#ifdef ENABLE_RAW_MODE
- reset_prog_mode(); /* restore tty modes */
- refresh();
-#endif
screen_resize(mpd);
}
diff --git a/src/ncu.c b/src/ncu.c
index 936e78aa5b52e351be499add2a9015c9fb16afc5..1ade90b4078020f4a5be9db3f788a590c783be40 100644 (file)
--- a/src/ncu.c
+++ b/src/ncu.c
/* 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();