projects
/
apps
/
madtty.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix color initialization, we can recurse into ourselves now \o/
[apps/madtty.git]
/
demo
/
boxshell.c
diff --git
a/demo/boxshell.c
b/demo/boxshell.c
index
7c9512d
..
00a11a0
100644
(file)
--- a/
demo/boxshell.c
+++ b/
demo/boxshell.c
@@
-61,6
+61,7
@@
int main(void)
int ch;
FD_ZERO(&rfds);
int ch;
FD_ZERO(&rfds);
+ FD_SET(0, &rfds);
FD_SET(rt->pty, &rfds);
if (select(rt->pty + 1, &rfds, NULL, NULL, &tv) > 0) {
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
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,
struct winsize ws = {
.ws_row = --rt->rows,
.ws_col = --rt->cols,