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

48 Commits

Author SHA1 Message Date
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
ed451a1d3a Bumped version to 3.2a. Rebuilt docs 2018-02-01 11:38:30 +02:00
90385aabe2 Changed version to 3.1, rebuilt docs 2018-02-01 11:20:02 +02:00
8ca2e5a10f Better build support for custom baudrates
For some systems (OSes, versions, architectures) custom-baudrate
support is enabled by default.

For others, support may work, but must be enabled by defining
USE_CUSTOM_BAUD in the Makefile

You can also disable custom baudrate support altogether (even for
systems where it's enabled by default), by defining NO_CUSTOM_BAUD in
the Makefile
2018-01-16 03:46:09 +02:00
6ebb8c56fc #84: custom baudrate support for OpenBsd, and Dragonfly (but not NetBsd) 2018-01-15 23:30:30 +01:00
b78410aa04 #77: added custom baudrate support for FreeBSD 2017-12-31 07:32:23 +01: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 2017-12-25 21:23:07 +02:00
a35a9cb1b7 Updated manual and regenerated docs 2017-12-21 15:36:07 +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
9c21667903 Comments 2017-12-16 20:05:47 +02:00
8110b68477 Set the max tty output queue size to 0 (unlimited) 2017-12-16 17:40:38 +02:00
4d507bb407 Merge pull request #62 from JoeMerten/osx-custom-baudrate
OSX custom baudrates: fixed and refactored
2017-12-12 21:21:34 +02:00
fef9ede422 Makefile: use environment set variables
Allow extending the toolchain related variables from the environment. This is
particularly useful when cross compiling, since it allows adding target
specific parameters.

Leave LD alone since it is used to link the final picocom binary. The default
ld linker can't do that without explicitly specifying the C library.
2017-05-30 10:37:04 +03:00
a502f76e5d OSX custom baudrates: fixed and refactored 2016-12-16 16:04:20 +01:00
196d36aa05 Comments 2016-12-15 16:58:24 +02:00
67eaf5400d Small makefile simplification reg. custom baud rate support 2016-12-15 15:47:08 +01:00
ca48cdc2d5 simplified Makefile regarding USE_CUSTOM_BAUD switch 2016-12-07 00:28:00 +01:00
4ef3280e6a added custom baudrate support for OSX 2016-12-06 21:59:59 +01:00
78a1332e33 Bumped version to 2.3a. Rebuilt docs. 2016-10-04 20:17:26 +03:00
052b216326 Bumped version to 2.2, rebuilt docs. 2016-10-04 19:51:29 +03:00
1b8a9e42af Bumped version number to 2.2a 2015-10-16 00:38:50 +03:00
14288582f1 Changed version number to 2.1 2015-10-16 00:25:02 +03:00
bc9ab1fdf5 Removed unnecessary gnu-make-isms from Makefile.
Now picocom can be compiled using either GNU- or BSD-make
2015-08-27 16:30:56 +03:00
02c92807cb Incremented version number to 2.1a 2015-08-26 10:09:54 +03:00
c638cbed80 Changed version number to 2.0 2015-08-25 20:53:25 +03:00
4f409a28e8 Increased TTY_Q_SY to 32KB 2015-08-25 15:08:08 +03:00
b443e39e43 Converted mapage source to pandoc's MarkDown and moved it to section 1.
- Much metter groff and html formating. Much easier to write and edit.
- Page had no reason to be in section 8.
2015-08-22 14:46:24 +03:00
0f09071f69 Disabled USE_CUSTOM_BAUD support in (default) Makefile. 2015-08-20 17:22:42 +03:00
fd306077d6 Added support for setting custom baud rates.
If the requested baudrate is not a custom one (i.e. does not match one
of the Bxxx macros), then the cfsetospeed_custom() and
cfsetispeed_custom() are called to configure the "nexttermios" structure
with the requested non-standard baudrate. Same thing for reading the
baudrate: If cfgetospeed() and / or cfgetispeed() return a value that is
not among the Bxxx macros, cfgetospeed_custom() and cfgetispeed_custom()
are called, to read (and decode) the non-standard baudrate from the
"nexttermios" structure.

Currently the cf[set|get][i|o]speed_custom functions are only
implemented for Linux, and work only with non-ancient kernels (>2.6). So
in effect, custom baud-rate support is currently only supported for
Linux.
2015-08-20 12:40:28 +03:00
b6208b561b Renamed "send_receive_history" stuff to just "history"
By default the history file is now named ".picocom_history".
2015-08-19 01:11:16 +03:00
7d7edf657f Moved "generic" fd I/O functions from picocom.c to fdio.[ch] 2015-08-18 22:07:56 +03:00
62213f8e06 Added NO_HELP compile-time option
Enabling NO_HELP removes help-strings from picocom. This makes picocom
harder to use, and saves approximatelly 4-5Kb.
2015-08-18 20:58:37 +03:00
4dcf559f15 Remove split.o at make clean. 2015-08-18 20:42:50 +03:00
1ebc60b20f Do not use "/bin/sh" to run external commands.
Picocom no longer uses /bin/sh to run external commands for
file-transfer operations. Parsing the command line and spliting it into
arguments is now performed internally by picocom, using quoting rules
very similar to those of the Unix shell. Hopefully, this makes it
impossible to inject shell-commands when supplying filenames or
extra arguments to the send- and receive-file commands.
2015-08-18 14:40:48 +03:00
bc690d8cc2 Incremented version number to 2.0a 2015-08-16 22:27:40 +03:00
48a103d692 Bumped version number to 1.9a 2015-08-08 18:40:58 +03:00
110c15ea3c Added support for locking using flock(2) (now default)
Fixes #26
Old-style UUCP-lockdir code is maintained.
Preferred locking style is selected via the Makefile
2015-08-07 08:21:09 +03:00
208bb118e6 Input-buffer size (TTY_Q_SZ) now defined in Makefile
Fixes #20
2015-08-07 04:52:46 +03:00
6b824ee71a - Added support for the linenoise library, which allows line-editing
and path completion when entering filenames for receive- and send-
  file operations. Support can be compiled-out if you wish. See Makefile.

- When entering a filename for receive- or send- file operations, 
  pressing C-c cancels the operation. 
  This works regardless of whether linenoise support (see above) has
  been compiled in or not

- Use debian's xmltoman to convert manual page form xml to man.
2015-08-06 20:07:40 +00:00
ae6c5dd9cb Incremented version number to 1.8 2012-02-21 13:45:15 +00:00
a1fd794fe4 Factor-out UUCP_LOCK_DIR in Makefile for easier overriding by builder 2012-02-21 05:42:24 +00:00
02eb9aa22e Incremented version to 1.7 2010-06-12 20:41:01 +00:00
347eee63ef Incremented version to 1.6 2010-05-28 22:39:52 +00:00
8a48fc24aa Enabled support for higher baudrates up to 921600. Support is
compiled-in conditionally on the HIGH_BAUD macro.

Thanks to Pavel Vymetalek
2010-05-28 01:12:12 +00:00
b208d8df0f Incremented version number to 1.5 2010-05-28 00:42:57 +00:00
464e25056f Imported 1.4 source 2010-05-28 00:17:52 +00:00