slang-users mailing list

[2001 Date Index] [2001 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Half-baked initialization for TERM=linuxfoo


> >I understand that. I'm not against workarounds in general, but in this
> >case, hiding the problem is not really helpful IMHO.
>
>   The alternative would be to exit indicating that the terminal does
>   not exist in the database.

Exactly. That's much better than what MC used to do. It would crash after
attempting to allocate -2 bytes for something because SLang initialization
was "successful", but the screen size remained unknown.

The reason why I prefer this approach is that fixing the $TERM variable is
rather easy and doesn't require root permissions.

> Later this week I will download the mc source and try to see what is
> going on.  The arrow keys should work because the SLkp_init function
> uses hard-coded results for vtxxx arrow keys as well as entries from
> the terminfo database.

Please make sure to download the CVS snapshot from
http://www.red-bean.com/~proski/mc/ - it's kept in a good shape and should
be more stable than mc-4.5.54.

There are several calls to SLtt_get_terminfo() (yes, the code is still
messy but it's getting better). The workaround is in src/slint.c

-- 
Regards,
Pavel Roskin


[2001 date index] [2001 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]