开发者

what would be a good alternative to ncurses that will work under emacs shell?

I'm an avid Emacs user and love shell-mode that in my opinion brings the best of two worlds: Emacs buffers and terminal emulators. For me shell-mode's biggest down fall is that ncurses based applications wouldn't render correctly. Having the need to design & co开发者_JAVA技巧de a little monitoring app in C that reads and write to standard input & output (think something like htop) I would love to use a framework, and I would really like my app to work in shell-mode, what framework would you recommend me to look at?

N.B: I'm not interested in capturing the mouse.


There is nothing like ncurses that works under Emacs' shell-mode. This is a fundamental limitation of the design of comint-mode, which is what shell-mode is built on: it only works with programs that alternately read whole lines of plain text from stdin and write whole lines of plain text to stdout.

If you want to run something fancier, you need to use a full terminal emulator (which Emacs has, of course), or else to write an Emacs-specific front end that uses Emacs buffers natively.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜