elvish icon indicating copy to clipboard operation
elvish copied to clipboard

The line editor does work under Emacs shell mode

Open xiaq opened this issue 10 years ago • 2 comments

The Emacs shell mode pseudo-tty has really limited capability. For one thing, it does not implement the TIOCGWINSZ ioctl call properly, which is used is query the window size. Instead of the actual window size it always indicates a width of 0 and a height of 0.

The line editor of Elvish in its currently form is essentially a full-screen application comparable to Vim and thus relies heavily on the availability of the window dimension information and cursor movement control codes.

Some kind of line-oriented (instead of screen-oriented) "fallback mode" of the line editor is needed for it to function properly under Emacs shell mode.

xiaq avatar Jan 21 '15 23:01 xiaq

@xiaq, thanks for the #40 fix. I run all my shells inside emacs, so it would be great if elvish were emacs compatible.

glycerine avatar Jan 22 '15 07:01 glycerine

Interestingly, the line editor does not function in term and ansi-term modes of Emacs either. This is worth investigating.

xiaq avatar Jan 22 '15 10:01 xiaq