From 39df9f197b987e0a2c564276d5b65a97f1fb2700 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Fri, 3 Jan 2014 23:11:45 +0100 Subject: Style corrections. --- monitor/disp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'monitor/disp.c') 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; -- cgit v1.2.3