On Fri, Apr 22, 2011 at 3:12 PM, Aurélien Aptel
<aurelien.ap...@gmail.com> wrote:
> On Fri, Apr 22, 2011 at 1:38 PM, Bjartur Thorlacius
> <svartma...@gmail.com> wrote:
>> While I believe we need a simple text UIO widget that doesn't
>> interpret terminal escapes et cetera, I can't see why the shell should
>> even be awere of user keystrokes. Or are you suggesting something like
>> rlwrap read | rc?
>
> It's just how it works. The terminal emulator doesn't interpret the
> keystrokes, it just writes them (as escape sequence) to the stdin of
> the shell. The shell can either ignore them or interpret them
> accordingly.
> On the other hand, the terminal reads and interprets the shell output
> (including escape sequences).
>
Ah, that makes sense. Putting all of the line editing in the shell
seems wrong, but I guess it's necessary for things like deleting whole
words (as only the shell knows about such syntactic details).