serial port via minicom: can minicom use line-editing (i.e. readline functionality)?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I am successfully talking to a board connected over a serial port interface to my PC. I can both send and receive bytes - but for interactive applications executing on the board, that try to read inputs from their stdin, minicom doesn't seem to offer any kind of readline-like editing functionality:
// code running on the embedded board
printf("Reading a number: ")
scanf("%d", &i);
In minicom:
$ minicom -D /dev/ttyS0 -b 38400
...
Reading a number: 1a^H
Once I enter an 'a', I can't backspace over it.
Note there's no shell or anything in between here - this is plain minicom over a serial line, nothing more.
screen /dev/ttyS0 38400
seems to work fine - allowing me to edit the line and only sending it to the serial when I press ENTER.
Can minicom be configured to do the same?
serial-port readline minicom
add a comment |Â
up vote
1
down vote
favorite
I am successfully talking to a board connected over a serial port interface to my PC. I can both send and receive bytes - but for interactive applications executing on the board, that try to read inputs from their stdin, minicom doesn't seem to offer any kind of readline-like editing functionality:
// code running on the embedded board
printf("Reading a number: ")
scanf("%d", &i);
In minicom:
$ minicom -D /dev/ttyS0 -b 38400
...
Reading a number: 1a^H
Once I enter an 'a', I can't backspace over it.
Note there's no shell or anything in between here - this is plain minicom over a serial line, nothing more.
screen /dev/ttyS0 38400
seems to work fine - allowing me to edit the line and only sending it to the serial when I press ENTER.
Can minicom be configured to do the same?
serial-port readline minicom
1
screen
does its own line buffering,minicom
doesn't. If the application on your board you're talking to doesn't offer that kind of line editing, you're out of luck.
â Satà  Katsura
Sep 23 '16 at 13:56
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am successfully talking to a board connected over a serial port interface to my PC. I can both send and receive bytes - but for interactive applications executing on the board, that try to read inputs from their stdin, minicom doesn't seem to offer any kind of readline-like editing functionality:
// code running on the embedded board
printf("Reading a number: ")
scanf("%d", &i);
In minicom:
$ minicom -D /dev/ttyS0 -b 38400
...
Reading a number: 1a^H
Once I enter an 'a', I can't backspace over it.
Note there's no shell or anything in between here - this is plain minicom over a serial line, nothing more.
screen /dev/ttyS0 38400
seems to work fine - allowing me to edit the line and only sending it to the serial when I press ENTER.
Can minicom be configured to do the same?
serial-port readline minicom
I am successfully talking to a board connected over a serial port interface to my PC. I can both send and receive bytes - but for interactive applications executing on the board, that try to read inputs from their stdin, minicom doesn't seem to offer any kind of readline-like editing functionality:
// code running on the embedded board
printf("Reading a number: ")
scanf("%d", &i);
In minicom:
$ minicom -D /dev/ttyS0 -b 38400
...
Reading a number: 1a^H
Once I enter an 'a', I can't backspace over it.
Note there's no shell or anything in between here - this is plain minicom over a serial line, nothing more.
screen /dev/ttyS0 38400
seems to work fine - allowing me to edit the line and only sending it to the serial when I press ENTER.
Can minicom be configured to do the same?
serial-port readline minicom
serial-port readline minicom
asked Sep 23 '16 at 12:39
ttsiodras
1,14911222
1,14911222
1
screen
does its own line buffering,minicom
doesn't. If the application on your board you're talking to doesn't offer that kind of line editing, you're out of luck.
â Satà  Katsura
Sep 23 '16 at 13:56
add a comment |Â
1
screen
does its own line buffering,minicom
doesn't. If the application on your board you're talking to doesn't offer that kind of line editing, you're out of luck.
â Satà  Katsura
Sep 23 '16 at 13:56
1
1
screen
does its own line buffering, minicom
doesn't. If the application on your board you're talking to doesn't offer that kind of line editing, you're out of luck.â Satà  Katsura
Sep 23 '16 at 13:56
screen
does its own line buffering, minicom
doesn't. If the application on your board you're talking to doesn't offer that kind of line editing, you're out of luck.â Satà  Katsura
Sep 23 '16 at 13:56
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
Consider using rlwrap
to add readline's advanced line editing features to any simple terminal program. I'm not sure if minicom
would work fine with it since it features quite a complex UI; if not, try picocom
.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Consider using rlwrap
to add readline's advanced line editing features to any simple terminal program. I'm not sure if minicom
would work fine with it since it features quite a complex UI; if not, try picocom
.
add a comment |Â
up vote
0
down vote
Consider using rlwrap
to add readline's advanced line editing features to any simple terminal program. I'm not sure if minicom
would work fine with it since it features quite a complex UI; if not, try picocom
.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Consider using rlwrap
to add readline's advanced line editing features to any simple terminal program. I'm not sure if minicom
would work fine with it since it features quite a complex UI; if not, try picocom
.
Consider using rlwrap
to add readline's advanced line editing features to any simple terminal program. I'm not sure if minicom
would work fine with it since it features quite a complex UI; if not, try picocom
.
answered Aug 21 at 17:33
L29Ah
481113
481113
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f311845%2fserial-port-via-minicom-can-minicom-use-line-editing-i-e-readline-functionali%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
screen
does its own line buffering,minicom
doesn't. If the application on your board you're talking to doesn't offer that kind of line editing, you're out of luck.â Satà  Katsura
Sep 23 '16 at 13:56