static char *sccsid
= "@(#)cmd.c 1.3 83/07/20";
while ((c
= bgetc()) >= 0) {
wwputs("No window. ", cmdwin
);
case '1': case '2': case '3': case '4': case '5':
case '6': case '7': case '8': case '9':
if ((w
= wwfind(c
- '0')) == 0) {
write(selwin
->ww_pty
, &buf
, 1);
wwprintf(cmdwin
, "Type ? for help. ");
wwputs("Command: ", cmdwin
);
wwsetcursor(WCurRow(cmdwin
->ww_win
), WCurCol(cmdwin
->ww_win
));
while ((c
= bgetc()) < 0)
if (c
< '1' || c
> '9') {
if ((w
= wwfind(c
- '0')) == 0)
/* bring it to the top just below cmdwin */
buf
[0] = w
->ww_ident
+ '0';