On Thu, Nov 14, 2024 at 3:56 PM Anders Andersson <pipat...@gmail.com> wrote:
> I'm trying to move my screen+irssi (irc client) setup from a linux
> machine to OpenBSD 7.6 but I found that screen has a slightly
> different behaviour that I can't debug further. I know I should switch
> to tmux one of these days, but old habits die hard. I want to see if I
> can fix this first.
>
> The problem is that I don't get any colours in irssi when I start
> screen in detached mode. Detached mode means something like this:
>
> $ screen -d -m irssi
>
> This starts irssi in a new screen session in the background, without
> attaching to it directly. As the manual points out, this is useful in
> startup scripts, and I normally run this from cron with @reboot.
>
> However, screen -d -m causes irssi to draw everything monochrome,
> while plain screen works:
>
> $ screen irssi    <- colours
>
> $ screen -d -m irssi
> $ screen -r        <- no colours
>
> On my linux machines I get colours in both modes and I can't seem to
> find what the difference is.
>
> $TERM is "screen" on both instances, and I've tried manually changing
> it to things like "xterm", "screen-256color" with no effect.

I think you're on the correct line, but maybe there's some other
environment variable affecting things.

So, run 'env' in both and compare the output for other differences.

Oh, and if the detached version is being run from .xsession or
something, compare *that* env against the env when you don't start it
detached.

Reply via email to