}
/*
}
/*
w: write and quit
*/
case
'w' :
return;
/* q: quit without writing */
case
'q':
endwin();
exit
(1) ;
default:
flashO;
break;
}
*
Insert mode: accept characters and insert them.
*
End with -D or EIC.
*/
input
0
{
}
int
c;
standout 0 ;
mvaddstr(LINES-1, COLS-20, "INPUT MODE");
standend();
move(row,col);
refreshO;
for (;;) {
}
c
=
getchO;
if (c
==
CTRL(D)
I I
c
break;
insch(c);
move(row, ++col);
refreshO;
move (LINES-1, COLS-20);
clrtoeolO;
move(row,col);
refresh();
Program Operation
3-27