News for hackers. Stuff that matters.
Re:micro – A Modern Alternative to nano by pavlov on Friday August 18, 2023 @05:34AM (#37173240)
The reason why MS-DOS text editors were so fast and felt powerful is that they used direct access to video memory to render the text-mode UI.

Unix is still stuck on the notion of the console being an output stream that emulates a Teletype printer at some level. Full-screen text UIs work around this by adding extra layers for screen manipulation in a stream-oriented device.

On MS-DOS, the system APIs were so primitive and limited that everybody (beyond basic CLI tools anyway) just wrote directly against the IBM PC hardware, which conveniently mapped the text-mode screen at a memory location. You could print or move or clear on-screen elements using standard memory operations, and there was no other software layer sitting in between translating the frame buffer, so updates were instant.

It’s the difference between a multi-user system where you (as the user) get a narrow stream of I/O with the shared computer vs. a single-user machine where you truly control the device. Sadly the latter model of personal computing is increasingly obsolete.

Re:micro – A Modern Alternative to nano by magicalhippo on Friday August 18, 2023 @09:26AM (#37175303)
Hence some lovely text mode demos and such. Random example[1].

[1]: https://www.youtube.com/watch?v=QSe5FGlyBFU

Re:micro – A Modern Alternative to nano by cmrdporcupine on Friday August 18, 2023 @09:39AM (#37175477)
While the 'tty' concept seems archaic, it has served Unix-ish systems very well in the long run, giving us a nice console experience with a diversity of terminal applications and an excellent remote experience.

Meanwhile Windows never really implemented a proper abstract console abstraction -- until recently -- and forced all console output through the same terrible hardcoded terminal with crap support for basic things like copy and paste, and struggled for over two decades to have a productive console environment, forcing administrators and power users to do everything of substance through the GUI or tear their hair out. This is finally fixed, but only recently.