TUI
Re: TUI
I'm not 100% about 80x60, but I know for a fact (as I use it) that 80x50 exists. That's just standard 80x25 mode (3?) with 8x8 font.
Website: https://joscor.com
Re: TUI
I imagine 80x60 is possible (as are many other resolutions) if you are prepared to directly program the VGA registers. I use 80x50 in my OS which, because I use an 8 pixel dot clock, works out to 640x400 VGA resolution. With a 9 pixel dot clock it would be 720x400 but in that mode the letters are too far apart (and too square) IMO so I use the smaller dot clock and a custom font to increase the readability a little bit.Troy Martin wrote:Is there an 80x60? Cause having a 640x480 text mode for TBOS would be real nice!
~[Fluidium]~
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: TUI
I use 80x50 as a default mode, using the BIOS interrupt 10h ah=1112h. It's real nice, but I think having 640x480 text mode could be kind of nifty.
Should I just go into graphics mode and start working on finishing my own 8x8 font?
Should I just go into graphics mode and start working on finishing my own 8x8 font?
Re: TUI
You could have an 80-wide mode in both 640 and 720, the latter with 9-pixel wide characters, the former with 8-pixel wide characters. You could have an 81, 82 ... 89 character width as well of course, it's all about tweaking stuff.Troy Martin wrote:Is there an 80x60? Cause having a 640x480 text mode for TBOS would be real nice!
JAL
Re: TUI
For text mode you mean? I usually draw them by hand, and then convert them into a bitmap with a quick tool or something. Or directly hack them into code, as was possible with Pascal in the early days (never understood why C doesn't have a binary number format, it's so usuable...).GhostXoPCorp wrote:what do you use to tweak or make your own characters?
JAL
Re: TUI
If you want a large text screen you could do it by manipulating the VGA registers, the trick is to keep the horizontal freqeuncy and vertical frequency in de default monitor ranges and adjusting the font height. I need to check my sources but it is possible to get a 80x80 resolution with standard VGA.
Author of COBOS
Re: TUI
80 high for standard VGA would be a 640 pixel vertical resolution, which afaik is not possible. However, I do not know by heart what the limit for the VGA registers is, so perhaps it is theoretically possible (although I have never heard claims of tweaking over a 800x600 resolution).os64dev wrote:If you want a large text screen you could do it by manipulating the VGA registers, the trick is to keep the horizontal freqeuncy and vertical frequency in de default monitor ranges and adjusting the font height. I need to check my sources but it is possible to get a 80x80 resolution with standard VGA.
EDIT: Not to mention the very vertically compressed image of the characters.
JAL
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: TUI
Combuster: Two words: graphics mode!Combuster wrote:Or one-pixel tall characters
Re: TUI
640x480 with an 6 pixels height font yields 80x80. I think i managed a 7 pixel high font by putting the VGA registers in 720x480 en still using 8 pixel wide chars. But not sure if i managed a 80x80 with that but it came close. Give me a day ar so to retrieve the sources.jal wrote:80 high for standard VGA would be a 640 pixel vertical resolution, which afaik is not possible. However, I do not know by heart what the limit for the VGA registers is, so perhaps it is theoretically possible (although I have never heard claims of tweaking over a 800x600 resolution).os64dev wrote:If you want a large text screen you could do it by manipulating the VGA registers, the trick is to keep the horizontal freqeuncy and vertical frequency in de default monitor ranges and adjusting the font height. I need to check my sources but it is possible to get a 80x80 resolution with standard VGA.
EDIT: Not to mention the very vertically compressed image of the characters.
JAL
Author of COBOS
Re: TUI
Ah, of course, I didn't think of shrinking the vertical character resolution itself. Although having less than 8 pixels makes reading more difficult, and 8 pixels wide is still all you get. So it's not that useful, as you're getting really odd characters (squeezed vertically).os64dev wrote:640x480 with an 6 pixels height font yields 80x80. I think i managed a 7 pixel high font by putting the VGA registers in 720x480 en still using 8 pixel wide chars. But not sure if i managed a 80x80 with that but it came close. Give me a day ar so to retrieve the sources.
JAL
Re: TUI
Back in the days of proprietary, I remember MS Qbasic doing exactly what a GUI would, it was great. So it depends on the implementation. ASCII UI is tons much easier for a Windows user. And perhaps universally faster to get around. If you decide you'll make that, just make sure you make sort of textual widgets and inheritable objects - basically a framework - that can be used in an easy way when writing code, so that you don't waste your time making TUI's for your progs instead of progs yourself.JackScott wrote:About half the time a cursor appears and does what I want, half the time it doesn't. A CLI doesn't have that problem. It's pretty much completely different to a GUI.Troy Martin wrote:Better for users used to GUI's
I know this might sound awful, but learn from Microsoft. It's the king in the field (Txt UI's), and it practically defined the standards (how things should look, what chars are used for what objects etc).
Help this rabbit conquer the world by including it in your code: for(;;) fork();