Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Support Canonical Input Mode #123

Open
jarruda opened this issue Dec 8, 2020 · 1 comment
Open

Feature Request: Support Canonical Input Mode #123

jarruda opened this issue Dec 8, 2020 · 1 comment

Comments

@jarruda
Copy link

jarruda commented Dec 8, 2020

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants