npat-efault/picocom

Feature Request: Support Canonical Input Mode

jarruda opened this issue · 1 comments

When I make devices that support serial input, it's easier to make them rely on canonical input. This allows the user to edit their input locally and I don't have to support echoing, etc.

If I turn on canonical input mode using stty, picocom resets this behavior:

$ stty -F /dev/ttyUSB0 sane
$ stty -F /dev/ttyUSB0
speed 9600 baud; line = 0;
$ picocom /dev/ttyUSB0
$ stty -F /dev/ttyUSB0
speed 9600 baud; line = 0;
min = 1; time = 0;
-brkint -icrnl
-opost
-isig -icanon -iexten -echo

I think it would be nice to be able to enable canonical input via command line arguments and/or control commands.

I second this requested feature. A lot of (Chinese?) devices don't work with inputs arriving a character at a time. I have to use the Arduino Serial Monitor which sends a line at a time for those devices to work correctly or at all.