[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#4105: making slrn work in a color xterm



Package: xterm-color
Version: 3.1.2-4

Debian's slrn package comes with a debian.README that says:

>If you want to run slrn in an xterm, slrn may say that your display
>"isn't powerfull enough". This is not true, it just dosn't know how
>to handle xterm. You may set the TERMCAP variable with this command:
>(this is also true for a color-xterm, but rxvt works OK)
>
>export TERMCAP='vs|xterm|xterm-24|xterms|vs100|xterm terminal emulator (X Window System):\
[rest of termcap entry snipped]

What I've found is that an easier solution is just to unset the TERMCAP
variable entirely, and then slrn runs with no problems. It looks like the
$TERMCAP in an xterm gets set to "co#80:li#25:", and S-lang based programs
interprate this as a very dumb terminal.

Suggested fix: around line 3714 of main.c, xterm-color sets the TERMCAP
variable if USE_SYSV_ENVVARS is defined. I suggest you undefine
USE_SYSV_ENVVARS.

-- 
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj -RSA-3-lines-PERL-
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1#     Joey Hess
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)  # jeh22@cornell.edu
      "How appropriate, you fight like a cow." - - Guybrush Threepwood




Reply to: