TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: STEFAN RUSSO
from: JUHAN-A NAKKALAJARVI
date: 1997-07-03 17:06:00
subject: Video Modes

> Is there any way to set the text screen to any setting of Rows and
> Columns.. Maybe 132x60 or something??
You mean changing text mode? Well, in C is function _set_screen_lines(int 
lines), but it accepts only 25, 43 and 50 lines. You may use inline-asm to 
change those modes, like this:
asm {
  mov ax,010Ch          // 132x60 -textmode
  int 10h
}
here's list of "SVGA" text modes I know:
  Num     Mode
 108h   80x60 text
 109h   132x25 text
 10Ah   132x43 text
 10Bh   132x50 text
 10Ch   132x60 text
If you aren't able to use inline-asm, try to use textmode(int mode), it may 
work, but I'm not sure...
 - Fallen Deity
-=-=-=-=-=-=-=-
Win95-virhe 065: Suoritettu jotain hy”dylliselt„ n„ytt„v„„.
--- BBBS/2 v3.33 How
---------------
* Origin: Checkpoint * Ivalo, Finland, +358-16-663812, V34/ISDN (2:229/0)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.