version 1.1, 1995/10/18 08:46:58 |
version 1.2, 1996/02/23 14:10:51 |
|
|
/* $NetBSD: wwgets.c,v 1.5 1995/09/29 00:44:10 cgd Exp $ */ |
/* $NetBSD: wwgets.c,v 1.6 1996/02/08 20:45:08 mycroft Exp $ */ |
|
|
/* |
/* |
* Copyright (c) 1983, 1993 |
* Copyright (c) 1983, 1993 |
|
|
#if 0 |
#if 0 |
static char sccsid[] = "@(#)wwgets.c 8.1 (Berkeley) 6/6/93"; |
static char sccsid[] = "@(#)wwgets.c 8.1 (Berkeley) 6/6/93"; |
#else |
#else |
static char rcsid[] = "$NetBSD: wwgets.c,v 1.5 1995/09/29 00:44:10 cgd Exp $"; |
static char rcsid[] = "$NetBSD: wwgets.c,v 1.6 1996/02/08 20:45:08 mycroft Exp $"; |
#endif |
#endif |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
|
|
register struct ww *w; |
register struct ww *w; |
{ |
{ |
register char *p = buf; |
register char *p = buf; |
register char c; |
register int c; |
char uc = w->ww_unctrl; |
int uc = ISSET(w->ww_wflags, WWW_UNCTRL); |
static void rub(); |
static void rub(); |
|
|
w->ww_unctrl = 0; |
CLR(w->ww_wflags, WWW_UNCTRL); |
for (;;) { |
for (;;) { |
wwcurtowin(w); |
wwcurtowin(w); |
while ((c = wwgetc()) < 0) |
while ((c = wwgetc()) < 0) |
|
|
} |
} |
} |
} |
*p = 0; |
*p = 0; |
w->ww_unctrl = uc; |
SET(w->ww_wflags, uc); |
} |
} |
|
|
static void |
static void |