static char *sccsid
= "@(#)cmd.c 3.8 83/08/26";
while ((c
= bgetc()) >= 0) {
(void) wwputs("\r\n", cmdwin
);
case 'h': case 'j': case 'k': case 'l':
case '1': case '2': case '3': case '4': case '5':
case '6': case '7': case '8': case '9':
if ((w
= window
[c
- '1']) == 0) {
(void) wwwrite(selwin
, "\b", 1);
(void) wwwrite(selwin
, "\n", 1);
(void) wwwrite(selwin
, "\033A", 2);
(void) wwwrite(selwin
, "\033C", 2);
wwscroll(selwin
, selwin
->ww_w
.nr
/ 2);
wwscroll(selwin
, - selwin
->ww_w
.nr
/ 2);
wwscroll(selwin
, selwin
->ww_w
.nr
);
wwscroll(selwin
, - selwin
->ww_w
.nr
);
(void) write(selwin
->ww_pty
,
&wwwintty
.ww_tchars
.t_stopc
, 1);
(void) write(selwin
->ww_pty
,
&wwwintty
.ww_tchars
.t_startc
, 1);
/* undocumented commands */
(void) write(selwin
->ww_pty
, &escapec
, 1);
error("Type ? for help.");
(void) wwputs("Command: ", cmdwin
);
wwsetcursor(wwcurrow(cmdwin
), wwcurcol(cmdwin
));
(void) wwputs("Which window? ", cmdwin
);
wwsetcursor(wwcurrow(cmdwin
), wwcurcol(cmdwin
));
while ((c
= bgetc()) < 0)
else if (debug
&& c
== 'f')
else if (debug
&& c
== 'b')
else if (c
>= '1' && c
< NWINDOW
+ '1')
(void) wwputs("\r\n", cmdwin
);
while (w
->ww_back
!= framewin
) {
for (w
= wwhead
.ww_back
; w
!= &wwhead
; w
= w
->ww_back
)
int mode
= w
== selwin
? WWM_REV
: 0;
wwlabel(w
, framewin
, 1, buf
, mode
);
col
= (w
->ww_w
.nc
- strlen(w
->ww_label
)) / 2;
wwlabel(w
, framewin
, col
, w
->ww_label
, mode
);