9 ms·
Dos-like: Engine for making things with a MS-DOS feel, but for modern platforms
- baseh 5y agoI wish there was DOS EMULATOR type of framework that renders to the web The latest talk python to me podcast has an episode on Textual and Rich that looks interesting. https://github.com/willmcgugan/textual https://github.com/willmcgugan/textual
- edward 5y agoI fixed some spelling mistakes: https://github.com/mattiasgustavsson/dos-like/pull/1 https://github.com/mattiasgustavsson/dos-like/pull/1
- arduinomancer 5y agoAnyone else love the look of DOS GUIs? https://img.itch.zone/aW1hZ2UvMTIyODU3OC83MTY0MTEyLnBuZw==/original/kYLtCi.png https://img.itch.zone/aW1hZ2UvMTIyODU3OC83MTY0MTEyLnBuZw==/o... They have such a cozy feel, reminds me of simpler times. It would be cool if there were a CSS framework where you could make webpages like that.
- colejohnson66 5y agoLook at TuiCss: https://github.com/vinibiavatti1/TuiCss https://github.com/vinibiavatti1/TuiCss
- zetalyrae 5y agoI have fond memories of SETEDIT: http://setedit.sourceforge.net/ http://setedit.sourceforge.net/ It was kind of a complete floating windows GUI in a TUI: http://setedit.sourceforge.net/se1.gif http://setedit.sourceforge.net/se1.gif
- zozbot234 5y agoPsychDOS is a very similar project: https://psychoslinux.gitlab.io/DOS/INDEX.HTM https://psychoslinux.gitlab.io/DOS/INDEX.HTM I wonder if it would be possible to extend a terminal multiplexer to the point of providing such an intuitive interface to existing TUI software on modern *ix systems. I'm sure the effort would be quite non-trivial, but it would help a number of workflows. Adding support for the additional features that are found in these TUI environments (consider e.g. menubars) could then be done via custom terminal extensions.
- DHowett 5y ago> I wonder if it would be possible ... Check out the VTM project[1]! It feels like that's the direction they're heading. No direct affiliation; they've filed some bugs on Windows Terminal, however. :) [1] https://github.com/netxs-group/VTM https://github.com/netxs-group/VTM
- zozbot234 5y agoWell, that's a terminal multiplexer but not very TUI like. I don't think it would be directly usable over a low-bandwidth SSH connection, which is the kind of use case people often have in mind for TUI's.
- lproven 5y agoThat was my preferred Linux text editor for a while, too. These days, I use Tilde, which is modern, maintained, and packaged for contemporary distros. https://os.ghalkes.nl/tilde/ https://os.ghalkes.nl/tilde/
- mysterydip 5y agoThanks for the link! I had been struggling to find something that "felt right", from changing themes in Kate or using vim or nano. This looks perfect.
- lproven 5y agoOh, great! Happy to help. I've been using it for years now -- it's becoming a faithful friend, to the bafflement of my colleagues who are mostly Vi(m) or Emacs fans. The one thing it doesn't do for me is pick up Git commit templates, so for that I have to have my default set to `mc`. I don't know why that one thing doesn't function.
- agumonkey 5y agoyes i do, the frugal aspect is extremely appealing to me. someone made a turbovision (borland turbo pascal ui framework) lib for java https://jexer.sourceforge.io/ https://jexer.sourceforge.io/
- yoz-y 5y agoShoutout to the https://dosgameclub.com https://dosgameclub.com which naturally has all the website and forums done in this style.
- easton 5y agohttps://kristopolous.github.io/BOOTSTRA.386/ https://kristopolous.github.io/BOOTSTRA.386/ might be up your alley
- sigg3 5y agoThe Most Advanced Computer Interface, period.
- anyfoo 5y agoTotally! However, even with the proper fonts (that also have to be aspect ratio corrected, the usual VGA text mode did not have square pixels), I struggle to recreate this to the point that it's really recognizable. CRTs with that text mode (and including scanlines, but not only that) just seem very hard to reproduce on modern displays. The fact that your photo does evoke the same feeling while I'm seeing it on a modern 5k display shows that it's possible, but the amount of tricks needed might be so much that it becomes whimsical somehow (or at least in contrast to just changing the font)...
- squarefoot 5y ago> Anyone else love the look of DOS GUIs? I do. Brings back memories of Turbo-C. > It would be cool if there were a CSS framework where you could make webpages like that. A quick search brought this old project: https://github.com/6112/cursesjs https://github.com/6112/cursesjs Never tried that, however. Ncurses is what is used under Linux and other UNIX like systems to draw terminal based GUIs, and allows some pretty good graphics. https://en.wikipedia.org/wiki/Ncurses https://en.wikipedia.org/wiki/Ncurses http://elmon.sourceforge.net/ http://elmon.sourceforge.net/ https://christopherstoll.org/2015/12/29/ncurses-system-performance-monitor-mac.html https://christopherstoll.org/2015/12/29/ncurses-system-perfo...
- mindcrime 5y agoIf you like that old TurboVision look, you'll love https://github.com/magiblot/tvision https://github.com/magiblot/tvision
- squarefoot 5y agoThanks, I recall seeing it some time ago but totally forgot about it.
- pengaru 5y agoEh, the Borland Grahics Interface (BGI) style TUIs were kind of awful. I hated the Borland Turbo C IDE in no small part because of that style TUI. It just wasted so much precious character space on TUI frames and other decorations. More of my fond TUI memories from that era were the bespoke ones in the demo/art/music/bbs scenes. Those in many cases were still character based but seemed to make better use of the screen space and at least more aesthetically pleasing character sets. Scream Tracker / Impulse Tracker comes to mind as one example: https://upload.wikimedia.org/wikipedia/en/5/53/Screamtracker_321.png https://upload.wikimedia.org/wikipedia/en/5/53/Screamtracker... Which you can still enjoy today in a cross-platform clone via SchismTracker: https://github.com/schismtracker/schismtracker https://github.com/schismtracker/schismtracker
- ddingus 5y agoHmm..... That same thing in say 96x50 would feel much better. Edit, just viewed your tracker link! Yes, exactly.
- torgoguys 5y agoI love all things text mode. For anyone searching for the Borland style text interface, it was actually called TurboVision, not BGI (which was a generic graphics library). TurboVision (and many GUIs of the time) largely followed the Common User Interface (CUI) spec by IBM for its interactions in text mode. It is fair to say there was a lot of screen space devoted to borders and such, especially in 80x25 mode, but that helped make everything super clear and usable.
- pengaru 5y agoAh my bad re: BGI vs. TurboVision, my memory from those days is quite fuzzy!
- pronlover723 5y agoOnly if you were an English speaking user
- tssva 5y agoThe IBM spec was CUA( Common User Access) not CUI.
- ddingus 5y agoYes. My favorite was anything done in 80x50. Nice, mostly square characters. Mix in a mouse, and the product was easy to use, clean, fast, productive. That sort of aesthetic, in windows even, would be a lot of fun and quite useful, if a bit of a middle finger to modern sensibilities.
- wenc 5y agoI liked Turbo Vision but I thought Microsoft’s text UI (the one used in products like QuickC, QBasic etc — not sure what it’s called) was actually cleaner and more aesthetically pleasing.
- ubermonkey 5y agoOH GOD NO. Man, I hated all that stuff at the time. If you're stuck in text mode, just be text. Don't try to mimic a GUI; it just looks weird and generally works poorly. A web site that imposed this sort of interface would be a site I visited ONCE.
- Karrot_Kream 5y agoLmao I like how saying "no" got you downvoted. Express an opinion about a purely subjective thing that others don't like and you get downvoted. Come on HN, you can do better.
- jonsen 5y agoCommenter could do better than just writing an emotional burp.
- Karrot_Kream 5y agoThey put the same amount of effort in as the others. See https://news.ycombinator.com/item?id=28808280 https://news.ycombinator.com/item?id=28808280 . It's just the unpopular opinion.
- ubermonkey 5y agoI expected it, to be honest. HN is a place where threads settle into orthodoxy quickly.
- lproven 5y agoI suggest that you need to look at the historical context of it. When DOS was the uncontested king of business computing, user interfaces were all over the place. Every app had its own UI, its own keystrokes, its own everything. To steal some text I wrote for Wikipedia: In WordPerfect, the command to open a file was F7, 3. In Lotus 1-2-3, a file was opened with / (to open the menus), F (for File), R (for Retrieve). In Microsoft Word, a file was opened with Esc (to open the menus), T (for Transfer), L (for Load). It was a mess and a significant effort to learn multiple apps. Then classic MacOS and MS Windows started to introduce the idea of uniform UIs, where programs had the same menu bar with the same core menus with the same commands on them, opened and navigated with the same keystrokes. It made life so much easier. A lot of apps came across, even big-name ones -- for instance MS Word (v5.0, proprietary 2-line menus at the bottom of the screen; v5.5, CUA menu bar); WordPerfect (added CUA menus in v5); Borland Quattro; etc. And if you have a standard menu bar, then you more or less need to have dialog boxes as part of the UI. Once you go that far, you may as well apply it to multiple documents support and so on. And so you end up with a familiar, more-or-less harmonious UI across different apps from different vendors, and for the first time it became possible to operate a program you'd never seen before first time. This was a huge win for usability, accessibility, and it saved time, effort and stress for millions of people. It was a triumph. That UI persists today in most modern FOSS apps and desktops, except for intentional rebels like GNOME 3, who want to make us all use phones with big screens. If I am going to use a text editor, say, in the shell sometimes, then YES I want it to use the same UI I have in my GUI session, with the same keystrokes and menu options. Life is much to short to learn some crappy half-assed UI from the 1970s because a bunch of old dudes with beards have loved it ever since. Even if I am an old dude with a beard now.
- Narishma 5y agoI don't think VGA monitors had scanlines like that. Some older CGA and EGA monitors did though.
- ddingus 5y agoIf their displays supported 15khz, they would. Eventually, everything double scanned and pushed to 70hz vert refresh
- Serow225 5y agoNot web, but another one for .NET is: https://github.com/migueldeicaza/gui.cs https://github.com/migueldeicaza/gui.cs
- jiggawatts 5y agoI once wrote a web front-end for a DOS-era web application that was used at over 2,000 locations by hundreds of thousands of people. It was virtually identical to the original layout and functionality, but it had basic-yet-functional HTML look to it. Think Google search. On the 1st of April it would instead switch to a "DOS skin" using the fixedsys font and the original colour theme and box-drawing character layout. Virtually identical to the original, except that some things were centred and you could scroll with a mouse. I thought it was hilarious. Management... not so much.
- b3nji 5y agoLike this? https://github.com/kristopolous/BOOTSTRA.386 https://github.com/kristopolous/BOOTSTRA.386
- gordaco 5y agoI absolutely do. I'm 100% aware that it's the nostalgia talking, but I don't care, I unapologetically love them. For context, the first computer we got at home was a PC at some point in '94 or '95. We had MS-DOS 6.22 and Windows 3.11. Some years later we moved into Windows 95. While I didn't really use these kind of GUIs (DOSShell and so on) as often as I would like, I always thought they were very pleasant to use. There is something about that DOS font that makes me happy each time I see it, and there is a certain feeling of being a stereotypical movie-style hacker when you use these instead of modern, actually graphical UIs. And yes, the reminiscence of simpler times with simple software, way before the surveillance capitalism and the brutal omnipresence of ads, is easy to appreciate. The nice thing is that early versions of Windows supported these GUIs as well. So, a few years later, during my degree in Computer Engineering, I learned some x86 assembly (using Turbo Assembler as a compiler); this was during the early 00s, and we still used EDIT.com as the main text editor, although there were some others available. I loved it since the first day, both in concept (super low level programming with direct access to the hardware, managing interruptions and so on) and in execution (everything was in that text mode I loved, since modern Windows and their restrictions didn't play nicely with such low-level programming). I learned a lot from Ralf Brown's Interrup.lst, and wrote a few simple GUIs of my own, using box drawing characters and all that. Aside from those I wrote for academic work, I mostly spent a lot of time creating a silly GUI that allowed you to modify the look of the console. There were a few resolutions available, from 40x25 to 132x60, and you could change the colours of the text, the background and the border (yes, there is a border, which you can set to a different colour than the background. And my program could get 2^18=262144 colours available, not just 16! Although 16 was the max simultaneous on-screen limit IIRC), plus the font (I was able to add an edition screen where you could see the aspect of all 256 characters, yet I could use box drawing and so on for the interface in this screen. Did you know that DOS allowed two different sets of characters in screen at the same time?). There were some other additions like pixel-level scroll as opposed to the usual line-level scroll, and background "music" using the PC speaker. It didn't have any practical purpose aside from these silly customisations (which, in the case of Windows, went away when you closed the windows, and some times, also when you moved from full screen to a window), but man, did I have fun coding it. It's still one of my best memories of programming, nearly 15 years later. Then, in 2009, my last Windows 98-capable computer stopped working, and current hardware only supported Windows XP and newer, so all of this fun basically stopped being possible (especially considering that basically all state of the art hardware was already 64 bits, and 16-bit applications like EDIT.com weren't supported any more). With emulators it's not the same, because I know I'm not really accessing the low-level hardware registers. By that time I already had a job and there was less time for this kind of hobbies, so I eventually stopped. Currently my recreational programming is mostly oriented towards math (Project Euler and so on), which is very different, but I still remember those days very fondly. I still have all that code somewhere. Yeah, it's all nostalgia, but that doesn't mean it doesn't hit hard.
- findthewords 5y agoWindows 10 warns that burn.exe contains Trojan:Win32/Wacatac.B!ml. I'm sure it's fine but Windows doesn't let it run. The demos that work are stunning and inspiring.
- Narishma 5y agoOnly happens when it's compiled with the included tcc. It works fine with Microsoft's compiler.
- userbinator 5y agoAbout 20 years ago I remember it was semi-common for binaries compiled with anything other than MSVC to be flagged as false positives by other AVs (I suspect if MS had its own AV at the time, it would definitely raise antitrust allegations...) Lots of beginners using GCC (MinGW and the like) complained why their freshly-compiled Hello World executable would disappear without doing anything as soon as they ran it.
- skissane 5y agoMicrosoft Defender is really bad at false positives. I think especially the "!ml" ones – I believe that means it is using heuristics rather than a direct signature match. I have my own parental control software I wrote. (Maybe one of these days I will open source it, but not in its current state.) I wanted to use text-to-speech to send audio messages to our son ("Your time is up in five minutes!" kind of thing). Windows has a bunch of different APIs for this – there is an older COM API (which supports IDispatch so you can use it from VBScript etc), a newer .Net API, an even newer WinRT one. I decided, for my purposes, the easiest thing to do was just call the .Net API from PowerShell. So, I embedded a PowerShell script in my executable. All works – except suddenly Microsoft Defender says it is a Trojan. (Forget which one, it was one of those !ml ones, so it could have even been the same one.) Only when it sees the embedded Powershell script in the executable, took it out and it doesn't. I found a trick – I gzipped the PowerShell script, and embedded the gzipped PowerShell script in the executable instead. I included in the executable a zlib decompressor library so it could decompress it at runtime. Suddenly, no more false positive, Defender thinks my executable is fine. I also found it gets upset if a Windows service runs PowerShell as a subprocess with certain command line arguments (passing the PowerShell code to run on the command line)–it will block the PowerShell subprocess from starting. Again, various tricks – such as Base64-ing the code to be run, and having PowerShell decode it and then evaluate it dynamically – and it no longer complains. I suppose other approaches, such as putting the code to run in a temporary file, or passing it to PowerShell over a named pipe, might also do the trick. Makes me think the whole thing is pretty stupid – if I can use these simple tricks to get around their false positives, why can't malware authors use the same tricks to turn true positives into false negatives?
- throwaway888abc 5y agoAll these feels nostalgic but also somehow productive/not disturbing. Related for current web TuiCSS https://github.com/vinibiavatti1/TuiCss https://github.com/vinibiavatti1/TuiCss
- avidphantasm 5y agoStill don’t quite get the DOS nostalgia. Individual games were good, but the whole ecosystem was finicky and crash-prone by the early- to mid-90s, not to mention deeply ugly (ALL CAPS console, lousy inconsistent GUIs, unnaturally short filenames, etc.). My friends and I couldn’t wait to run Unix, NeXTSTEP, hell even classic MacOS. We only ran DOS/Windows because that’s all we had. Though don’t get me wrong, we still had tons of fun and learned a lot.
- bluedino 5y agoTry migrating people away from green-screen apps
- banana_giraffe 5y agoOne of my first jobs involved writing a modern (for the time) GUI app to replace some ancient services that involved logging in a mainframe to use. They needed to updated for a host of technical reasons, but there was also hope that more user-friendly versions would decrease the onboarding time for new employees. The first version was a fairly literal replacement of the workflows. The users were pissed. They demanded the checkboxes be replaced with "Y" and "N" options to mimic what they were used to. It was interesting to see the reluctance to any change at all.
- wizzwizz4 5y ago> The users were pissed. They demanded the checkboxes be replaced with "Y" and "N" options to mimic what they were used to. If you removed my keyboard workflow, I'd be pissed too. Muscle memory means you don't have to think about it; with the mouse, you always have to think about what you're doing, and can't think of other things (e.g. why you're doing it) while you're doing the rote bits. Is there a particular reason you couldn't've supported the Y/N workflow? (i.e. “Y” is like “set, tab” and “N” is like “clear, tab”)
- ddingus 5y agoYes. People who interact with those things just blow through them at high speed without even thinking! That frees them to think about other things. Arguably, more important things.
- tujv 5y agoRelated, Free Pascal has a text-mode IDE that's supported on most modern platforms. https://www.freepascal.org https://www.freepascal.org
- rpeden 5y agoIt looks pretty much identical to the Turbo Pascal IDE for anyone that's feeling nostalgic and wants to write some yellow on dark blue code. Even better - Free Pascal comes with Free Vision, which is mostly compatible with Turbo Vision. Turbo Vision was the toolkit Borland provided that would let you write your own text-mode GUI apps using the same widgets used to build the Turbo Pascal IDE.
- pjmlp 5y agoAnd it was a quite good guide into the world of OOP programming.
- gavinray 5y agoI don't think the Free Pascal IDE is related to this If you check the website demos and the "dos.h" source on GitHub, this is a library for making GUI apps whose UI has the appearance of being made with MS-DOS. Unless I am misunderstanding the connection you're trying to make, which is also possible
- djur 5y agoIt's related in the sense of both having an appeal to DOS nostalgia.
- ngcc_hk 5y agoStrange to see the macOS and linux option in some details but the author never tested it. Should he asked … and linux is free …
- anyfoo 5y agoInstalling Linux and seeing if it even starts is already a lot of effort, and then you've only "seen if it starts" and are very far from anything considered "tested".
- Delk 5y agoEh. Sure it's takes a bit of effort but installing a Linux distro in a virtual machine and pulling and compiling some C code isn't exactly a massive project. It would have been a much bigger deal before the widespread use of virtual machines. Or, I guess, if you don't have experience with building things on Linux. I completely understand that if someone doesn't use a platform themselves, there might be little motivation to test things on it. No hard feelings if someone doesn't care to do that. But it's not that much effort.
- psd1 5y agoYou're not wrong, but the author might have a day job and a family.
- cerved 5y agoWSL?
- zem 5y agoanyone remember HelpPC? lovely TUI browser for a ton of hyertext reference material.
- luhn 5y agoThe Github doesn't have much besides the source, this is probably the better link: https://mattiasgustavsson.itch.io/dos-like https://mattiasgustavsson.itch.io/dos-like Includes some sample code and screenshots.
- mixmastamyk 5y agoI like these and the other examples. However they all tend to use 16 colors while improving other aspects such as unicode and resizable large cell count terminals. Please use more colors, 256 at least. I’d like to see a turbovision style CUA TUI (haha) in a theme like Win 95 or 2k etc.
- blumomo 5y agoFor a good retro feel, I run Cool Retro Term [0] every now and then. It looks so authentic [1]! [0] https://github.com/Swordfish90/cool-retro-term https://github.com/Swordfish90/cool-retro-term [1] https://camo.githubusercontent.com/a88479dfa171e61f02f831bff623eab504f495f61bc42b6c29830820ba0dd357/68747470733a2f2f692e696d6775722e636f6d2f47595244507a4a2e6a7067 https://camo.githubusercontent.com/a88479dfa171e61f02f831bff...
- kqr 5y agoOooh, I didn't know that technique was called vowel space rendering. I love the look of it, but, more importantly, it seems like a fairly trivial way to encode multidimensional information and make it navigable by humans. (I'm having loose ideas for e.g. representing the health state of software systems this way, letting the operators "fly" around and get an intuition for what things are like. Coupled with sound it could get fairly immersive.
- 41209 5y agoCan you add a license here ? Not clear if I can use this or not.
- chartreusek 5y agoTook a bit to find it, but the license for the library is given at the bottom of dos.h It's available under either MIT or Unlicense (public domain)
- notorandit 5y agoCurses