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've tried forcing a terminal with screen -d -m -T screen-256color, no effect. I've tried forcing irssi to draw colors, which *does* draw colours but the layout is now completely broken, which indicates that there is actually something different other than the simple TERM variable. I connect to my OpenBSD server with ssh but I've tried a few different terminal emulators (xterm, gnome terminal, kitty) but no difference. Does anyone have some idea on what I could check? I've never needed to do more than the occasional changing of TERM (usually nothing good happens) so I don't know which tools to use. Probably something with "termcap" but any pointers would be welcome. // Anders

