#8 Console window resize support for DOS apps

open
nobody
None
5
2006-06-10
2006-06-10
copx
No

The following statements resize the WinXP console
window when compiled for win32 (using pdcurses 2.8/mingw):

resize_term(TEXT_ROWS, TEXT_COLUMNS);
wresize(stdscr, TEXT_ROWS, TEXT_COLUMNS);

If the same code is compiled for DOS (pdcurses
2.8/djgpp) the resulting program does not properly
resize the console window (it does resize the rows but
not the columns - very strange).

Certainly not a critical feature given the mostly
obsolete nature of DOS but if this can be fixed easily
I would still like to see it.

Discussion

  • Logged In: YES
    user_id=27933

    It's even worse than that. In DOS, resizing is done by a
    BIOS call to change the video mode. Only certain fixed sizes
    are available; the height can only be set to a few values.
    (Check the LINES value after you resize.) More range might
    be available via some of the more advanced BIOS functions...
    but it's definitely not a simple fix.

     
  • Logged In: YES
    user_id=27933

    BTW, stdscr is already resized by resize_term(), as is
    curscr. (Other windows, you'll have to do yourself.)