7 ms·
Are there any good guides or examples on using elisp to build an environment like ncurses?
by guessbest 5y ago
Are there any good guides or examples on using elisp to build an environment like ncurses?
- klibertp 5y agoYou can take a look at basically any of the larger apps, like M-x magit, speedbar, neotree, treemacs, calc, undo-tree, proced, tetris, gnus, epa, dired... (some built-in, some 3rd party). By default, when you start Emacs, you are in the lisp-interaction-mode app, which allows you to write (and execute) Elisp code. But, if you start any of the apps above, you'll get window(s) with semantics having nothing in common with editing text. They still display with text (or emoji under GUI), but they treat the buffer contents as something else than just text, and you can create panes with such content anywhere on the screen. I think this is more or less what you get with ncurses. Here's an example of Emacs running in the terminal with a few apps open: https://klibert.pl/statics/images/emacs_terminal.png https://klibert.pl/statics/images/emacs_terminal.png You can see treemacs, helm, dired and magit in action. I could probably give a better example if you said what exactly you'd like to build. There's a lot of apps written for Emacs, not many of them are truly standalone (meaning they tend to integrate into Emacs instead of integrating Emacs into the app), but there are a few like that, too (ie. music players or games).
- guessbest 5y agoThanks, this is a good starting point for me.