Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The line editor does work under Emacs shell mode #41

Open
xiaq opened this issue Jan 21, 2015 · 2 comments
Open

The line editor does work under Emacs shell mode #41

xiaq opened this issue Jan 21, 2015 · 2 comments
Labels

Comments

@xiaq
Copy link
Member

xiaq commented Jan 21, 2015

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 xiaq changed the title The line editor does work under Emacs terminal mode The line editor does work under Emacs shell mode Jan 22, 2015
@glycerine
Copy link

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

@xiaq
Copy link
Member Author

xiaq commented Jan 22, 2015

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

@xiaq xiaq added bug and removed PART-edit labels Feb 24, 2015
@xiaq xiaq added this to the 1.0 milestone Mar 16, 2018
@xiaq xiaq removed this from the 1.0 milestone Apr 6, 2019
@xiaq xiaq added the bug label Feb 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants