version 1.1, 1995/10/18 08:46:55 |
version 1.2, 1995/12/26 18:00:25 |
|
|
/* $NetBSD: mloop.c,v 1.3 1995/09/28 10:34:28 tls Exp $ */ |
/* $NetBSD: mloop.c,v 1.4 1995/12/21 10:45:53 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.3 1995/09/28 10:34:28 tls Exp $"; |
static char rcsid[] = "$NetBSD: mloop.c,v 1.4 1995/12/21 10:45:53 mycroft Exp $"; |
#endif |
#endif |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
|
|
register char *p; |
register char *p; |
register n; |
register n; |
|
|
if (wwibp >= wwibq) |
if (wwibp >= wwibq) { |
|
wwibp = wwibq = wwib; |
wwiomux(); |
wwiomux(); |
|
} |
for (p = wwibp; p < wwibq && wwmaskc(*p) != escapec; |
for (p = wwibp; p < wwibq && wwmaskc(*p) != escapec; |
p++) |
p++) |
; |
; |
if ((n = p - wwibp) > 0) { |
if ((n = p - wwibp) > 0) { |
if (!w->ww_ispty && w->ww_stopped) |
if (w->ww_type != WWT_PTY && w->ww_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 */ |