* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
static char sccsid
[] = "@(#)getch.c 5.3 (Berkeley) %G%";
* This routine reads in a character from the window.
if (!win
->_scroll
&& (win
->_flags
&_FULLWIN
)
&& win
->_curx
== win
->_maxx
- 1 && win
->_cury
== win
->_maxy
- 1)
fprintf(outf
, "WGETCH: _echoit = %c, _rawmode = %c\n", _echoit
? 'T' : 'F', _rawmode
? 'T' : 'F');
if (_echoit
&& !_rawmode
) {
fprintf(outf
,"WGETCH got '%s'\n",unctrl(inp
));
mvwaddch(curscr
, win
->_cury
+ win
->_begy
,
win
->_curx
+ win
->_begx
, inp
);