From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.lisp.guile.user Subject: Re: non-blocking keyboard input inside customized repl Date: Wed, 29 Jan 2003 14:00:35 -0500 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: References: <3E37325F.8060805@pscomp.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043867375 4791 80.91.224.249 (29 Jan 2003 19:09:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 29 Jan 2003 19:09:35 +0000 (UTC) Cc: guile-user@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18dxaU-0001ET-00 for ; Wed, 29 Jan 2003 20:09:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18dxc0-0003PR-03 for guile-user@m.gmane.org; Wed, 29 Jan 2003 14:11:04 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18dxaV-0003BO-00 for guile-user@gnu.org; Wed, 29 Jan 2003 14:09:31 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18dxZM-0002iJ-00 for guile-user@gnu.org; Wed, 29 Jan 2003 14:08:21 -0500 Original-Received: from multivac.student.cwru.edu ([129.22.96.25] helo=multivac.cwru.edu) by monty-python.gnu.org with smtp (Exim 4.10.13) id 18dxSJ-0000Mb-00 for guile-user@gnu.org; Wed, 29 Jan 2003 14:01:03 -0500 Original-Received: (qmail 4684 invoked by uid 500); 29 Jan 2003 19:00:57 -0000 Original-To: peter@pscomp.com In-Reply-To: <3E37325F.8060805@pscomp.com> (Peter Santoro's message of "Tue, 28 Jan 2003 20:46:07 -0500") Mail-Copies-To: nobody Mail-Followup-To: peter@pscomp.com, guile-user@gnu.org Original-Lines: 16 User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 (i686-pc-linux-gnu) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General Guile related discussions List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:1582 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1582 Peter Santoro wrote: > I would like to be able use non-blocking keyboard input in my > customized REPL user interface. Is there a non-blocking read-char > available in guile, so that the ENTER key doesn't always have to be > pressed? It sounds like what you want is raw terminal input. Non-blocking input is different: it means that (read-char) will return immediately (possibly throwing an exception) even if there is nothing to read yet. For raw terminal input, you'd need tcsetattr, which doesn't seem to be directly available in Guile. But maybe you can use the readline module to do what you want. paul _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user