summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ac6690f)
raw | patch | inline | side by side (parent: ac6690f)
author | Kalle Wallin <kaw@linux.se> | |
Mon, 12 Jul 2004 19:50:36 +0000 (19:50 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Mon, 12 Jul 2004 19:50:36 +0000 (19:50 +0000) |
configure.ac | patch | blob | history | |
src/screen.c | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index e2e0a232e2fa73b773c4f83c14d798eea2690ee5..e5f7280087a7d736bb87fb6a14657b985750f184 100644 (file)
--- a/configure.ac
+++ b/configure.ac
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 Debugging
AC_MSG_CHECKING([whether to build with debug support])
AC_ARG_ENABLE([debug],
diff --git a/src/screen.c b/src/screen.c
index 7b29f1f1e17550844d41f9861c35bd58adb785d8..c2c1e7fdaeff5c69fdbb8fabea8b175592c35e83 100644 (file)
--- a/src/screen.c
+++ b/src/screen.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();
/* set cursor invisible */