[comp.lang.pascal] Follow up to "redefine"

walsh@cs.odu.edu (Michael J Walsh) (11/30/89)

I recently posted a plea of sorts for code or any help in "redefining"
either the ASC character set or the extended ASC character set.

What I ment by "redefine" is to change the characters appearance on the 
screen.  i.e.  change some character to a triangle or something, so when
ever the character was printed by a writeln or write command a triangle
would be printed.  

Also, is there a way that this could be done while staying in textmode?

I know I've seen the code somewhere . . .

thanx

--Michael  (walsh@cs.odu.edu)

-----------
"He's got a '42 Ford and we've got a DeLorean!
 He'd go through us like tin foil!"
                   -- Doc in Back To The Future 2

ts@uwasa.fi (Timo Salmi LASK) (11/30/89)

In article <10572@xanth.cs.odu.edu> walsh@cs.odu.edu (Michael J Walsh) writes:
>I recently posted a plea of sorts for code or any help in "redefining"
>either the ASC character set or the extended ASC character set.
>What I ment by "redefine" is to change the characters appearance on the 
>screen.  i.e.  change some character to a triangle or something, so when
>ever the character was printed by a writeln or write command a triangle
>would be printed.  

Interrupt vector 1F hex points to the upper part of ASC char set.
You can set this vector to point to your own, redefined character
set, and then utilize the fact.  For details see Kent Porter,
Streching Turbo Pascal, Chapter 16: Custom Characters.

...................................................................
Prof. Timo Salmi                                (Site 128.214.12.3)
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: vakk::salmi Bitnet: salmi@finfun

d88-eli@nada.kth.se (Erik Liljencrantz) (12/03/89)

In article <1989Nov29.204358.20165@uwasa.fi> ts@chyde.uwasa.fi (Timo Salmi LASK) writes:
>In article <10572@xanth.cs.odu.edu> walsh@cs.odu.edu (Michael J Walsh) writes:
>>I recently posted a plea of sorts for code or any help in "redefining"
>>either the ASC character set or the extended ASC character set.
>>What I ment by "redefine" is to change the characters appearance on the 
>>screen.  i.e.  change some character to a triangle or something, so when
>>ever the character was printed by a writeln or write command a triangle
>>would be printed.  
>
>Interrupt vector 1F hex points to the upper part of ASC char set.
>You can set this vector to point to your own, redefined character
>set, and then utilize the fact.  For details see Kent Porter,
>Streching Turbo Pascal, Chapter 16: Custom Characters.

Vector 1F is used ONLY when writing the upper part of the ASCI char set in
graphics mode (it's done by the BIOS). But on the EGA (and VGA) card the
characterset can be modified. I'm sure the topic is covered in some excellent
book I don't have... What I do have is EGAFON which is a program for designing
and loading charactersets. It's probably available at SIMTEL, but if it isn't
mail me and we'll what I can do...

On the CGA card it's IMPOSSIBLE to change the look of the characters in text
mode. I don't know about standard Hercules, but Hercules Plus has some font
feature.
-- 
Erik Liljencrantz     | "No silly quotes!!"
d88-eli@nada.kth.se   |  Embraquel D. Tuta