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.

My googling only left me the clue that this was the case for old screen, and now the new screen prompts for confirmation (e.g. whenever I try to kill a window or exit out of screen) . Is there a variable or remapping that will eliminate prompting? Also is there a remapping that will save me the trouble of deleting the window name when I try to rename it?

Screen version 4.00.03 (FAU) 23-Oct-06
share|improve this question
    
I assume you are referring to GNU screen running on Linux? –  terdon Mar 20 '13 at 0:33
    
yes! I changed the title. –  Forethinker Mar 20 '13 at 0:45

2 Answers 2

Here's an alternative way to rename the current window. It resolves your issue with having to delete the existing window name, however, it doesn't save any keystrokes.

Control+a : (puts screen in command mode)
:title <new window name>

share|improve this answer
up vote 0 down vote accepted

There is no real answer. The workaround:

  • use exit in the shell instead of ctrl-k
  • never rename your window: Use following script (or something similar)

    case $TERM in
    screen*)
        SCREENTITLE='\[\ek\e\\\]\[\ek\W\e\\\]'
        ;;
    *)
        SCREENTITLE=''
        ;;
    esac
    export PS1="${SCREENTITLE}[\u@\h \W]\$ "
    
share|improve this answer
    
Where can I find the grammar of the title? –  ziyuang Apr 11 '13 at 12:34

Your Answer

 
discard

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

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