Skip to contentSkip to conversation

Strange screen characters

DISCUSSION Bart Oldeman 1 participant 1 message Jun 2, 2005

lore
Share & tools
lore
#0 lore raw

Hi Stas,

Quoted 5 lines
Quoted 1 line · Bart Oldeman

Strange. I tested today again with some Borland IDEs

But you should really check
Norton Utilities. Everything
else works, that's strange, yes.

The difference is that Norton uses bright background colours and the blink/acs hack was messed up somewhat.

Here's a quick patch, I'm working on something better but I'd like to know if this helps you too.

Two mysteries remain:
Unpatched 1.3.2 works fine with Norton in two situations:
a) Linux console in utf8 mode (using unicode_start and a utf8 locale)
b) Using slang 2.0 (this patch only affects #ifdefed code)

In all other scenarios it was messed up indeed.
But you seemed to imply otherwise.

I don't have CVS access at the moment, just a floppy (!).

Bart

plugin/term/terminal.c renamed from plugin/term/terminal.c.~1.17.~ +7 -3
@@ -622,10 +622,14 @@
    y -= DOSemu_Terminal_Scroll_Min;
    if (y < 0 || y >= SLtt_Screen_Rows) return;
    SLsmg_gotorc (y, x);
-   SLsmg_set_color (abs(this_obj));
-#if SLANG_VERSION < 20000 
-   SLtt_Use_Blink_For_ACS = char_blink && ((attr & 0x80) >> 7);
+#if SLANG_VERSION < 20000
+   if ((attr & 0x80) && !char_blink) {
+      attr &= 0x7f;
+      this_obj = Attribute_Map[attr];
+   }
+   SLtt_Use_Blink_For_ACS = (attr & 0x80) >> 7;
 #endif
+   SLsmg_set_color (abs(this_obj));
 
    /* take care of invisible character */
    if (this_obj < 0) {