Is there a Linux terminal emulator (to communicate with a GPS logger device) with lib readline support, especially command history by pressing ctrl+R like in bash?

Would be nice if it is in Ubuntu's package sources.

1 Answer 1


socat has an option to use the gnu readline library on an input. Eg

socat READLINE,history=$HOME/.cmd_history /dev/ttyS0,b19200,raw,echo=0,crnl

This no longer works on Ubuntu and Debian due to licensing incompatibilities.

An alternative readline front-end to any command is rlwrap, which is available on Ubuntu.

  • $ socat READLINE,history=$HOME/.cmd_history /dev/ttyS0,b19200,raw,echo=0,crnl 2016/11/23 22:02:23 socat[5075] E unknown device/address "READLINE"
    – Alex
    Commented Nov 23, 2016 at 21:02
  • See my update for rlwrap instead.
    – meuh
    Commented Nov 23, 2016 at 21:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.