Subject: Re: Terminal type supporting semigraphics
To: =?iso-8859-1?Q?Mari=E1n?= Hercek <hercek@student.ucm.sk>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: netbsd-help
Date: 11/18/2005 23:35:50
On Fri, Nov 18, 2005 at 06:44:10PM +0100, Marián Hercek wrote:
> I used TERM = wsvt25m and:
> 1) there's semigraphics in MC, but directories should be in white (light gray) 
> color - they are not,
> 2) in MC when I scroll down or sometimes scroll up files or directories are in 
> black

The termcap entry for wsvt25 is incorrect - please use this patch and
regenerate termcap.db with cap_mkdb termcap in the /usr/share/misc
directory:

--- /usr/src/share/termcap/termcap.src  2005-07-05 17:37:51.000000000 +0200
+++ termcap     2005-11-18 23:24:54.000000000 +0100
@@ -932,7 +932,7 @@
 # These are micro-minimal and probably need to be redone for real
 # after the manner of the pcvt entries.
 wsvt25|NetBSD wscons in 25 line DEC VT220 mode:\
-       :Co#16:NC#32:pa#256:it#8:ms:ut:\
+       :Co#8:pa#64:it#8:ms:ut:\
        :@7=\E[8~:is=\E[r\E[25;1H:\
        :k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:k6=\E[17~:\
        :k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:kh=\E[7~:F1=\E[23~:F2=\E[24~:\


Some color problems are also caused by mc not using the right escape
sequence to reset colors. 

> 3) Home and End does not work in MC and neither in bash. Learning keys in MC 
> won't work for Home and End. Other keys are fine.

Works for me without learning.

> When I used TERM = linux:
> 1) there's no semigraphics in MC
> 2) MC cannot learn F1 ... F10
> 
> It's likely the problem is in MC...
> 
> Is there any good terminal for common PC. I am connected via ssh (PuTTY 
> client).

I think for putty you should use TERM=xterm. Also, there are several
options for Home and End keys in PuTTY keyboard setup. Try all of them,
maybe some will work...

Pavel Cahyna