Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Problem if current screen width isn't 80 chars (Announce)

posted by nidud E-mail, Norway, 15.09.2010, 14:07

I do understand your point Japheth, but in some cases it would be useful to do nothing. The main reason to apply the "restore screen mode" is to enable use/testing of different settings. Using command.com (in XP) to run setm34.exe will not work, but using DZ as a shell will do. The option(s) comes as a result of the possibility to remove the panels, menus/status line, and mouse, which enable the use of DZ as a command line tool. Most of the options in the "System Options" menu was used for debug, but applied in this way it may also be useful for debugging other programs. The point with the "default is on" is then to clarify that if you turn it off there may be problems. To add more options than 80x25/50 is not necessarily a lot of work, but this should be applied as "default" including test and init code. There are two output functions used, one writes to screen (x, y, 80, B800:0000) and one writes to memory (x, y, columns, *ptr). A global screen pointer is already added, so it?s currently only the columns that are hard-coded.

The init code added in v2.02:

   if (no_of_columns_of_current_mode != 80){
      setvideomode( 80x25 );
      if (no_of_columns != 80)
        exit();
   }


This will ensure output on the supported modes, but a rewrite of the output functions will make it more flexible.

Changelog v2.02:
- fixed bug on moving selected files (hard error)
- fixed bug on reading .ZIP files with no End Central Directory (hard error)
- added video init and (some) support for mono board (seg B000h)

 

Complete thread:

Back to the forum
Board view  Mix view
22780 Postings in 2123 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum