Skip to content

Instantly share code, notes, and snippets.

@yuuichi-fujioka
Created March 7, 2014 00:54
Show Gist options
  • Save yuuichi-fujioka/9402974 to your computer and use it in GitHub Desktop.
Save yuuichi-fujioka/9402974 to your computer and use it in GitHub Desktop.
Screen tips
# Create Screen with window title
screen -S ${screen_name} -t ${window_title}
# Send text to input buffer with window title
screen -S ${screen_name} -p ${window_title} -X stuff $'echo hello\r'
# Send Ctrl c to window
screen -S ${screen_name} -p ${window_title} -X stuff $'\003'
# Send up to window
screen -S ${screen_name} -p ${window_title} -X stuff $'\033[A'
# Send enter to windwow
screen -S ${screen_name} -p ${window_title} -X stuff $'\015'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment