Question

I've created a .screenrc config file to setup some split screen stuff for what im working on, and i've bound ctrl+d to quit it, but it only quits the screen, and leaves the actual processes running. Heres the bind keys part of my .screenrc file atm, is there a way i can tweek it so it kills processes too?

bindkey ^D quit

It needs to quit and kill multiple split screens btw so that may add to the complexity of it. Ultimately i'd like to bind it to Ctrl+C or Ctrl+D, either way a quick way to exit this script as its a custom script loading this custom .screenrc file. Thanks.

Was it helpful?

Solution

Unsure if you are aware of the screen ctrl a functions

ctrl a c to create a new screen

ctrl a a or [0-9] to run through connections

ctrl a d to detach 

where you can then use

 screen -r -d to re-attach

and I think you need

ctrl a \ 

this will attempt to quit the screen session and prompt if you wish to cancel it all

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top