aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-09 07:45:20 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-09 07:45:20 +0100
commit015652e37948ceeda7921664d359448b2e8ea224 (patch)
treee68971e059892c676182e718cde79bd1df936e02
parentc298b6fc97d000f7a823b21e04464e7cdd8d3a18 (diff)
downloadsdn-015652e37948ceeda7921664d359448b2e8ea224.tar.gz
sdn-015652e37948ceeda7921664d359448b2e8ea224.tar.xz
sdn-015652e37948ceeda7921664d359448b2e8ea224.zip
Fix build with recent ncurses
Easily gained, easily lost. No more ^S binding.
-rw-r--r--sdn.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/sdn.cpp b/sdn.cpp
index a68f05c..6017c51 100644
--- a/sdn.cpp
+++ b/sdn.cpp
@@ -1841,9 +1841,12 @@ int main (int argc, char *argv[]) {
pop_levels (g.cwd);
update ();
+ // Cunt, now I need to reïmplement all signal handling
+#if NCURSES_VERSION_PATCH < 20210821
// This gets applied along with the following halfdelay()
cur_term->Nttyb.c_cc[VSTOP] =
cur_term->Nttyb.c_cc[VSTART] = _POSIX_VDISABLE;
+#endif
// Invoking keypad() earlier would make ncurses flush its output buffer,
// which would worsen start-up flickering