serial port via minicom: can minicom use line-editing (i.e. readline functionality)?

The name of the pictureThe name of the pictureThe name of the pictureClash 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?










share|improve this question

















  • 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














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?










share|improve this question

















  • 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












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?










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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












  • 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










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.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    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






























    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.






    share|improve this answer
























      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.






      share|improve this answer






















        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.






        share|improve this answer












        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 21 at 17:33









        L29Ah

        481113




        481113



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay