delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/08/31/16:00:25

From: rsvagera AT atpibm6000 DOT tuwien DOT ac DOT at (Robert Svagera)
Subject: getch() without curses ?
31 Aug 1997 16:00:25 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <"mr.tuwien..999:31.08.97.13.17.30".cygnus.gnu-win32@mr.tuwien.ac.at>
Mime-Version: 1.0
X-Sender: rsvagera AT atpibm6000 DOT tuwien DOT ac DOT at
Original-To: gnu-win32 AT cygnus DOT com
X-Mailer: <PC Eudora Version 1.4>
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Is it necessary to use curses library to have a function compatible 
to getch() of DOS compilers or would it be possible to change the line 
buffered input stream temporarily to unbuffered (and the terminal mode 
as well, if necessary), read one character and switch back to line 
buffered mode? Is it done this way by DOS C-compilers?

Thank you in advance,
Robert

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019