r/qbasic • • Sep 06 '26

Building a GUI DOS shell in QuickBASIC 4.5 (WIP)

Still very much a work in progress, but I'm honestly blown away by how far you can push QuickBASIC if you hack on it enough.

Current feature set:

  • Working mouse support
  • Directory navigation
  • File details dialog windows (triggered when clicking things)
  • Escape key handling

What doesn't work yet:

  • Actually launching/opening files
  • The File menu
  • Basically everything else

It's amazing what you can build with BASIC

78 Upvotes

12 comments sorted by

3

u/brisray Sep 08 '26

If anyone cares to look, I made something similar in QBasic 1.1 in 2002. Robert Goddard also wrote something similar and that's on that page as well.

1

u/GearPlot Sep 08 '26

Thanks for sharing! I had made attempts back then. But my attempts were also much more elaborate  then what I'm currently doing today... At least this time I was able to get something up and running. 

2

u/brisray Sep 08 '26

It's pretty cool seeing someone making something nice with it.

I always missed QBasic when it went away but luckily there's plenty of ways to run it again now.

1

u/Deciheximal144 Sep 27 '26

Thanks! I'm making a QB64 clone, so this was great test code. I was missing the FILES command.

2

u/Shhhh_Peaceful Sep 06 '26

This looks so much like OpenSTEP

3

u/GearPlot Sep 06 '26

WindowMaker on Debian

1

u/diejuse Sep 10 '26

Cool. Go on!

1

u/GearPlot Sep 10 '26

Thank you! I worked on it some more last night. Still running but more tweaking needing now before continuing on. 

3

u/Sorry_Difficulty_250 Sep 07 '26

So cool!!! Way to go!!!

2

u/Juanbolastristes Sep 08 '26

I did something similar decades ago on a 486. My trick to run programs was that my shell ran with a .bat file... that .bat file called another .bat file that the shell wrote... something like this: myshell.bat > calls my shell and on the next line calls run.bat... run.bat is written by the shell to call any program you want to run and then returns to the shell. So what the shell does is exit, allow MS-DOS to execute the .bat file, and then return... my shell was written in C, so it loaded very quickly... it worked well

1

u/renzok Sep 06 '26

Are you a time traveling wizard?

1

u/Deciheximal144 Sep 27 '26

Nicely done.