1
0
mirror of https://github.com/UzixLS/picocom.git synced 2025-07-18 23:11:18 +03:00

338 Commits

Author SHA1 Message Date
481404e0f9 Add timestamping 2019-09-06 14:15:19 +03:00
1acf1ddaba Compile with libc's without cispeed / cospeed
Some libc implementations (e.g. musl) do not define the cispeed and
cospeed struct termios fields. So we have to check the
_HAVE_STRUCT_TERMIOS_C_ISPEED and _HAVE_STRUCT_TERMIOS_C_OSPEED
macros. If not defined, we disable custom baudrate support.
2018-04-12 15:16:04 +03:00
eb0f53a0c0 Doc updates, rebuilt docs
Mostly typos and some rewording.
2018-04-03 15:07:07 +03:00
b86e131c57 Rewording in README.md 2018-03-03 17:11:49 +02:00
831066d754 Rewording in README.md 2018-03-03 17:09:04 +02:00
07e26cc849 Fixed omission in prev commit (complete mappings) 2018-03-03 16:45:56 +02:00
7a2bd0b58b Fixed bug in mapping-specifiers completion
The completion script tries to remove (not suggest) mappings you have
already specified. This must not happen for the currently under
completion (i.e. last) mapping (if it matches a specifier). Example: If
you try to complete "lfcr" (no blank of comma at the end) then the list
of possible completions must still include "lfcr" along with
"lfcrlf". If not, readline will replace the current word with "lfcrlf",
which is wrong
2018-03-03 16:32:17 +02:00
d58396a5bf Typos / rewording 2018-03-03 09:29:00 +02:00
bf0eb7d746 Set DEBUG variable to /dev/null 2018-03-03 09:21:42 +02:00
12b53d81d7 Minor rewording 2018-03-03 09:21:12 +02:00
2c5711d8c9 Cleanups, some restructuring 2018-03-03 09:08:33 +02:00
7e8d39871c Cleanups 2018-03-03 09:08:33 +02:00
fc44525696 Merged bash_completion/readme.txt in README.md 2018-03-03 09:08:33 +02:00
a6a7c70f1b Comments 2018-03-03 09:08:33 +02:00
4c3657a180 Handle arg values given with = 2018-03-03 09:08:33 +02:00
907bce55d0 split_line separator handling improvement
Do not emit empty word if line ends with separator
2018-03-03 09:08:33 +02:00
573bf6f94f split_line improvs
- better handling of backquotes
- minor cleanups and fixes
2018-03-03 09:08:33 +02:00
ef14678479 Comments, some renames, nimor quoting fix 2018-03-03 09:08:33 +02:00
65588cd2e0 Added custom bash completion script for picocom 2018-03-03 09:08:33 +02:00
007811c337 Minor rewording 2018-02-20 15:26:40 +02:00
3eae4b37c9 Typos 2018-02-20 13:47:02 +02:00
ee23af0cb9 Disable custom baudrate support at runtime (Linux)
If picocom is compiled *with* custom-baudrate support (USE_CUSTOM_BAUD)
for Linux, then it uses a new set of ioctl's (TCGETS2 vs TCGETS, etc) to
access the serial ports. This patch allows the custom baudrate support
to be disabled at runtime (without recompiling), and picocom to switch
to using the old ioctl's.

To disable custom baudrate support (and switch back to the "old" ioctls)
simply define the environment variable NO_CUSTOM_BAUD, before starting
picocom.

This applies only to Linux and, obviously, only when picocom has been
compiled with custom baudrate support (USE_CUSTOM_BAUD).
2018-02-20 10:29:45 +02:00
8814974ac7 More enum type fixes
Try not to use lose enum type information through ints.
2018-02-11 10:04:58 +10:00
a412f6583a Type consistency tweaks
Better type consistency when returning enums flowcntrl_e and
parity_e. See also PR #92.
2018-02-10 10:04:14 +02:00
6d8bf34e9f Silence compiler warnings
- Comparisons between signed and unsigned
- Unused parameter

produced by gcc -Wall -Wextra
2018-02-09 19:00:56 +02:00
399d7f9480 Const correct some pointers 2018-02-09 18:52:08 +02:00
acc4e7ea1a Updated manual, rebuilt docs. 2018-02-08 17:15:39 +02:00
8707801496 Allow multiple non-option argunments, use last
Allow more than one non-option arguments. Use the last one as the port
name, ignore others.

Rationale. Allow easily setting a default port using an alias or
script. The port can then be overriden by a subsequent argument. E.g.

  alias picocom='picocom -b 115200 /dev/ttyS0'

  picocom               <-- call with default port
  picocom /dev/ttyUSB0  <-- override default
2018-02-08 17:01:23 +02:00
9d5cc80c47 Minor command-line args memory leak
Free previous ones if string arguments (log_filename and initstring) are
given multiple times
2018-02-08 15:38:47 +02:00
ed451a1d3a Bumped version to 3.2a. Rebuilt docs 2018-02-01 11:38:30 +02:00
90385aabe2 Changed version to 3.1, rebuilt docs 3.1 2018-02-01 11:20:02 +02:00
b1f5034610 Merge pull request #90 from JoeMerten/osx-custom-baud-enable
Changed when to enable custom baud by default (#84)
2018-01-29 09:46:41 +02:00
07c27c626d Changed __x86__ macro to __i386__ 2018-01-28 17:29:44 +02:00
56e6886768 Enable default custom baud not for old PPC Mac (#84)
This check implies, that custom baud will not be enabled by default for OSX older than 10.4
2018-01-28 16:23:05 +01:00
a799995415 Changed when to enable custom baud by default (#84)
For Apple:
- enable by default for macOS / OSX
- do not enable by default for iOS

Have not found a way to check for OSX version on preprocessor level.
2018-01-25 17:02:18 +01:00
849532b261 Replaced strcpy in init_history()
Mostly to avoid compiler warnings on some systems
2018-01-21 21:16:26 +02:00
e2be81fcf7 Replaced strcpy & strcat in file_completion_cb()
Mostly to silence warnings (against using strcat / strcpy) that some
compilers produce
2018-01-21 17:44:10 +02:00
a2899a676c Rewording 2018-01-20 23:17:10 +02:00
7eac76f27b Minor rewording 2018-01-20 20:29:19 +02:00
8b33ed33d6 Minor rewording 2018-01-20 20:18:31 +02:00
8eab62945d Close tty_fd after resetting and before exiting 2018-01-20 16:45:48 +02:00
2a120ef1df Comments 2018-01-20 16:44:43 +02:00
7bf7b5d491 Explicitly unlock tty_fd when exiting with noreset 2018-01-20 14:36:11 +02:00
dabb708a8c Explicitly unlock tty_fd before exiting
Call flock(fd, LOCK_UN) explicitly for managed file at term_exitfunc().

This should, normally, not be necessary. Normally, exiting the program
should take care of unlocking the file. Unfortuntelly, it has been
observed that, on some systems, exiting or closing an flock(2)'ed tty fd
has peculiar side effects (like not reseting the modem-control lines,
even if HUPCL is set).
2018-01-20 13:19:51 +02:00
007072bd57 Better --lower/raise-dtr/rts handling
Set the levels of DTR and RTS modem-control lines (according to the
--lower/raise-dtr/rts command-line options) *twice*: Once
immediatelly (as quickly as possible) after opening the port (before
actually configuring it), and once after configuring it. On some systems
configuring the port (i.e. calling tcsetattr) has the effect of reseting
the DTR and RTS signals.
2018-01-20 11:38:43 +02:00
36b1dea5b2 Minor rewording / update 2018-01-18 10:31:14 +02:00
7bc133c8f9 Added missing options in help string 2018-01-18 10:30:11 +02:00
0ad57a2142 Comments 2018-01-17 20:44:48 +02:00
58e55a835f Updated email (comments) 2018-01-17 20:38:27 +02:00
d857e917ab Merge branch 'master' of https://github.com/npat-efault/picocom 2018-01-17 19:57:32 +02:00