Xref: utzoo comp.sys.amiga:27516 comp.sys.amiga.tech:3107 Path: utzoo!attcan!uunet!mcvax!enea!kth!luth!d87-khd From: d87-khd@sm.luth.se (Karl-Gunnar Hultland) Newsgroups: comp.sys.amiga,comp.sys.amiga.tech Subject: How do I read a character using Modula II? Message-ID: <508@tau.luth.se> Date: 8 Jan 89 00:38:59 GMT Reply-To: Karl-Gunnar Hultland Organization: University of Lulea, Sweden Lines: 34 UUCP-Path: {uunet,mcvax}!enea!tausm.luth.se!d87-khd I've tried to write a routine in Benchmark Modula which would allow me to wait for the user to press one character and then return a char containing the key pressed. But... I've failed using the internal functions listed below Module Function Error Terminal InOut Read Don't start to process until the user type RETURN. TermInOut Read A visit from the guru. CStdIO getchar just returns -1 what ever I do. And as I've used all the options found in the modules (except opening the console as a file and do AmigaDOS Read ) I decided to post this article hoping someone out there has the answer to my problem. <$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$> < Karl 'Kalle' Hultland <$> d87-khd@luth.UUCP | > < Dept. of Comp. sci. <$> d87-khd@tau.luth.se | > < University of Lulea <$> {uunet,mcvax}!enea!tau.luth.se!d87-khd > < Sweden <$> > <$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$> < If two people agree on EVERYTHING , one of them is OBSOLETE!! > <$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$><$>