GNU Screen: how to bind Alt + Left Arrow & Alt + Right Arrow to prev/next

for a simple way to switch between GNU Screen ‘screens’ using Alt + Arrow key, use the below key bindings in your .screenrc file

# Arrow keys to switch terminals (only works with X) 
# Alt + left 
bindkey ^[[1;3D prev 
# Alt + right 
bindkey ^[[1;3C next 

note:

  • don’t use Ctrl + Alt + Left/Rigth Arrow as its used by GNOME to swap virtual desktops
  • nor firefox style as its used by GNOME Terminal for switching its tabs
  • to find out what Alt/Fn/Ctrl characters equal what just execute cat and start typing

Justin Kelly

Justin Kelly

Web Developer, Business Analytics, Data Engineer specialising in PHP, ReactJS, Tableau, AWS RedShift and Matillion ETL

Based in Melbourne, Australia

Feel free to contact me justin@kelly.org.au or _justin_kelly

Leave a comment

Name Notify me of replies by email.