Skip to content

Commit

Permalink
Merge branch 'master' of github.com:deadpixi/mtm
Browse files Browse the repository at this point in the history
  • Loading branch information
deadpixi committed Jan 19, 2023
2 parents 6af156e + 1335a43 commit b346b86
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
6 changes: 6 additions & 0 deletions config.def.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions mtm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,7 @@ main(int argc, char **argv)

if (!initscr())
quit(EXIT_FAILURE, "could not initialize terminal");
ESCDELAY = ESCAPE_TIME;
raw();
noecho();
nonl();
Expand Down

0 comments on commit b346b86

Please sign in to comment.