-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
Elvish crashes in Emacs terminal mode #40
Comments
This is weird. I will try to reproduce this on Ubuntu 12.04. |
I tried building elvish on Ubuntu 12.04 with go 1.4.1 and could not reproduce the issue. Could you try again with the latest commit? If there is still a problem, please provide me the version of the go toolchain as well as the terminal you are using; it looks like a terminal-related problem. |
still there, crashing at writer.go:216 go1.3.3
|
Thanks. Now I can reproduce that. I'll look into it some time. The editor part of Elvish makes quite some assumptions about the terminal so it's no surprise that it panics when run in an exotic terminal. It should be programmed more defensively though. |
The Emacs 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. I fixed the code so that it will now no longer panic. But Elvish still will not function properly (e.g. you will see some garbage characters) since the line editor relies on the availability of the more advanced terminal capabilities. Actually the line editor of Elvish in its currently form is essentially a full-screen application comparable to Vim. I might add some "fallback mode" to the line editor at some time in future. |
For further discussion, see #41. |
linux/amd64/ubuntu12.04
version:
"commit 0c77f30
Author: Cheer Xiao xiaqqaix@gmail.com
Date: Tue Dec 9 14:40:04 2014 +0100
"
The text was updated successfully, but these errors were encountered: