home *** CD-ROM | disk | FTP | other *** search
- ' This program demonstrates how to display the "unprintable" character codes
- ' 7, 9 to 13, and 28 to 31 in QBasic, QuickBASIC, or BASIC PDS.
- '----------------------------------------------------------------------------
- ' By Lou A. Moccia, 11/17/91, America Online DOS Forum Consultant: PCC Lou
- ' This file is Public Domain.
- '----------------------------------------------------------------------------
-
- ' Use 80 by 25 character text mode screen.
-
- SCREEN 0
- CLS
-
- ' Set the data segment to the video memory area. Be sure to use &HB000
- ' instead for monochrome adapter displays.
-
- DEF SEG = &HB800
-
- ' The first number used with POKE is the screen location, which must be an
- ' EVEN number from 0 to 3998. 0 is the upper-left corner of the screen, and
- ' 3998 is the lower-right corner. Why is it 0 to 3998, you ask? An 80 by 25
- ' text mode screen is 2000 characters, and at 2 bytes per character the
- ' screen takes 4000 bytes of memory. So, the even numbers from 0 to 3998 are
- ' the screen memory locations. The second number used with POKE is the
- ' character code to display (code 30 is the "unprintable" symbol "").
-
- POKE 0, 30
- POKE 3998, 30
-
- ' Reset the data segment to the BASIC default.
-
- DEF SEG
-
- ' Just wait for a keypress so you can see the full screen.
-
- WHILE INKEY$ = "": WEND
-
-