Groovy hepcat Andy Leese was jivin' in alt.msdos.programmer on Thu, 18
Oct 2007 8:05 pm. It's a cool scene! Dig it.
> ASCII Symbols
>
> I am programming for DOS using Borland C++ and wish to display the
> symbols of the early ASCII character set...
>
> For example:
>
> cprintf("%c",mychar[7]); // where mychar[7] is char(7)
>
> This is assigned to the BELL signal and therefore sounds the beep and
> doesn't display the bullet point I require. Is there a way to display
> these symbols without allowing the operating system to 'interpret'
> them into the beep sound for whatever?
There is no "bullet point" in ASCII. ASCII is a text character set
with some control characters. ASCII 7 is a control character intended,
as you have ascertained, to cause an audible tone to be generated.
If you want to output something else, first you should understand that
the bullet glyph is part of the IBM Extended Character Set, not ASCII,
and that the way to display such a thing on your screen may depend on
the exact nature of your system and how you're displaying things on the
screen.
But what I advise is to either use an INT 10H BIOS call (See Ralf
Brown's Interrupt List.) or access video RAM directly.
--
Dig the sig!
----------- Peter 'Shaggy' Haywood ------------
Ain't I'm a dawg!!


|