TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Jasen Betts
from: Adam Majer
date: 1998-11-15 13:59:04
subject: getchar and EOF

AM>> getch[e]() returns '\x27' I know that (at least under DOS and
AM>> Windows).

 > indeed, but getch() doesn't read from stdin (or any other
 > stream), it reads the keyboard instead. (and as i said it
 > returns 26 if you press ^Z and not '\27' unless you press the '
 > key )

I'm aware of the mistake I've made.

---
* Origin: The AstroMan (1:348/807.11)
SEEN-BY: 396/1 632/0 371 633/260 267 270 371 634/397 635/506 728 639/252
SEEN-BY: 670/218
@PATH: 348/105 12/12 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.