Hardware cursor and console colours resetting when starting mutt

David Woodfall dave at dawoodfall.net
Fri Oct 5 23:27:42 UTC 2018


On Saturday 6 October 2018 08:43,
Cameron Simpson <cs at cskk.id.au> put forth the proposition:
> On 30Sep2018 23:40, David Woodfall <dave at dawoodfall.net> wrote:
> > Perhaps I could add terminfo entry in screenrc especially for mutt
> > that removes the init and reset strings. Not sure if it's possible on
> > an app-by-app basis though.
>
> You can certainly make customised terminfo entries; I keep a few around myself.  As with
> termcap, you can make entries based on other entries, so it would be trivial to make a
> special one like your console terminfo but with modified init strings.
>
> You have 2 routes for per-app use of these: give your terminfo a special name and set
> $TERM, or change the value of $TERMINFO to find your entry in preference to the system
> default.
>
> "man 5 terminfo" has useful information in the "Fetching Compiled Descriptions" section.
>
> You could invoke mutt via a wrapper which modified the terminfo envars if it know it was
> running on the Linux console. (Not so easy from within screen of course.) Or of course
> just routinely use a particular terminfo entry inside screen, since it is entriely
> divorced from the physical terminal screen is using as a display.
>
> Cheers,
> Cameron Simpson <cs at cskk.id.au>

Thanks for the ideas.

I tried adding some entries in screen last week via the termcapinfo
setting. I changed a few of the strings such as the init and reset
strings. There was no effect so I ended up copying the entire
xterm-color string and it still had no effect.

I'll stick with changing $TERM in a shell function for now. When I
get some time I'll have another look.

--
Dave

What I want is all of the power and none of the responsibility.

                                                            .--.  oo
                                                           (____)//
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'


More information about the Mutt-users mailing list