Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

First time questioner here, so please point out the errors I make. I configured my gnu screen so that the control sequence wouldn't collide with emacs:

My .screenrc:

# Bind control sequence key to control-^ (Only key not used by emacs)
escape ^^^^

# skip the startup message
startup_message off

caption always "%{= kB}%-Lw%{=s kB}%50>%n%f* %t %{-}%+Lw%<"
vbell off
bind j focus down
bind k focus up
bind t focus top
bind b focus bottom
bind h focus left
bind l focus right
bind ) select 10
bind ! select 11
bind @ select 12
bind \# select 13
bind $ select 14
bind % select 15
defscrollback 10000

######################

However, when I try to switch to the last-visited window, I cannot. I've tried c^^c^^ and c^^c^a.

What am I missing? I am on a macbook pro with mountain lion, swedish keyboard and using iterm2.

share|improve this question
    
Why do you define the escape keystroke as ^^^^? To signify control-^, I believe it should say 'escape ^^', meaning C-^. (screen doesn't understand C-/A-/M- notations). Edit: And the escape KEY is just that, one keystroke to 'escape' the window for commands. Doubt it'll accept multiple keystrokes for the escape. (But if you're an emacs user, you're used to C-bucky-pinky-OMG type chords. (whew!) j/k ) –  lornix Jul 22 '13 at 9:48
    
@lornix, I followed the first example at emacs wiki, however not the lines starting with bindkey. Using escape ^^ does not work, then screen says ^A is still the Command key. It says on that same page that the first letter '^^' defines the command key and the second key '^^' defines the literal insertion key, whatever that means. –  alneberg Jul 22 '13 at 12:06
    
Hmm, I looked up the Swedish keyboard layout, is the caret a dead key? Does it normally modify a character, like the 2 dots and others. (forgive me, I'm not familiar with the proper names). If it's a dead key, then it may not work since it's captured by the system before the apps see it. –  lornix Jul 22 '13 at 12:25
    
Ah, that might be it. No workaround? I guess switching to english keyboard layout is an option. –  alneberg Jul 22 '13 at 12:43
    
How do you type a lone caret? ^ Type it twice? ah, caret, then space should give a lone caret (Sounds like a bad Bugs Bunny Cartoon!) –  lornix Jul 22 '13 at 12:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.