You are not logged in.
I've about had it with screen. This is the most frustrating piece of software I've ever had to configure. The guys at GNU should get their heads out of their asses and write better documentation.
...Sorry, I just had to let that out. I just spent the better part of an hour googling, searching wikis, forums, etc.. trying to figure out one simple thing: how to make urxvt's titlebar always say "screen: %n %t", where %n and %t are interpreted and replaced by screen. For example, "screen: 0 irssi".
Here's my current .screenrc:
# I hate "window 0"
bind c screen 1
bind 0 select 10
screen 1
select 1
# Welcome msg is stupid
startup_message off
setenv LC_CTYPE en_US.UTF-8
defutf8 on
vbell off
# Other fixes
termcapinfo rxvt* 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen (^En ^Et)\007'
altscreen on
# status line at the bottom, where it belongs
hardstatus on
hardstatus alwayslastline
hardstatus string "%Y-%m-%d;%c %{= kw}%-w%{= kG}%{+b}[%n %t]%{-b}%{= kw}%+w"
caption always
caption string "%="
No escape sequence in the termcapinfo line I could think of has worked. Even the above, which the wiki page even stated works, gives me a bash that starts with "1;2c" after my prompt. I have no idea why.
This is driving me crazy. My old box was able to do this.. there's no reason my current box can't. I would greatly appreciate any assistance I could get on this; my attempts to help myself have failed.
Last edited by xelados (2011-06-03 05:16:35)
Offline
I hate to bump this topic.. but continued searching and poking around hasn't net me any results.. if there's specific information you want, I can supply any info you need.
Offline
Third attempt.. still no luck. The guys in #screen haven't been helpful, Google hasn't helped, searching the screen mailing list hasn't led to anything meaningful.. I know this can be done...
[EDIT] Eureka! Just when I was about to give up, too. The trick is to change your hardstatus line to your caption line, and use hardstatus as your desired window-title information. Here's what works for me:
termcapinfo rxvt* 'hs:ts=\E]2;:fs=\007:ds=\E]2;\007'
hardstatus string "screen (%n: %t)"
# status line at the bottom, where it belongs
caption string "%{= kw}%Y-%m-%d;%c %{= kw}%-w%{= kG}%{+b}[%n %t]%{-b}%{= kw}%+w"
caption always
I don't know exactly what was so special about this setup but I'm not gonna complain. It works!
Last edited by xelados (2009-03-27 12:13:57)
Offline
There's an oddity about this setup. Whenever I try to maximize or fullscreen a terminal (xterm and urxvt tested so far), screen crashes. I think something's off in my termcapinfo or my .screenrc, since it doesn't screw up when I load screen without a .screenrc.
https://github.com/sporkbox/dotfiles/bl … /.screenrc
Any ideas? I hope necroposting is okay since it relates to this specific configuration.
Offline
I'll trade you a necro for a more oblique solution:
# pacman -S tmux
It is a far superior solution (and the documentation is very good).
Offline
Can I do everything with tmux that I do with screen? Here's a screenshot:
Specifically I want to see the ttys I have open, name them, the date & time, and the titlebar reflecting which tty I have open.
Offline
Can I do everything with tmux that I do with screen? Here's a screenshot:
Specifically I want to see the ttys I have open, name them, the date & time, and the titlebar reflecting which tty I have open.
I think so. Check this thread.
Offline
Can I do everything with tmux that I do with screen? Specifically I want to see the ttys I have open, name them, the date & time, and the titlebar reflecting which tty I have open.
That. And more. You can have tmux start with all of those windows/panes open, with the correct names, the apps running etc...
See here for the differences between the two: http://unix.stackexchange.com/questions … gnu-screen
Offline
xelados wrote:Can I do everything with tmux that I do with screen? Specifically I want to see the ttys I have open, name them, the date & time, and the titlebar reflecting which tty I have open.
That. And more. You can have tmux start with all of those windows/panes open, with the correct names, the apps running etc...
See here for the differences between the two: http://unix.stackexchange.com/questions … gnu-screen
Sold.
Offline
Another satisified customer.
Next!
(Please mark your thread as [Solved] on your way out)
Offline