Linux MS DOS discussions
 help / color / mirror / Atom feed
From: Bart Oldeman <bartoldeman@users.sourceforge.net>
To: linux-msdos@vger.kernel.org
Subject: Re: Strange screen characters
Date: Fri, 03 Jun 2005 00:21:16 +1200	[thread overview]
Message-ID: <429ef9bc.2d8.476c.21036076@ihug.co.nz> (raw)

[-- Attachment #1: Type: text/plain, Size: 752 bytes --]

Hi Stas,

> Bart Oldeman wrote:
> > 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

[-- Attachment #2: terminal.diff --]
[-- Type: text/plain, Size: 700 bytes --]

--- src/plugin/term/terminal.c.~1.17.~	2005-05-20 12:21:06.000000000 +1200
+++ src/plugin/term/terminal.c	2005-06-02 10:38:52.000000000 +1200
@@ -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) {

             reply	other threads:[~2005-06-02 12:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-02 12:21 Bart Oldeman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-06-02 15:47 Strange screen characters Stas Sergeev
2005-05-30 16:12 Stas Sergeev
2005-05-31 16:35 ` Pete Cervasio
2005-05-29  9:19 Stas Sergeev
2005-05-29 22:49 ` Bart Oldeman
2005-05-29  3:11 Bart Oldeman
2005-05-26  2:30 Hufnus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=429ef9bc.2d8.476c.21036076@ihug.co.nz \
    --to=bartoldeman@users.sourceforge.net \
    --cc=linux-msdos@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox