Mail Archives: djgpp/1998/12/09/06:10:21
On Tue, 8 Dec 1998, Robert Hoehne wrote:
> The problem here is, that RHIDE uses internally hardcoded the
> IBM (or PC??) character set for some special characters (like
> the frame chars). This problem may occour also on DOS, but very
> seldom, since there is in most cases the font installed, which
> RHIDE expects.
>
> Mayve I will find someday the time to learn a little bit more
> about all that stuff so I can fix it (or someone else sends me
> a patch for it :-)
One possible solution is to have an extra level of indirection between
the characters written by the display code and the actual bytes that
are sent to the screen. Create a 256-element table, where the X-th
element holds the byte to be sent to the screen when the display code
wants to display a character whose 8-bit code is X.
You can initialize the table with "table[X] = X", and then change the
mapping if the underlying codepage/display system doesn't support
certain characters, such as IBM box-drawing characters.
The GNU `recode' program has one example of emulating box-drawing
characters with ASCII characters.
- Raw text -