Skip to content

Commit ec09e91

Browse files
committed
Changed version to 3.0, rebuilt docs
1 parent 50b8e69 commit ec09e91

File tree

4 files changed

+45
-9
lines changed

4 files changed

+45
-9
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
VERSION = 3.0a
2+
VERSION = 3.0
33

44
#CC ?= gcc
55
CPPFLAGS += -DVERSION_STR=\"$(VERSION)\"

picocom.1

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.\" Automatically generated by Pandoc 1.16.0.2
22
.\"
33
.ad l
4-
.TH "PICOCOM" "1" "2017-12-23" "Picocom 3.0a" "User Commands"
4+
.TH "PICOCOM" "1" "2017-12-25" "Picocom 3.0" "User Commands"
55
.nh \" Turn off hyphenation by default.
66
.SH NAME
77
.PP
@@ -189,7 +189,7 @@ Example: The following sends the characters "ABCD" to the port.
189189
\f[C]
190190
C\-a\ C\-w
191191
***\ hex:\ 41\ 4243:44
192-
***\ wrote\ 4\ byes\ ***
192+
***\ wrote\ 4\ bytes\ ***
193193
\f[]
194194
.fi
195195
.RE
@@ -328,9 +328,10 @@ See also the \f[B]\-\-hangup\f[] option.
328328
(Default: Disabled)
329329
.RS
330330
.PP
331-
NOTICE: Picocom will always set the HUPCL control bit of the serial
332-
port, according to the \f[B]\-\-noreset\f[] and \f[B]\-\-hangup\f[]
333-
options.
331+
NOTICE: Picocom clears the modem control lines on exit by setting the
332+
\f[I]HUPCL\f[] control bit of the respective port.
333+
Picocom always sets HUPCL according to the \f[B]\-\-noreset\f[] and
334+
\f[B]\-\-hangup\f[] options.
334335
If \f[B]\-\-noreset\f[] is given and \f[B]\-\-hangup\f[] is not, then
335336
HUPCL for the port is cleared and will remain so after exiting picocom.
336337
If \f[B]\-\-noreset\f[] is \f[I]not\f[] given, or if both
@@ -672,6 +673,32 @@ comma\-separated list of one or more of the following identifiers:
672673
\f[B]bsdel\f[] (map BS to DEL),
673674
.IP \[bu] 2
674675
\f[B]delbs\f[] (map DEL to BS)
676+
.IP \[bu] 2
677+
\f[B]spchex\f[] (map special chars (< 0x20 || 0x7f), excl.
678+
CR, LF, and TAB to hex)
679+
.IP \[bu] 2
680+
\f[B]tabhex\f[] (map TAB to hex)
681+
.IP \[bu] 2
682+
\f[B]crhex\f[] (map CR to hex)
683+
.IP \[bu] 2
684+
\f[B]lfhex\f[] (map LF to hex)
685+
.IP \[bu] 2
686+
\f[B]8bithex\f[] (map chars with 8th\-bit set to hex)
687+
.IP \[bu] 2
688+
\f[B]nrmhex\f[] (map normal ascii chars (0x20 <= c < 0x7f) to hex)
689+
.PP
690+
The "to hex" mappings (\f[B]???hex\f[]) replace the respective
691+
characters with their hexadecimal representation (in square brackets),
692+
like this:
693+
.IP
694+
.nf
695+
\f[C]
696+
CR\ \-\->\ [0d]
697+
\f[]
698+
.fi
699+
.PP
700+
If more than one mappings are provided that apply to the same character,
701+
then only the first mapping, in the order listed above, is applied.
675702
.PP
676703
For example the command:
677704
.IP

picocom.1.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</head>
1212
<body>
1313
<div id="header">
14-
<h1 class="title"><div id="pgname">PICOCOM(1)</div><div id="version">v3.0a / 2017-12-23</div></h1>
14+
<h1 class="title"><div id="pgname">PICOCOM(1)</div><div id="version">v3.0 / 2017-12-25</div></h1>
1515
</div>
1616
<h1 id="name">NAME</h1>
1717
<p>picocom - minimal dumb-terminal emulation program</p>
@@ -73,7 +73,7 @@ <h1 id="commands">COMMANDS</h1>
7373
<dd><p>Write hex. Picococm prompts the user for a string of hexadecimal values. Values can be entered with or without delimeters (separators). The hexadecimal values are translated to binary and sent to the port, exactly as if input at the terminal (i.e. the <strong>--omap</strong>, <strong>--echo</strong> and <strong>--emap</strong> options are observed). Example: The following sends the characters &quot;ABCD&quot; to the port.</p>
7474
<pre><code>C-a C-w
7575
*** hex: 41 4243:44
76-
*** wrote 4 byes ***</code></pre>
76+
*** wrote 4 bytes ***</code></pre>
7777
</dd>
7878
<dt><strong>C-s</strong></dt>
7979
<dd><p>Send (upload) a file. See <strong><a href="#sending-and-receiving-files">SENDING AND RECEIVING FILES</a></strong> below.</p>
@@ -125,7 +125,7 @@ <h1 id="options">OPTIONS</h1>
125125
</dd>
126126
<dt><strong>--noreset</strong> | <strong>-r</strong></dt>
127127
<dd><p>If given, picocom will not reset the serial port when exiting. It will just close the respective file descriptor and do nothing more. The serial port settings will <em>not</em> be restored to their original values and, unless the <strong>--hangup</strong> option is also given, the modem-control lines will <em>not</em> be affected. This is useful, for example, for leaving modems connected when exiting picocom. Regardless whether the <strong>--noreset</strong> option is given, the user can exit picocom using the &quot;Quit&quot; command (instead of &quot;Exit&quot;), which makes picocom behave <em>exactly</em> as if <strong>--noreset</strong> was given. See also the <strong>--hangup</strong> option. (Default: Disabled)</p>
128-
<p>NOTICE: Picocom will always set the HUPCL control bit of the serial port, according to the <strong>--noreset</strong> and <strong>--hangup</strong> options. If <strong>--noreset</strong> is given and <strong>--hangup</strong> is not, then HUPCL for the port is cleared and will remain so after exiting picocom. If <strong>--noreset</strong> is <em>not</em> given, or if both <strong>--noreset</strong> and <strong>--hangup</strong> are given, then HUPCL is set for the port and will remain so after exiting picocom. This is true, regardless of the way picocom terminates (command, read zero-bytes from standard input, killed by signal, fatal error, etc), and regardless of the <strong>--noinit</strong> option.</p>
128+
<p>NOTICE: Picocom clears the modem control lines on exit by setting the <em>HUPCL</em> control bit of the respective port. Picocom always sets HUPCL according to the <strong>--noreset</strong> and <strong>--hangup</strong> options. If <strong>--noreset</strong> is given and <strong>--hangup</strong> is not, then HUPCL for the port is cleared and will remain so after exiting picocom. If <strong>--noreset</strong> is <em>not</em> given, or if both <strong>--noreset</strong> and <strong>--hangup</strong> are given, then HUPCL is set for the port and will remain so after exiting picocom. This is true, regardless of the way picocom terminates (command, read zero-bytes from standard input, killed by signal, fatal error, etc), and regardless of the <strong>--noinit</strong> option.</p>
129129
</dd>
130130
<dt><strong>--hangup</strong> | <strong>-u</strong></dt>
131131
<dd><p>If given together with <strong>--noreset</strong>, picocom will not reset the serial port to it's original settings on exit, but it <em>will</em> clear the modem control lines (typically DTR and RTS) to signal a modem hangup. Without the <strong>--noreset</strong> option (explicitly given, or implied by extiting with the &quot;Quit&quot; command) <strong>--hangup</strong> has no effect (without <strong>--noreset</strong> picocom always clears the modem control lines on exit, anyway).</p>
@@ -210,7 +210,16 @@ <h1 id="input-output-and-echo-mapping">INPUT, OUTPUT, AND ECHO MAPPING</h1>
210210
<li><strong>ignlf</strong> (ignore LF),</li>
211211
<li><strong>bsdel</strong> (map BS to DEL),</li>
212212
<li><strong>delbs</strong> (map DEL to BS)</li>
213+
<li><strong>spchex</strong> (map special chars (&lt; 0x20 || 0x7f), excl. CR, LF, and TAB to hex)</li>
214+
<li><strong>tabhex</strong> (map TAB to hex)</li>
215+
<li><strong>crhex</strong> (map CR to hex)</li>
216+
<li><strong>lfhex</strong> (map LF to hex)</li>
217+
<li><strong>8bithex</strong> (map chars with 8th-bit set to hex)</li>
218+
<li><strong>nrmhex</strong> (map normal ascii chars (0x20 &lt;= c &lt; 0x7f) to hex)</li>
213219
</ul>
220+
<p>The &quot;to hex&quot; mappings (<strong>???hex</strong>) replace the respective characters with their hexadecimal representation (in square brackets), like this:</p>
221+
<pre><code>CR --&gt; [0d]</code></pre>
222+
<p>If more than one mappings are provided that apply to the same character, then only the first mapping, in the order listed above, is applied.</p>
214223
<p>For example the command:</p>
215224
<pre><code>picocom --omap crlf,delbs --imap ignlf,bsdel --emap crcrlf ...</code></pre>
216225
<p>will:</p>

picocom.1.pdf

1.11 KB
Binary file not shown.

0 commit comments

Comments
 (0)