summaryrefslogtreecommitdiff
path: root/monitor/disp.c
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-03 23:11:45 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-03 23:11:45 +0100
commit39df9f197b987e0a2c564276d5b65a97f1fb2700 (patch)
tree820be10ff513108eebb7be35c083deb3169f9c3a /monitor/disp.c
parent2392043f5e44af97a8d84d05fa02c13ece0adcb0 (diff)
downloadSystDigit-Projet-39df9f197b987e0a2c564276d5b65a97f1fb2700.tar.gz
SystDigit-Projet-39df9f197b987e0a2c564276d5b65a97f1fb2700.zip
Style corrections.
Diffstat (limited to 'monitor/disp.c')
-rw-r--r--monitor/disp.c8
1 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;