Re: console font problem

Bart Oldeman
2003-01-30T02:13:21Z

On Wed, 29 Jan 2003, Claudia Neumann wrote:

> I have a problem with console fonts in dosemu. The Norton Commander and other
> programs show a deranged screen with strange line characters in console mode.
> In X-Windows everything is okay.
>
> The RPM-Package with dosemu-1.0.2 is okay in console mode.
>
> Dosemu-1.1.3, 1.1.3.7, 1.1.4 and 1.1.4.6 all show the strange characters in
> console mode. I tried all modes in dosemu.conf with
>
> $_term_char_set = "ibm", "latin", "latin1"
> $_external_char_set = "", "iso8859-1", "iso8859-15"
> $_internal_char_set = "cp437", "cp850"

that's a bug -- "ibm" no longer worked properly.
$_term_char_set = ""
or
$_term_char_set = "ibm"
should get you the box drawing characters on the console.

Fix is below.

Bart

--- dosemu-1.1.4.9/src/plugin/term/terminal.c Sun Jan 26 15:18:55 2003
+++ dosemu-1.1.4.10/src/plugin/term/terminal.c Wed Jan 29 21:01:09 2003
@@ -149,7 +150,8 @@
/* Slang should filter out the control sequences for us...
* So don't worry about characters 0x00 - 0x1f && 0x80 - 0x9f
*/
- if (trconfig.output_charset == lookup_charset("cp437")) {
+ if (trconfig.output_charset == lookup_charset("cp437") ||
+ trconfig.output_charset == lookup_charset("terminal_cp437")) {
Use_IBM_Codes = 1;
/* Should we be testing TERM here??? */
/* The following turns on the IBM character set mode of virtual console