unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Christopher Cramer <crayc@pyro.net>
Cc: guile-devel@gnu.org
Subject: Re: Raw mode for current-input-port.
Date: Sat, 8 Feb 2003 14:30:43 -0600	[thread overview]
Message-ID: <20030208143043.A6243@kiwi.pyrotechnics.com> (raw)
In-Reply-To: <87r8ai904p.fsf@raven.i.defaultvalue.org>; from rlb@defaultvalue.org on Sat, Feb 08, 2003 at 11:02:14AM -0600

On Sat, Feb 08, 2003 at 11:02:14AM -0600, Rob Browning wrote:
> I'd like to have (read-char) return immediately when a key is pressed,
> rather than waiting for a carriage return.  At first I thought setvbuf
> would do it, but then I recalled that that was probably designed for
> output ports.  So do we already have anything suitable?  I'm guessing
> cfmakeraw might work, but I'd need to wrap that.

Right, the buffering is not on the application side, it's on the system
side, so you need to change the terminal mode.  So... there are already
four different Ncurses libaries available.  It should be trivial to make
a soft port that calls getch.

If you can wait a day, I'll be releasing a new version of mine
(current is at http://www.pyro.net/~crayc/guile-ncurses.tar.gz)
tomorrow that will work with 1.6.

-- 
Christopher Cramer <crayc@pyro.net> <http://www.pyro.net/~crayc/>
"All you have to do is tell them they are being attacked and denounce the
pacifists for lack of patriotism and exposing the country to danger. It
works the same way in any country." - Hermann Georing, 1946


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


      reply	other threads:[~2003-02-08 20:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-08 17:02 Raw mode for current-input-port Rob Browning
2003-02-08 20:30 ` Christopher Cramer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030208143043.A6243@kiwi.pyrotechnics.com \
    --to=crayc@pyro.net \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).