This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Input only readline port
- To: guile at sourceware dot cygnus dot com
- Subject: Input only readline port
- From: Neil Jerram <neil at ossau dot uklinux dot net>
- Date: Sun, 9 Apr 2000 20:09:18 +0100
I don't see why the readline soft port has to be an input-output port,
rather than just an input port. It it doesn't have to be
input-output, I think it is confusing to make it so; hence we should
apply the following patch (which I have been running successfully with
for a few hours).
Obviously, if I'm wrong, please ignore the patch and enlighten me
instead!
Neil
2000-04-09 Neil Jerram <neil@ossau.uklinux.net>
* readline.scm (make-readline-port): Make readline port input only.
Index: readline.scm
===================================================================
RCS file: /cvs/guile/guile/guile-core/guile-readline/readline.scm,v
retrieving revision 1.4
diff -c -r1.4 readline.scm
*** readline.scm 2000/01/25 20:20:48 1.4
--- readline.scm 2000/04/09 19:04:26
***************
*** 75,82 ****
(set! string-index (+ 1 string-index))
res))))))
(make-soft-port
! (vector write-char display #f get-character #f)
! "rw"))))
;;; We only create one readline port. There's no point in having
;;; more, since they would all share the tty and history ---
--- 75,82 ----
(set! string-index (+ 1 string-index))
res))))))
(make-soft-port
! (vector #f #f #f get-character #f)
! "r"))))
;;; We only create one readline port. There's no point in having
;;; more, since they would all share the tty and history ---