This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Input only readline port


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 ---

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]