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


Pavel Roskin <proski@xxxxxxx> wrote:
>For some obscure reason SLtt_initialize() accepts any terminal names
>beginning with "linux", "xterm", "rxvt", "Eterm" and in some cases "vt"
>_regardless_ of whether _SLtt_tigetent() succeeded or not.

It uses this information for defaults when it cannot find the
appropriate terminal entry.  

>What is worse, if _SLtt_tigetent() fails only some minimal initialization
>is performed. Notably, SLtt_get_screen_size() doesn't get called, which

Anything else?  It is easy to add the call to SLtt_get_screen_size to
sldisply.c.  A work around until then would be to add it to the mc
code before calling SLtt_initialize.

>I actually don't like the idea of adding SLtt_get_screen_size() for the
>case when _SLtt_tigetent() fails but S-Lang "knows" the terminal. There is
>still a lot of code skipped. MC is still pretty useless after such "half
>baked" initialization, since the cursor movement keys don't work. Next
>version of MC will abort if the screen size has not been set.

Do the cursor keys not work because SLtt_get_screen_size was not
called?  

Thanks,
--John


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