diff options
Diffstat (limited to 'monitor')
-rw-r--r-- | monitor/disp.c | 8 | ||||
-rwxr-xr-x | monitor/mon | bin | 17487 -> 17656 bytes |
2 files changed, 4 insertions, 4 deletions
diff --git a/monitor/disp.c b/monitor/disp.c index 5a699de..7eaedc0 100644 --- a/monitor/disp.c +++ b/monitor/disp.c @@ -10,8 +10,6 @@ command line */ -#define STATUS_WIN_WIDTH 60 - static void disp_cmdline(); static char command[100]; @@ -26,13 +24,15 @@ void disp_init() { noecho(); nonl(); - wpstatus = newwin(LINES - 4, STATUS_WIN_WIDTH, 1, 1); - wpoutput = newwin(LINES - 4, COLS - STATUS_WIN_WIDTH - 3, 1, STATUS_WIN_WIDTH + 2); + const int status_win_width = COLS / 2 + 5; + wpstatus = newwin(LINES - 4, status_win_width, 1, 1); + wpoutput = newwin(LINES - 4, COLS - status_win_width - 3, 1, status_win_width + 2); wcmdline = newwin(1, COLS - 2, LINES - 2, 1); intrflush(wcmdline, FALSE); keypad(wcmdline, TRUE); nodelay(wcmdline, TRUE); + scrollok(wpoutput, TRUE); cmd_pos = 0; command[0] = 0; diff --git a/monitor/mon b/monitor/mon Binary files differindex d74f52a..0c60bde 100755 --- a/monitor/mon +++ b/monitor/mon |