4 ms·
In the node ecosystem there are a few interesting ones. https://github.com/vadimdemedes/ink https://github.com/vadimdemedes/ink for writing TUIs with react. He
by zephraph 6y ago
In the node ecosystem there are a few interesting ones.
https://github.com/vadimdemedes/ink https://github.com/vadimdemedes/ink for writing TUIs with react. Here's a project I wrote using that: https://github.com/zephraph/solitaire https://github.com/zephraph/solitaire. It's not as powerful as ncurses, but it works rather well.
If you want something more on par with ncurses try https://github.com/cronvel/terminal-kit https://github.com/cronvel/terminal-kit
- andrewstuart 6y agohttps://github.com/cronvel/terminal-kit https://github.com/cronvel/terminal-kit This is the one that most catches my attention. Currently actively maintained plus it has something analagous to a document object model https://github.com/cronvel/terminal-kit/blob/master/doc/document-model.md#top https://github.com/cronvel/terminal-kit/blob/master/doc/docu... Also Ink is incredibly interesting as it enables ReactJS for creating TUI apps - mind bending! https://github.com/vadimdemedes/ink https://github.com/vadimdemedes/ink I can imagine the things above being combined with a sandbox plus Fabrice Bellard's QuickJS https://bellard.org/quickjs/ https://bellard.org/quickjs/ into a new type of application ..... the "pure text mode browser". A "pure text mode browser" would not be designed to render ordinary HTML web pages, but would instead be a minimal browser designed only for text mode.
- beamatronic 6y agoSo, lynx? https://en.wikipedia.org/wiki/Lynx_(web_browser) https://en.wikipedia.org/wiki/Lynx_(web_browser)
- andrewstuart 6y agoNo, I meant a text mode browser that does not use HTML. Lynx, and all the existing text mode browsers are intended to render HTML as text. This would be a browser that targets only text mode user interfaces. So pages would need to be written specifically to be rendered in such an environment. Why? Because text mode browsers are really trying to do the impossible - to render modern web pages as text is essentially not doable in all cases. Instead make a browser for the text mode use case specifically designed for the medium. A mashup of a web browser and ANSI/VT100/teletext. It would need a sandbox and a JavaScript interpreter. Maybe call it the "Trowser".
- LargoLasskhyfv 6y agoI do not really understand the need/want/wish for something like this. There is no real textmode on contemporary hardware anymore. That is all emulated to get the legacy during startup going, until some graphical environment takes over. Keyword is framebuffer here.
- beamatronic 6y agoSounds like gopher? https://en.m.wikipedia.org/wiki/Gopher_(protocol) https://en.m.wikipedia.org/wiki/Gopher_(protocol) There was a sliver of time in the 1990s, in academic settings, where it was very easy to get onto an Internet-connected Unix computer, but before HTML existed. There were many plain text Internet applications.