X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=demo%2Fboxshell.c;h=00a11a099d4c2d98d1eba162cd5fd1cdc7a7c479;hb=800cf6341f10d4c927c5ee77a5351b684a431ac1;hp=7c9512d423fc57c9e48a0fb14a37333c692ad1f2;hpb=f5196e6e851c7d1dcf8c7e9c50f4da314c6ac238;p=apps%2Fmadtty.git diff --git a/demo/boxshell.c b/demo/boxshell.c index 7c9512d..00a11a0 100644 --- a/demo/boxshell.c +++ b/demo/boxshell.c @@ -61,6 +61,7 @@ int main(void) int ch; FD_ZERO(&rfds); + FD_SET(0, &rfds); FD_SET(rt->pty, &rfds); if (select(rt->pty + 1, &rfds, NULL, NULL, &tv) > 0) { @@ -72,7 +73,7 @@ int main(void) while ((ch = getch()) != ERR) { #if 0 - if (ch == KEY_F(3)) { + if (ch == KEY_F(1)) { struct winsize ws = { .ws_row = --rt->rows, .ws_col = --rt->cols,