up vote 6 down vote favorite
3
share [g+] share [fb]

I use backtick ` as my command char, it is more convenient than using ^A or even ^O. The only issue I encounter is when I want to cut & paste scripts with backticks. I created registers bound to F12 toggle the command character (including changing the hardstatus to denote when I'm in a changed state).

## command characters
register a "\140:eval 'bindkey -d -k F2 process b' 'escape \\017\\017' 'hardstatus string \"[ALT] %w // %h\"'^M" # ^O^O
register b "\017:eval 'bindkey -d -k F2 process a' 'escape \\140\\140' 'hardstatus string \"%w // %h\"'^M" # \`\`
escape  \140\140        # default is `
bindkey -d -k F2 process a  # toggle escape chars

When I was trying to come up with this scheme I found the screen documentation to be pretty sparse. I had to scrounge through websites and the mailing list to find 'complex' screen hacks. So what screen hacks have you come up with that include using registers, evals, and exec's?

link|improve this question
feedback

2 Answers

The byobu project gathers quite a few nice screen tricks.

link|improve this answer
feedback

To update your xterm title-bar with the screen status-line:

hardstatus string "screen (%n: %t)"
termcapinfo xterm* 'hs:ts=\E]2;:fs=\007:ds=\E]2;\007'
link|improve this answer
termcapinfo xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l is another termcapinfo line that allows 80/132 switching. – Darren Hall Feb 9 '10 at 20:10
follow with hardstatus off and set a different hardstatus line with caption always "..." – quack quixote Jun 13 '10 at 17:34
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.