Set screen-title from shellscript

后端 未结 12 1637
忘掉有多难
忘掉有多难 2020-12-12 16:48

Is it possible to set the Screen Title using a shell script?

I thought about something like sending the key commands ctrl+A shift-

12条回答
  •  死守一世寂寞
    2020-12-12 17:36

    You can also call screen and tell it to set a title:

    screen -X title "new title"
    

    If you're in a screen window, it will set that window's name. If you're not in screen, it will set the most recently opened window's name.

提交回复
热议问题