Skip to content

Instantly share code, notes, and snippets.

@cabo
Created December 19, 2015 13:33
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save cabo/ce6358406f8175041813 to your computer and use it in GitHub Desktop.
Save cabo/ce6358406f8175041813 to your computer and use it in GitHub Desktop.
Make GNU screen convert return key (CR) into CR-LF
# put this in your ~/.screenrc to make
# ^A D (uppercase) switch on, and
# ^A U (uppercase) switch off, converting
# CR (return keys) input into CRLF
bind D bindkey "\015" stuff "\015\012"
bind U bindkey "\015" stuff "\015"
@seppestas
Copy link

Thanks man. I found this to be the most reliable method to generate \r\n with screen.

@1101101011011110
Copy link

Thank you very much!

@rundekugel
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment