3 ms·
Not only that, I found it much easier to create TUIs on DOS than on a UN*X system. I still have a hard time with curses. Zortech c on DOS had a small set of s
by jmclnx 3y ago
Not only that, I found it much easier to create TUIs on DOS than on a UN*X system. I still have a hard time with curses. Zortech c on DOS had a small set of screen functions, disp_*().
These are enhanced printf(), scanf(), getc() type functions by adding cursor positioning on an 80x25 screen. Pretty basic but you could create nice applications with these basic functions in Zortech c.
Granted, on DOS the screen size did not change as it does in UN*X, making TUIs easier.
On the systems (minis) I worked on decades ago, TUIs were far easier then anything I have seen since.
- sgbeal 3y ago> I still have a hard time with curses. FWIW, _everybody_ has a hard time with curses. That's why it's (aptly) named "curses!"
- sim7c00 3y agohaha never put 1 and 2 together. i guess these days its either something CSS or curses. cursed style sheets? :') maybe someone can do everyone a solid and make a GUI to design TUIs ? hahah
- Izkata 3y agoCSS used to support the "tty" media type for terminal output (like for the lynx browser). https://developer.mozilla.org/en-US/docs/Web/CSS/@media https://developer.mozilla.org/en-US/docs/Web/CSS/@media
- pavlov 3y ago> "easier to create TUIs on DOS than on a UN*X system" That's because DOS (well, the IBM PC really) had a memory-mapped text mode display buffer instead of terminal emulation. So much easier to fill a screen rapidly and do partial updates, scrolling, moving windows etc. when you can just do pointer arithmetic and memcpy.
- zozbot234 3y agoMS-DOS also supported the 80x43 or 80x50 screen modes for extra information density. On later hardware you would have SVGA-based or VESA-based text modes with even more density, though by that time DOS itself had mostly fallen out of use.
- mixmastamyk 3y agoI seem to remember one 132 wide, but since the resolution didn’t change (much?) it was near unreadable.
- Wildgoose 3y agoI still run my (Unix) terminals sized to 80x43 by default.
- chasil 3y agoIf you loaded ANSI.SYS in your config.sys, then the procedure is exactly the same. I think this will demonstrate color with ANSI.SYS and/or VT-color: $ cat rgbdemo.sh #!/bin/sh alias p=printf N=$(p \\033) N="$N[" x=30 for a in Bl R G Y B M C W # Black Red Green Yellow Blue Magenta Cyan White do eval $a='$N'"'"$(( x))"m'" \ b$a='$N'"'"$((60 + x))"m'" \ ${a}bg='$N'"'"$((10 + x))"m'" \ b${a}bg='$N'"'"$((70 + x))"m'" # bX=bright Xbg=background bXbg=brgt bgnd x=$(( x + 1 )) done # https://en.wikipedia.org/wiki/ANSI_escape_code N=$N'0m' echo "I am $Wbg$R red, $G green, $B and blue $N on a white background."