commit b346b86208007762d8f6b006722e4f0113446820
parent 6af156ec2f3313326ef71a3c16dd50902e0f12fe
Author: Rob King <rob@frigidriver.com>
Date: Thu, 19 Jan 2023 09:35:30 -0600
Merge branch 'master' of github.com:deadpixi/mtm
Diffstat:
3 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/README.rst b/README.rst
@@ -55,6 +55,10 @@ Installation and configuration is fairly simple:
make CURSESLIB=curses
+ or::
+
+ make HEADERS='-DNCURSESW_INCLUDE_H="<ncurses.h>"'
+
whichever works for you.
- Run `make install` if desired.
diff --git a/config.def.h b/config.def.h
@@ -26,6 +26,12 @@
#define DEFAULT_TERMINAL "screen-bce"
#define DEFAULT_256_COLOR_TERMINAL "screen-256color-bce"
+/* Sets how long (in milliseconds) mtm should wait for an escape sequence
+ * to follow after the escape key is pressed before sending it on to
+ * the focused virtual terminal.
+ */
+#define ESCAPE_TIME 500
+
/* mtm supports a scrollback buffer, allowing users to scroll back
* through the output history of a virtual terminal. The SCROLLBACK
* knob controls how many lines are saved (minus however many are
diff --git a/mtm.c b/mtm.c
@@ -1155,6 +1155,7 @@ main(int argc, char **argv)
if (!initscr())
quit(EXIT_FAILURE, "could not initialize terminal");
+ ESCDELAY = ESCAPE_TIME;
raw();
noecho();
nonl();