Microsoft Knowledge Base Email Alertz

There is no way to display underlined characters in text mode (SCREEN 0) on a color display. Only an IBM Monochrome Display Adapter (MDA) or a Hercules Graphics Adapter (HGA) which is connected with a monochrome display device can display u

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 35153 - Last Review: November 21, 2006 - Revision: 1.2

No Underlining on Color Display in Basic Text Mode, SCREEN 0

This article was previously published under Q35153

SUMMARY

There is no way to display underlined characters in text mode (SCREEN 0) on a color display. Only an IBM Monochrome Display Adapter (MDA) or a Hercules Graphics Adapter (HGA) which is connected with a monochrome display device can display underlined characters in SCREEN 0. This is a result of the way that the video attributes are encoded in video memory and is a limitation of the hardware, not Basic.

Note that in graphics mode, you may draw lines wherever desired, and you can emulate the monochrome underlining capability.

This information applies to the following products:

  1. Microsoft QuickBasic Compiler Versions 2.00, 2.01, 3.00, 4.00, and 4.00b
  2. Microsoft Basic Compiler Versions 6.00 and 6.00b for MS-DOS and MS OS/2 and Microsoft Basic PDS Version 7.00 for MS-DOS and MS OS/2
  3. The Microsoft GW-Basic Interpreter Versions 3.20, 3.22, and later (Note that on Hercules or monochrome adapters, GW-Basic can use text SCREEN 0 but does not support graphics screen modes.)

MORE INFORMATION

See Pages 79-81 of "The Peter Norton Programmer's Guide to the IBM PC" (published by Microsoft Press, 1985) for more information about text mode attributes.

The following book from Microsoft Press describes video details more completely:

"Programmer's Guide to PC & PS/2 Video Systems," by Richard Wilton (Microsoft Press, 1987). Chapter 3 describes the alphanumeric video modes (i.e., SCREEN 0).

APPLIES TO
  • Microsoft QuickBasic 2.0
  • Microsoft QuickBasic 2.01
  • Microsoft QuickBasic 3.0
  • Microsoft QuickBasic 4.0
  • Microsoft QuickBASIC 4.0b
  • Microsoft BASIC Compiler 6.0
  • Microsoft BASIC Compiler 6.0b
  • Microsoft BASIC Professional Development System 7.0
  • Microsoft GW-BASIC Interpreter 1.0
Keywords: 
KB35153
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate