5

I use minicom when working on Cisco router serial terminals... by default, I use these settings in my ~/.minirc.dfl:

pu port             /dev/ttyUSB0
pu baudrate         9600
pu bits             8
pu parity           N
pu stopbits         1
pu rtscts           No
pu xonxoff          No
pu minit
pu mreset
pu mhangup

What's interesting is that minicom defaults to linewrap off, and I haven't found a way to turn it on in ~/.minirc.dfl. When I've tried the obvious like:

pu linewrap         Yes

minicom barks that **Line 9 of the personal config is unparsable.

Other than a bash alias like alias minicom="minicom -w", is there a way to default minicom to automatically wrap lines? I would like to set this in ~/.minirc.dfl

11

Your guess should be correct, because this is exactly the line, minicom writes itself when invoked in setup mode via minicom -s:

# Machine-generated file - use "minicom -s" to change parameters.
pu linewrap         Yes

However it neither does not work on my machine. A workaround is to use the environment variable MINICOM

MINICOM="-w"
export MINICOM

as explained in the manual:

When minicom starts, it first searches the MINICOM environment variable for command-line arguments (...)

2
  • 2
    I pulled pu linewrap after reading src/rwconf.c, so I just figured my understanding of C was broken. I hadn't tried -s. I'll file a bug. It's odd that minicom doesn't even understand its own config format – Mike Pennington Feb 14 '15 at 12:40
  • 3
    The minicom maintainer asked me to post this comment (as he does not have enough reputation to do so): The feature of setting a linewrapping value in the config file has only been added after version 2.6.1. So unfortunately this seems to be the expected behavior for this version. – BjoernD Feb 21 '15 at 19:20
0

"minicom -s" allows you to configure the Line Wrap option

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.