static char *sccsid
= "@(#)wwinit.c 1.2 83/07/17";
struct ww_tty wwnewtty
= {
{ -1, -1, -1, -1, -1, -1 },
{ -1, -1, -1, -1, -1, -1 },
if (wwgettty(0, &wwoldtty
) < 0)
wwnewtty
.ww_sgttyb
.sg_flags
= wwoldtty
.ww_sgttyb
.sg_flags
;
wwnewtty
.ww_sgttyb
.sg_ispeed
= wwoldtty
.ww_sgttyb
.sg_ispeed
;
wwnewtty
.ww_sgttyb
.sg_ospeed
= wwoldtty
.ww_sgttyb
.sg_ospeed
;
wwnewtty
.ww_lmode
= wwoldtty
.ww_lmode
;
wwnewtty
.ww_pgrp
= wwoldtty
.ww_pgrp
;
wwnewtty
.ww_ldisc
= wwoldtty
.ww_ldisc
;
wwnewtty
.ww_sgttyb
.sg_flags
|= CBREAK
;
wwnewtty
.ww_sgttyb
.sg_flags
&= ~ECHO
;
wwnewtty
.ww_lmode
|= LLITOUT
;
wwnewtty
.ww_tchars
.t_quitc
= wwoldtty
.ww_tchars
.t_quitc
;
if (wwsettty(0, &wwnewtty
) < 0)
if (Winit(&wwnewtty
.ww_sgttyb
, 1) != 0)