Gnu-Screen: Run script that sends commands to the screen session it is being run in

前端 未结 5 2120
半阙折子戏
半阙折子戏 2020-12-31 17:39

Is it possible to write a script to change the name and turn on monitoring for the current tab assuming that it is being run in screen?

Thanks.

5条回答
  •  萌比男神i
    2020-12-31 18:06

    Screen runs transparently, so detecting the screen session is hard. If you try sending key presses, that would work, and would fill your terminal with a tiny bit of junk if you're not in a session.

提交回复
热议问题