version 1.1, 1995/10/18 08:46:57 |
version 1.2, 1995/12/26 18:00:27 |
|
|
/* $NetBSD: win.c,v 1.5 1995/09/29 00:44:08 cgd Exp $ */ |
/* $NetBSD: win.c,v 1.6 1995/12/21 10:46:01 mycroft Exp $ */ |
|
|
/* |
/* |
* Copyright (c) 1983, 1993 |
* Copyright (c) 1983, 1993 |
|
|
#if 0 |
#if 0 |
static char sccsid[] = "@(#)win.c 8.1 (Berkeley) 6/6/93"; |
static char sccsid[] = "@(#)win.c 8.1 (Berkeley) 6/6/93"; |
#else |
#else |
static char rcsid[] = "$NetBSD: win.c,v 1.5 1995/09/29 00:44:08 cgd Exp $"; |
static char rcsid[] = "$NetBSD: win.c,v 1.6 1995/12/21 10:46:01 mycroft Exp $"; |
#endif |
#endif |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
|
|
error("Illegal window position."); |
error("Illegal window position."); |
return 0; |
return 0; |
} |
} |
w = wwopen(haspty ? WWO_PTY : WWO_SOCKET, nrow, ncol, row, col, nline); |
w = wwopen(haspty ? WWT_PTY : WWT_SOCKET, 0, nrow, ncol, row, col, nline); |
if (w == 0) { |
if (w == 0) { |
error("Can't open window: %s.", wwerror()); |
error("Can't open window: %s.", wwerror()); |
return 0; |
return 0; |
|
|
{ |
{ |
register struct ww *w; |
register struct ww *w; |
|
|
if ((w = wwopen(0, nrow, wwncol, 2, 0, 0)) == 0) |
if ((w = wwopen(WWT_INTERNAL, 0, nrow, wwncol, 2, 0, 0)) == 0) |
return 0; |
return 0; |
w->ww_mapnl = 1; |
w->ww_mapnl = 1; |
w->ww_hasframe = 1; |
w->ww_hasframe = 1; |
|
|
stopwin(w) |
stopwin(w) |
register struct ww *w; |
register struct ww *w; |
{ |
{ |
if (w->ww_pty >= 0 && w->ww_ispty && wwstoptty(w->ww_pty) < 0) |
if (w->ww_pty >= 0 && w->ww_type == WWT_PTY && wwstoptty(w->ww_pty) < 0) |
error("Can't stop output: %s.", wwerror()); |
error("Can't stop output: %s.", wwerror()); |
else |
else |
w->ww_stopped = 1; |
w->ww_stopped = 1; |
|
|
startwin(w) |
startwin(w) |
register struct ww *w; |
register struct ww *w; |
{ |
{ |
if (w->ww_pty >= 0 && w->ww_ispty && wwstarttty(w->ww_pty) < 0) |
if (w->ww_pty >= 0 && w->ww_type == WWT_PTY && wwstarttty(w->ww_pty) < 0) |
error("Can't start output: %s.", wwerror()); |
error("Can't start output: %s.", wwerror()); |
else |
else |
w->ww_stopped = 0; |
w->ww_stopped = 0; |