[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Fw: Re: Reading from STDIN with the hang
From: |
John Cowan |
Subject: |
Re: [Chicken-users] Fw: Re: Reading from STDIN with the hang |
Date: |
Mon, 7 Apr 2014 00:32:45 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Alexej Magura scripsit:
> At the present, my current plan is to try rolling my own (read-char)
> in C, since the one that comes with Chicken Scheme hangs until it
> sees a carriage return.
That's not Scheme, that's the way the terminal driver behaves. You need
to use stty to change the terminal driver to return characters as
soon as they are typed, and then read-char will do what you want it to.
--
John Cowan http://www.ccil.org/~cowan address@hidden
9I should say generally that that marriage was best auspiced, for the
achievement of happiness, which contemplated a relation between a man and a
woman in which the independence was equal, the dependence mutual, and the
obligations reciprocal. --Louis Anspacher (1944)