Open hab25 opened 10 months ago
What would using mistty instead of eat for eshell mode bring, in terms of features? I haven't used eshell much, but it seems that it would, like mistty, already give you access to all Emacs and shell editing tools, since eshell is written in elisp.
I'm currently working on having mistty work on eat instead of just term.el. This is tricky, but if I manage to get it to work, we'd end up with both mistty in eshell and a better, non-flickering, terminal.
What would using mistty instead of eat for eshell mode bring, in terms of features?
It would allow one to have Emacs editing features, as well as the mistty
feature of all rendering being done by the shell through the terminal, while using, from an eshell
buffer, a program that needs a terminal to read input and/or display output properly.
N.b., even if eat
were to implement https://codeberg.org/akib/emacs-eat/issues/121, that would still not have the mistty
feature of all rendering being done by the shell through the terminal.
An example of a program that needs a terminal to read input and/or display output properly is python
(mentioned in mistty
README) which invokes python
's REPL. After invoking that from eat-eshell-mode
, one can press <up>
to have the current command line become the command line that was previously fed into the REPL. However, in contrast to the hypothetical scenario where mistty
was being used instead of eat
here, while the REPL is running one doesn't have access to Emacs editing features or the mistty
feature of all rendering being done by the shell through the terminal.
I'm currently working on having mistty work on eat instead of just term.el. This is tricky, but if I manage to get it to work, we'd end up with both mistty in eshell and a better, non-flickering, terminal.
Awesome.
I could be misunderstanding something about mistty
; please let me know if so.
I haven't used eshell much, but it seems that it would, like mistty, already give you access to all Emacs and shell editing tools, since eshell is written in elisp.
This highlight from the Eshell manual may be useful.
Thank you for the explanation. Yes, I see that mistty could help if you launch a command that takes input from a terminal.
Like eat's
eat-eshell-mode
, which AFAIU creates a temporaryeat
terminal on everyRET
in aneshell
buffer (which invokeseshell-send-input
by default).This would allow me to completely substitute
eat
withmistty
, except for the probably unimportant fact that it seemseat
can grant a performance increase while avoiding flickering.