version 1.2, 1995/12/26 18:00:25 |
version 1.3, 1996/02/23 14:10:42 |
|
|
/* $NetBSD: mloop.c,v 1.4 1995/12/21 10:45:53 mycroft Exp $ */ |
/* $NetBSD: mloop.c,v 1.5 1996/02/08 20:45:03 mycroft Exp $ */ |
|
|
/* |
/* |
* Copyright (c) 1983, 1993 |
* Copyright (c) 1983, 1993 |
|
|
#if 0 |
#if 0 |
static char sccsid[] = "@(#)mloop.c 8.1 (Berkeley) 6/6/93"; |
static char sccsid[] = "@(#)mloop.c 8.1 (Berkeley) 6/6/93"; |
#else |
#else |
static char rcsid[] = "$NetBSD: mloop.c,v 1.4 1995/12/21 10:45:53 mycroft Exp $"; |
static char rcsid[] = "$NetBSD: mloop.c,v 1.5 1996/02/08 20:45:03 mycroft Exp $"; |
#endif |
#endif |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
|
|
if (incmd) { |
if (incmd) { |
docmd(); |
docmd(); |
} else if (wwcurwin->ww_state != WWS_HASPROC) { |
} else if (wwcurwin->ww_state != WWS_HASPROC) { |
if (!wwcurwin->ww_keepopen) |
if (!ISSET(wwcurwin->ww_uflags, WWU_KEEPOPEN)) |
closewin(wwcurwin); |
closewin(wwcurwin); |
setcmd(1); |
setcmd(1); |
if (wwpeekc() == escapec) |
if (wwpeekc() == escapec) |
|
|
p++) |
p++) |
; |
; |
if ((n = p - wwibp) > 0) { |
if ((n = p - wwibp) > 0) { |
if (w->ww_type != WWT_PTY && w->ww_stopped) |
if (w->ww_type != WWT_PTY && |
|
ISSET(w->ww_pflags, WWP_STOPPED)) |
startwin(w); |
startwin(w); |
#if defined(sun) && !defined(BSD) |
#if defined(sun) && !defined(BSD) |
/* workaround for SunOS pty bug */ |
/* workaround for SunOS pty bug */ |