0

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

4

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.

2
  • $ 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
    Nov 23, 2016 at 21:02
  • See my update for rlwrap instead.
    – meuh
    Nov 23, 2016 at 21:27

Your Answer

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

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