TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: David Etheredge
from: Mike Bilow
date: 1995-03-23 07:50:26
subject: Bios calls / text color

David Etheredge wrote in a message to All:

 DE> In transferring an application from Dos to OS/2, I noticed
 DE> that conio.h in Cset does not have the textcolor(),
 DE> textbackground(), and other functions that control color in
 DE> the text mode. Is this intentional?

As I'm sure Peter Fitzsimmons is furiously typing already, these functions
are Borlandisms.  Even non-Borland DOS compilers do not have them, although
most have the decency to preface non-standard or vendor-specific function
names with an underscore.

 DE> Can I use Bios calls/ interrupts to set the screen attributes 
 DE> under OS/2?

No.

 DE> If this
 DE> is not allowed, how do I set colors and background outside
 DE> of the pm / wp systems (i.e. in a full screen mode such as
 DE> when booting from the a drive boot disk)? 

You want to look into the OS/2 VIO API subsystem functions.  I don't know
if the Borland OS/2 compiler implements the Borland-specific functions in a
way compatible with the Borland DOS compiler, but that might be one
approach.
 
-- Mike


---
* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107)
SEEN-BY: 105/42 620/243 624/50 711/401 409 410 413 430 807 808 809 934 955
SEEN-BY: 712/407 515 628 704 713/888 800/1 7877/2809
@PATH: 323/107 150 3615/50 396/1 270/101 105/103 42 712/515 711/808 809 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™.