1
0
mirror of https://github.com/UzixLS/picocom.git synced 2025-07-19 07:21:18 +03:00
Commit Graph

258 Commits

Author SHA1 Message Date
de631d4c58 FreeBSD: Fixed initial sw-side state of RTS and DTR 2018-01-02 15:58:58 +01:00
cc8d142e2c Fixed #81, FreeBSD rts / dtr control 2018-01-02 15:19:42 +01:00
ddffca71d4 Comments 2018-01-01 23:46:48 +02:00
4f03c1a1a5 Merge pull request #80 from JoeMerten/rts-dtr-initial-state
Fixed #63, initial sw-side state of RTS and DTR
2018-01-01 23:37:09 +02:00
17ad63b823 Merge pull request #79 from JoeMerten/bsd-custom-baudrate
Bsd custom baudrate
2018-01-01 23:35:57 +02:00
bf491c558b Fixed #63, initial sw-side state of RTS and DTR 2017-12-31 17:06:46 +01:00
280e69a967 Updated lowerrts.md 2017-12-31 07:49:02 +01:00
4e9f42f686 Just updated some comments 2017-12-31 07:42:00 +01:00
b78410aa04 #77: added custom baudrate support for FreeBSD 2017-12-31 07:32:23 +01:00
78abf75112 renamed custbaud_osx to custbaud_bsd 2017-12-31 06:52:30 +01:00
521803ae4b Added the missing --quiet option to the help msg 2017-12-28 01:15:38 +02:00
b4a269161f Bumped version to 3.1a and rebuilt docs 2017-12-25 22:07:27 +02:00
ec09e91db9 Changed version to 3.0, rebuilt docs 3.0 2017-12-25 21:23:07 +02:00
50b8e6962c Added "to hex" character mappings.
Closes #75
2017-12-25 21:05:05 +02:00
89fe1ed581 Manual, typos, rewording 2017-12-25 10:48:51 +02:00
9bbb25c5cc Updated manual and regenerated docs 2017-12-23 13:20:42 +02:00
77e684f5ce Added C-w (write hex) command
Pompts the user for a sting of hexadecimal values to be converted to
binary and sent to the port.
2017-12-23 13:19:21 +02:00
1b8a19f10e Cleanup error and info messages
Also moved fd_pinfof to picocom.c and renamed it to pinfo
2017-12-21 15:58:47 +02:00
a35a9cb1b7 Updated manual and regenerated docs 2017-12-21 15:36:07 +02:00
26522309a3 Added the --hangup command-line option
If given together with **--noreset**, picocom will not reset the serial
port to it's original settings on exit, but it *will* clear the modem
control lines (typically DTR and RTS) to signal a modem hangup. Without
the **--noreset** option (explicitly given, or implied by extiting with
the "Quit" command) **--hangup** has no effect (without **--noreset**
picocom always clears the modem control lines on exit, anyway).
2017-12-21 15:21:08 +02:00
637f7b375e Cleanup / refactor fd_printf and similar functions 2017-12-21 12:56:26 +02:00
aa58944f34 Manpage formatting tweaks 2017-12-21 04:16:32 +02:00
8fb2cd409d Bumped version to 3.0a 2017-12-21 01:23:07 +02:00
0ec7213956 Updated manual and regenerated docs 2017-12-20 11:11:14 +02:00
89be292023 Workaround for drivers with broken flush
term_flush() does not work with some drivers. If we try to drain or even
close the port while there are still data in it's output buffers *and*
flow-control is enabled, we may block forever. So we "fake" a flush, by
temporarily setting f/c to none, waiting for any data in the output
buffer to drain, and then reseting f/c to it's original setting.
2017-12-20 09:48:00 +02:00
e6653b45b5 Do not drain the port when exiting by command
If picocom exits due to an "Exit" or "Quit" command, the contents of the
output queue (data read from the terminal but not written to the port)
are, anyway, discarded. Because of this, there is no reason to wait for
the O/S output buffer (data already written to the port but not
transmitted) to drain before exiting. The output port (output buffer) is
instead flushed (data discarded) before exiting due to a command.
2017-12-20 06:42:14 +02:00
82d69071c3 Fix HUPCL handling
Picocom will always set the HUPCL control bit of the serial port,
according to the --noreset option. If --noreset is given, then
HUPCL for the port is cleared, and will remain so after exiting
picocom. If --noreset is *not* 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, etc), and regardless of the --noinit
option. If picocom exits with the "Quit" command, then --noreset is
assumed given. Almost always this is the most DWIM behavior.

Fixes #72
2017-12-20 05:59:55 +02:00
33c2332c18 Set correct term_errno when tcflush fails. 2017-12-20 01:31:08 +02:00
69e16a3a70 Factor-out cleanup code from fatal() and main() 2017-12-19 22:05:42 +02:00
a99d1f8b69 Better example (manual) 2017-12-19 17:31:38 +02:00
cb4e363fe1 Show message "Ignoring init-string..." 2017-12-19 17:30:30 +02:00
977cc7e084 Minor refactoring of KEY_QUIT handling
Now more similar with KEY_EXIT handling
2017-12-19 14:24:53 +02:00
c48f6aa78e Suppress help message if escape char is disabled 2017-12-17 22:43:54 +02:00
d1f439b38d Moved drain delay into term.c 2017-12-17 22:14:08 +02:00
2503f0ecfa Clean up error, signal, and exit handling
- Exit with failure if killed by signal
- Write fatal error messages to standard error
- Minor fixes on signal handling for children processes
2017-12-17 22:12:32 +02:00
ad5ad83983 Typo 2017-12-16 22:30:19 +02:00
9fbf4d1c11 Show initstring length 2017-12-16 22:29:56 +02:00
cea5f644c7 Regenerated documentation 2017-12-16 20:15:54 +02:00
9c21667903 Comments 2017-12-16 20:05:47 +02:00
0eb644a9be Updated CONTRIBUTORS 2017-12-16 19:00:15 +02:00
49041a2ef6 Added the --no-escape command-line option
Disables the escape character so that picocom can never enter command
mode.
2017-12-16 18:11:33 +02:00
8110b68477 Set the max tty output queue size to 0 (unlimited) 2017-12-16 17:40:38 +02:00
12d46e056c Made tty output queue dynamically growable.
Closes #33
2017-12-16 17:36:43 +02:00
b0e694c7c8 Added section EXITING PICOCOM to manual 2017-12-16 14:51:37 +02:00
2ff1431827 Improved termination handling
Drain tty output buffer before exiting.
Exit whith the INT signal.
2017-12-16 14:49:46 +02:00
e9385b0ece Added the --exit command-line option
Exit picocom immediatelly after opening and configuring the serial
port. Do *not* read *anything* from the standard input or from the
serial port. If an init string is also given, picocom exits imediatelly
after sending (writing) the init string to the serial port. Again,
nothing is read from the standard input, or from the serial port. The
ouput map, the local echo option, and the local-echo map are observed
when sending the init string. The **--exit** option, overrides
the **--exit-after** option.
2017-12-16 10:51:34 +02:00
423c93fe5e Documentation edits 2017-12-15 11:16:59 +02:00
5ccc25ad94 Standard input handling
- Allow stdin to be a non-tty (print a warning, though). Some things may
  not work as expected in this case, but most will, and it's useful in
  several occasions.

- If picocom reads zero bytes from stdin, then:

  - If --exit-after is set, then keep operating (without reading from
    stdin) until the idle timeout expires, or we are killed by a signal

  - Otherwise, exit picocm, but only after transmitting the contens of
    the output queue.
2017-12-15 00:13:40 +02:00
a5ea42b616 Minor re-wording 2017-12-14 20:06:36 +02:00
91ee0d4851 Regenerated documentation 2017-12-14 18:47:32 +02:00