static char *sccsid
= "@(#)mloop.c 3.1 83/09/02";
if (!incmd
&& selwin
->ww_state
!= WWS_HASPROC
) {
* Loop until we get some keyboard input.
while (imask
= 1, wwforce(&imask
) < 0)
if ((ibufc
= read(0, ibuf
, sizeof ibuf
)) < 0) {
* Weird loop. Copy the buffer to the pty
* and stopping on the escape character
* in a hopefully efficient way.
* Probably a good thing to make ibufc == 1 a special
for (p
= ibufp
, n
= ibufc
;;) {
(void) write(selwin
->ww_pty
, ibufp
, ibufc
);
(void) write(selwin
->ww_pty
,