summaryrefslogtreecommitdiffstats
path: root/usr.bin/cu (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-3/+3
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* Fix an invalid escape sequence.daniel2014-09-211-3/+3
| | | | ok nicm@
* -l should override HOST, pointed out by claudio@nicm2014-04-121-4/+5
|
* If HOST or the host argument starts with a /, treat it as a device namenicm2014-03-311-6/+10
| | | | (so, for example, "cu /dev/cuaU0" will work).
* Fix REMOTE to work like tip(1) - it can be either a path to a remote(5)nicm2014-03-312-17/+31
| | | | | | | database or a description (for example "foo:dv=/dev/bar"). Add support for HOST which works as I thought REMOTE did. Manpage help from jmc@.
* Add support for retrieving the line and speed from the /etc/remote dvnicm2014-03-262-22/+100
| | | | | | | | | and br capabilities like tip(1). No other capabilities are supported. Also handle REMOTE in the environment as either a separate remote(5) file or a host. Discussed with and approval from several, man page help from schwarze@.
* unsigned char casts with ctype macros are pretty obvious when dealingderaadt2013-11-201-2/+2
| | | | | with argv or optarg ok ratchov
* simpler prototype repairsderaadt2013-11-122-2/+9
|
* Add support for XMODEM-CRC and fix transfer initiation. Successfullynaddy2013-07-201-7/+47
| | | | | tested in CRC and checksum modes against a Soekris net6501. tweaks and ok nicm@
* simplify tilde expand as seen in ssh. ok nicmtedu2013-04-241-13/+14
|
* Simplify text about -l and use cua not tty in examples.nicm2013-03-111-19/+7
|
* Add new cu to the build and disable tip. Also bump "first appeared in"nicm2013-03-091-3/+3
| | | | | | | | | to .Ox 5.4 in cu.1. New cu is a libevent-based implementation of the useful features of the old tip/cu, plus a few new things like basic xmodem support. ok deraadt
* Fix a couple of spacing/style nits.nicm2013-01-172-5/+5
|
* Instead of creating line termios from scratch, call tcgetattr() andnicm2013-01-171-7/+10
| | | | adjust it (per POSIX), reported by kettenis.
* Plug fp leak, from rustyBSD at gmx dot fr.nicm2012-11-211-2/+2
|
* Add a command (~D) to drop the DTR line for a second (similar to usingnicm2012-07-152-3/+11
| | | | | ~# for a BREAK). This is useful as it makes some microcontroller boards reset. From Visa Hankala.
* kill unused variablehalex2012-07-131-3/+3
| | | | | | ok dlg@ nicm@ while at it, kill one more and add #include <ctype.h> per nicm's request
* make the compat for -XXX to -s XXX simpler. sometimes you dont need to usedlg2012-07-131-21/+8
| | | | | | goto. ok nicm@
* Set CLOCAL in remove c_cflag or line noise is likely to make cu exit asnicm2012-07-121-2/+2
| | | | discovered by naddy.
* Add handler for SIGHUP.nicm2012-07-121-1/+4
|
* Describe ~X as "send" not "transfer" to be clearer.nicm2012-07-121-3/+3
|
* Make ~~ send a ~, pointed out by naddy.nicm2012-07-111-1/+4
|
* Separate total block counter (reported to user) from 8-bit block counternicm2012-07-111-3/+5
| | | | put into the header, pointed out by naddy.
* Fix usage.nicm2012-07-101-2/+3
|
* Add ~R command to start recording output to a file.nicm2012-07-104-4/+35
|
* Use function to restore termios and add ~X to help.nicm2012-07-102-6/+5
|
* Trim some unused externs.nicm2012-07-101-3/+1
|
* Add builtin XMODEM send support with ~X, only tested with lrz -X so far.nicm2012-07-105-5/+205
|
* +limits.h.nicm2012-07-101-1/+2
|
* Once we've set up termios, lines need to be \r\n terminated, and we neednicm2012-07-106-28/+117
| | | | | to reset termios before exiting. So add custom versions of err(), errx(), warn(), warnx() to handle this.
* closefrom(STDERR_FILENO + 1) not STDOUT_FILENO so that output actually appears ;-).nicm2012-07-101-3/+3
|
* Implement ~C.nicm2012-07-102-2/+65
|
* Restore termios and signal handlers before ~$ so ^C will kill child.nicm2012-07-102-2/+16
|
* Add a ~S escape to change the speed interactively (not using ~s sincenicm2012-07-104-17/+55
| | | | may want to use it for variables later).
* Add first cut of replacement for tip/cu. Not linked to the build.nicm2012-07-106-0/+747
Currently supports only -l and -s (no parity), no variables and ~., ~>, ~$, ~#, ~^Z, ~?. More to come. Tested by naddy, otto. ok miod deraadt