7 ms·
The top intuitive to use TUI editors in my heart will always be: - MS Dos Edit - Turbo Pascal 6 Edit felt like a windows application: select with shift+arrows,
by muxator 3y ago
The top intuitive to use TUI editors in my heart will always be:
- MS Dos Edit
- Turbo Pascal 6
Edit felt like a windows application: select with shift+arrows, move fast with ctrl+home/end.
Turbo Pascal's keybindings were a bit influenced by WordStar's, I think, so a bit old style already at the time. But, my friend, the TUI Toolkit, TurboVision! What did they do there! Multiple windows that could be dragged and resized, blazingly fast. All of this on a 486 with megabytes of ram.
I never found any TUI editors like those two.
- acumenical 3y agoI've never used micro, but if you look at the default keybindings[0], you'll see they're very Windows-y and might be to your liking. As for myself, I don't see cut-to-character or select-to-character like in vim, and yanking and pasting seems more intuitive in vim. And with visual block I don't miss Sublime style cursors at all. 0: https://github.com/zyedidia/micro/blob/master/runtime/help/keybindings.md#default-keybinding-configuration https://github.com/zyedidia/micro/blob/master/runtime/help/k...
- boxed 3y agoThe selection model is unfortunately a bit broken. For example shift+control+arrows and shift+down doesn't work. I believe the problem is that selection with shift isn't written to compose with other navigation.
- neteresy 3y agoThis is killing me man.
- bharathyes 3y agoyou need to check your terminal emulator. just checked the ctrl+thift+arrow keybind, works on alacritty but doesnt on kitty.
- bharathyes 3y agoyou need to check your terminal emulator. just checked the ctrl+thift+arrow keybind, works on alacritty but doesnt on kitty. and shift+up/down works on both
- peterfirefly 3y agoThose key combos didn't originally send any special codes to the app. Newer terminal emulators do. (I once wrote a hack for Linux that opened a connection to the X server and used the xkb -- X Keyboard Extension -- protocol to get info about the shift/control/etc state in order to synthesize shift+arrow and shift+control+arrow keycodes. It worked almost perfectly with a local X server.)
- deleted 3y ago[deleted]
- pyrelight 3y agoTurbo Pascal's UI was magical and perfect.
- TylerE 3y agoThe one I really liked back in the day was Jed. Basically nano/windows style keybindings, but it had stuff like syntax highlighting…in the mid 90s.
- kseistrup 3y agoI've been using jed since the 90'es. I've tried many other editors, but I always return to jed. Should I switch to something else, it would probably be kakoune.
- richardjam73 3y agoWhen looking at Freedos a while back I found an editor called setedit. It does work on other platforms than DOS but I haven't tried it. It is influenced by the Borland C++ IDE editor. https://setedit.sourceforge.net/ https://setedit.sourceforge.net/
- pepa65 3y agoThose are default bindings in nano I think. (I've been using my custom bindings for years...)
- lloeki 3y ago486? Ha! I remember getting my hands on a TP copy in late 80s early 90s, first version I had fit on a 720k floppy but the second one did not (1.44), and I remember trimming it down to fit 720k because I had only a 640kiB 80c88 with two 3.5" 720k drives and no hard disk. It was plenty fast already! Then I got a 1MiB 286 Goupil G5 (with something like 20MiB HDD, I remember thinking that thing is so huge how am I ever going to fill that, which I never did) and a colour CRT, TP felt so blink and you miss it fast on that machine already, it must have been lightspeed on a 486! I for the life of me can't remember if aforementioned versions were (resp.) 4.0 and 5.0 or 5.0 and 6.0 though. My hunch is on the latter but I'm really not sure. Last one I used was TP 7.something much later (early '00s)
- pjmlp 3y agoTP 5.5 was the one that wasn't already fitting into a floppy. Using MS-DOS 3.3 with TP 4, was still doable on a 1.44MB, which I used to carry around during high school for our computer lab.
- roytam87 3y agoYou may give YEdit a try. http://www.malsmith.net/edit/ http://www.malsmith.net/edit/
- pjmlp 3y agoTurboVision in TP 6 was my path into OOP, started early on by TP 5.5 adoption of Apple's Object Pascal features. The framework design is marvelous, not only what it could do on UI level, it already had reflection, serialization, collections with common stuff like map/filter/sort via callbacks. Great learning experience, and good ramp into "there is more than one way to do OOP". Another good TUI experience on MS-DOS, also with great OOP ramp-up learnings, Clipper (version 5 introduced OOP support).
- zczc 3y agoI think mcedit is close (included with Midnight Commander): similar keybindings, pull-down menu on top, resizable windows
- tuatoru 3y agoTry tilde editor. It's close-ish. 1. https://github.com/gphalkes/tilde https://github.com/gphalkes/tilde
- ale42 3y agoVery nice discovery, thanks! Just found it was already on HN, e.g. https://news.ycombinator.com/item?id=34545086 https://news.ycombinator.com/item?id=34545086 By the way, I noticed a long startup delay... (on tilde, and on micro as well). After some stracing, I found out that the culprit was a TCP connection attempt to an X server that I didn't have. (X forwarding was configured in my SSH client, but there was no X server running on my PC...) In case it can help someone ;)
- pavlov 3y agoThe 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. (No other hardware layers either. The CRT blasted out your characters at most some 15 ms after your update. Today, who knows what’s buffered in the GPU and display itself.) 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.
- magicalhippo 3y agoHence some lovely text mode demos and such. Random example[1]. [1]: https://www.youtube.com/watch?v=QSe5FGlyBFU https://www.youtube.com/watch?v=QSe5FGlyBFU
- cmrdporcupine 3y agoWhile 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 universal 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.
- mbork_pl 3y agoRight! I also used a Norton Commander clone written with Turbo Vision. You could mark several files (with Insert), then press F4 and voilà - you got multiple windows open! AFAIR, you could even do a "global search and replace" (across these windows). Powerful stuff. Although coding in TV was much, much less pleasant than using it... Now I use Emacs, which is obviously superior to any other editor except Vim, which is incomparable [0] to Emacs. [0] https://en.wikipedia.org/wiki/Partially_ordered_set https://en.wikipedia.org/wiki/Partially_ordered_set
- deleted 3y ago[deleted]