Hello,
S-Lang uses ^N and ^O in order to switch alternate character set on
xterm-like terminal. However, this doesn't work at all (latin letters are
printed instead of line-drawing characters) if xterm is started in "locale
mode", as "xterm -lc". NCurses implements a workaround since 20040711. A
patch that implements the same idea with S-Lang is pasted at the end of
this message. The escape sequences are taken from the terminfo database as
shipped with ncurses-20050319. The patch has been tested in xterm, Konsole,
rxvt, rxvt-unicode and Eterm. Please apply.
--- slang-1.4.9/src/sldisply.c 2003-03-23 12:06:40.000000000 +0500
+++ slang-1.4.9/src/sldisply.c 2005-05-05 13:39:24.000000000 +0600
@@ -2325,9 +2325,9 @@
/* aixterm added by willi */
if (is_xterm || !strncmp (term, "aixterm", 7))
{
- Start_Alt_Chars_Str = "\016";
- End_Alt_Chars_Str = "\017";
- Enable_Alt_Char_Set = "\033(B\033)0";
+ Start_Alt_Chars_Str = "\033(0";
+ End_Alt_Chars_Str = "\033(B";
+ Enable_Alt_Char_Set = "";
}
if ((SLtt_Graphics_Char_Pairs == NULL) &&
--
Alexander E. Patrakov