getmaxyx(main_w, mh, mw);
SigChild = 0;
- rt = madtty_create(mh - 1, mw);
+ rt = madtty_create(mh - 2, mw);
pid = madtty_forkpty(rt, args[0], args, &pty);
if (pid < 0) {
madtty_destroy(rt);
return;
}
+ SETCOLOR(main_w, MT_COLOR_SIDEBAR);
+ mvwhline(main_w, 0, 0, ACS_HLINE, mw);
+
nodelay(stdscr, true);
gettimeofday(&next, NULL);
while (!SigChild) {
gettimeofday(&tv, NULL);
if (dirty && is_expired(tv, next)) {
- madtty_draw(rt, main_w, 0, 0);
+ madtty_draw(rt, main_w, 1, 0);
wrefresh(main_w);
dirty = 0;
next = timeval_add(tv, slice);