Extended ASCII in Turbo C --> DESPIRATE!!!!
teittinen at cc.helsinki.fi
teittinen at cc.helsinki.fi
Mon Jan 16 22:53:02 AEST 1989
In article <1691 at ektools.UUCP>, martin at ektools.UUCP (Brian Martin) writes:
>
> I am using Turbo C 2.0 in EGAHI mode (640x350).
>
> The problem I have just encountered is that I cannot access the extended
> ASCII characters (128-256).
>
> Borland tells me that Turbo C does not support these characters in
> graphics mode.
>
> For Example:
> I want to print ASCII 132
> I enter the value into an unsigned char.
> When I use outtextxy(1,1,ch) is get gargage.
> I can varify that the 132 is actually in the variable ch.
>
You can't use outtext() or outtextxy() to write ASCII characters
128-255. But at least in TurboC 1.5 it was possible to write text to
graphics screen using printf(). It is limited to one character size,
the character positions are fixed 8 pixels wide and you can use only
display page 0, but if these don't matter, then try it.
If you need to use other display pages, you can store the characters in
memory using getimage() and then writing your own output function to use
these characters in memory.
-----------------------------------+-------------------------------------------
EARN: teittinen at finuh I "Studying is the only way to do nothing
Internet: teittinen at cc.helsinki.fi I without anyone complaining about it."
-----------------------------------+-------------------------------------------
Marko Teittinen, student of computer science
-------------------------------------------------------------------------------
More information about the Comp.lang.c
mailing list