octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch proposal: force line editing behavior


From: Michael Goffioul
Subject: Patch proposal: force line editing behavior
Date: Sun, 30 Sep 2007 13:23:07 +0200

Hi,

I'd like to propose the attached patch, which adds the possibility
to force line editing behavior. The context is the following. I'm
experimenting the possibility to embed and octave terminal/console
into some GUI component, in the way John wants it (with terminal
emulation). I found some terminal emulation component on the web
and after some hacks, I could get something that works. The main
problem is that the concept of pseudo-terminal does not exist under
Windows. However, terminal emulation can works correctly through
regular pipes between the terminal and octave, with readline
working OK. The problem is that isatty then returns false, which
disables line editing behavior unconditionally. The proposed patch
allows to force line editing, even if isatty returns false.

Michael.

PS: I implemented this using the less intrusive way; another possibility
would be to implement it in the same way as interactive/forced_interactive
options, but this implied touching several files, like parse.cc as well.

Attachment: line_editing.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]