Path: utzoo!utgpu!water!watmath!clyde!bellcore!tness7!killer!elg From: elg@killer.UUCP (Eric Green) Newsgroups: comp.sys.amiga.tech Subject: Re: How do I enable instant IO on console window Message-ID: <4348@killer.UUCP> Date: 4 Jun 88 08:25:11 GMT References: <3630@ece-csc.UUCP> Organization: The Unix(R) Connection, Dallas, Texas Lines: 22 in article <3630@ece-csc.UUCP>, rss@ece-csc.UUCP (Ralph Scherp) says: > Got a question which should be simple for all you Amiga wizards out there... > > How can I disable buffering on a console window so that functions like > "getchar()" return key-strokes as keys are pressed, rather than after > the user hits the RETURN key? You might just want to open your own window, and do all i/o to there. It's friendlier, anyhow... if someone says "run myprog", they don't expect "myprog" to be garbaging up the current CLI window. Of course the difficulty there is that you have to write your own I/O routines to deal with your custom window. No big deal, really.... the stdio functions are pretty useless for all custom screen handling, anyhow. A good source of examples is MicroEmacs. I ripped my console I/O stuff right out of it (and Mike et. al. before me ripped it straight out of the RKM). -- Eric Lee Green {cuae2,ihnp4}!killer!elg Snail Mail P.O. Box 92191 Lafayette, LA 70509 "Is a dream a lie if it don't come true, or is it something worse?"