serial port via minicom: can minicom use line-editing (i.e. readline functionality)?
1
vote
2
answers
2414
views
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?
Asked by ttsiodras
(2446 rep)
Sep 23, 2016, 12:39 PM
Last activity: May 14, 2023, 04:32 PM
Last activity: May 14, 2023, 04:32 PM