Keeping the screen mode

 BBS: Inland Empire Archive
Date: 12-19-92 (12:44)             Number: 396
From: STARR HORNE                  Refer#: NONE
  To: OLIVIER MASSE                 Recvd: NO  
Subj: Keeping the screen mode        Conf: (2) Quik_Bas
OM>Hi there All,

OM>My question is quite simple and specific: How can one execute a compiled
OM>QuickBasic program and keep the screen mode that was in it?

OM>Here's my terrific program: :-)
OM>SCREEN 9
OM>PRINT "Screen Mode Changed"
OM>END

        try this.:

                screenmode = peek(&h49)



        The number of the initial screen mode will be in screen mode.
        I'm not sure if it gives the QB screen Mode no. But it gives the
        int 010h moden no.  (If you have Ralf Brown's interlist a list
        of them is in there under int 10 / mode 0)

Later
        Starr

 * SLMR 2.0 * We all live in a yellow subroutine.
--- GOMail v1.1 [DEMO] 01-05-93
 * Origin: Home of the Trek logbook (1:19/121)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET