[gambit-list] How use (read-char) to read individual characters from the console?
Marc Feeley
feeley at iro.umontreal.ca
Wed Jan 2 12:21:28 EST 2013
Mikael, you need to change the tty mode :
> (tty-mode-set! (repl-input-port) #t #f #t #f 0)
The booleans indicate various settings (ctrl-c handling, input echo, raw input, raw output).
On UNIX, this changes the terminal's line discipline. On Windows, it changes the console mode.
Marc
On 2013-01-02, at 11:59 AM, Mikael <mikael.rcv at gmail.com> wrote:
> Hi,
>
> In using read-char I get results only on a per input line basis. I was trying to switch the input console to byte/character mode instead of line buffered, though I didn't get any result with this.
>
> Any thought or suggestion?
>
> Mikael
>
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
More information about the Gambit-list
mailing list