Depending on how I run
screen, it either does or does not have the right TERMCAP info.
The symptom of this is that colors don't always show up in my terminal correctly (eg: ls, vim syntax highlighting, etc).
This works fine:
$ echo $TERMCAP <empty output> $ screen -S foo $ screen -r foo <now I'm inside a screen session> $ echo $TERMCAP <long output> $ ls <nice pretty colors>
This has problems:
$ echo $TERMCAP <empty output> $ screen -d -m -S foo $ screen -r foo <now I'm inside a screen session> $ echo $TERMCAP <long output, but different than before> $ ls <no colors ):>
Now, I can work around this. I can fiddle with my TERMCAP manually, etc.
But I'd really like to understand what's going on. I'd like to find a 'clean' solution, if possible.
Does anybody know what's going on here?
What difference should it make if I use
-d -m when running
This is on FreeBSD, if that matters.