- Subject: Re: Fix for "ugly border" bug
- From: "John E. Davis" <davis>
- Date: Mon, 28 May 2001 12:12:01 -0400
On Mon, 28 May 2001 03:42:24 -0400 (EDT), Pavel Roskin <proski@xxxxxxx> said:
>> >The bug shown here http://www.red-bean.com/~proski/mc.png is actually a
>> >bug in SLang 1.x including the latest version 1.4.4, but not 0.99.38.
I believe that the bug may be in mc itself. Let me explain. In
mc/src/color.c, you will find:
#if defined HAVE_SLANG && !defined(HAS_DIRECT_COLOR_ACCESS)
if (use_colors) { /* Hack to make COLOR_PAIR(DEFAULT_COLOR_INDEX)
be the default fg/bg of the terminal */
char *Norm_Vid = SLtt_tgetstr ("me");
if (Norm_Vid == NULL)
Norm_Vid = SLtt_tgetstr ("se");
if (Norm_Vid == NULL)
Norm_Vid = "\033[0m";
SLtt_set_color_esc (DEFAULT_COLOR_INDEX, Norm_Vid);
}
#endif
The problem with this is that the "me" attribute may reset the
alternate character set, which is exactly what happens based upon the
untic output you sent me. I would try replacing the above code
fragment by
SLtt_set_color (DEFAULT_COLOR_INDEX, NULL, "default", "default");
--John
[2001 date index]
[2001 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]