/* create a window with a frame */
term_win = newwin(h + 2, w + 2, 1, 2);
wattrset(term_win, COLOR_PAIR(7*8+7-0)); /* black over white */
- wborder(term_win, ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ');
+ wborder(term_win, '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0');
mvwprintw(term_win, 0, 27, " Term In a Box ");
wrefresh(term_win);
/* create the terminal and have it run bash */
rt = rote_vt_create(h, w);
- rote_vt_forkpty(rt, "/bin/bash --login");
+ {
+ const char *path = "/bin/bash";
+ const char *args[] = {"/bin/bash", "--login", NULL};
+
+ rote_vt_forkpty(rt, path, args);
+ }
/* keep reading keypresses from the user and passing them to the terminal;
* also, redraw the terminal to the window at each iteration */