TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Thomas Wuelfing
from: Rinat Sadretdinow
date: 1997-02-11 15:10:28
subject: ClearScreen for OS/2 VIO ?

Hello Thomas!

 TW> I'd like to know, how to clear the screen in a VIO-Session under
 TW> OS/2?

You may use a special case call to VioScrollXX functions with an upper left
coordinates (0,0), bottom right coordinates (-1,-1) and number of lines to
scroll -1. This special case call does not require you to first determine
the dimensions of the actual screen:

void ClrScr()
{
    USHORT usCell = 0x0720;

    VioScrollUp(0, 0, -1, -1, -1, (PBYTE)&usCell, 0);
}

Bye!
Rinat Sadretdinow                                              [Team OS/2]

---
* Origin: -= Thunder Bird =- +7 095 947 1209 10:00pm-08:00am (2:5020/620)
SEEN-BY: 50/99 54/99 270/101 620/243 625/160 711/401 413 430 934 712/311 407
SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1
@PATH: 5020/620 509 443 79 5100/8 396/1 270/101 712/624 711/934

SOURCE: echomail via fidonet.ozzmosis.com

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™.