npat-efault / picocom

Minimal dumb-terminal emulation program
GNU General Public License v2.0
631 stars 125 forks source link

Feature Request: Support Canonical Input Mode #123

Open jarruda opened 3 years ago

jarruda commented 3 years ago

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.

tomldavis commented 10 months ago

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.