mtm | Ncurses-based terminal multiplexer |
| download: https://git.y1.nz/archives/mtm.tar.gz | |
| Files | Log | Refs |
commit 8423bcb513bf87c91f6a12d3e58f08678a6ce1b2 parent 20e3667f4b4a45b34c4bd8daab49889a65065945 Author: Rob King <jking@deadpixi.com> Date: Tue, 8 Aug 2017 16:24:55 -0500 Properly bail if the screen cannot be initialized. Diffstat:
| M | mtm.c | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mtm.c b/mtm.c @@ -894,7 +894,9 @@ main(int argc, char **argv) quit(EXIT_FAILURE, "invalid status interval"); ripoffline(1, doripoff); - initscr(); + if (!initscr()) + quit(EXIT_FAILURE, "could not initialize terminal"); + raw(); noecho(); nonl();
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.