-F (default) h/w flow control
	-f        no h/w flow control
	-q           be quiet during downloads
This commit is contained in:
briggs 2001-10-26 14:44:13 +00:00
parent 208c3d16df
commit 1abee6c6fd
2 changed files with 32 additions and 4 deletions

View File

@ -1,4 +1,4 @@
.\" $Id: cu.1,v 1.5 2001/04/06 14:06:02 wiz Exp $
.\" $Id: cu.1,v 1.6 2001/10/26 14:44:13 briggs Exp $
.TH cu 1 "Taylor UUCP 1.06"
.SH NAME
cu \- Call up another system
@ -215,6 +215,12 @@ The following options may be given to
.B \-e, \-\-parity=even
Use even parity.
.TP 5
.B \-f, \-F
Use hardware flow control
.B (\-F, default)
or not
.B (-f).
.TP 5
.B \-o, \-\-parity=odd
Use odd parity.
.TP 5
@ -250,6 +256,11 @@ Name the port to use.
Equivalent to
.B \-\-port port.
.TP 5
.B \-q
Be quiet during file transfers.
.I cu
is normally quite verbose.
.TP 5
.B \-l line, \-\-line line
Name the line to use by giving a device name. This may be used to
dial out on ports that are not listed in the UUCP configuration files.

View File

@ -26,7 +26,7 @@
#include "uucp.h"
#if USE_RCS_ID
const char cu_rcsid[] = "$Id: cu.c,v 1.6 2000/03/23 19:05:40 mycroft Exp $";
const char cu_rcsid[] = "$Id: cu.c,v 1.7 2001/10/26 14:44:13 briggs Exp $";
#endif
#include "cu.h"
@ -258,6 +258,8 @@ main (argc, argv)
enum txonxoffsetting txonxoff = XONXOFF_ON;
/* -I: configuration file name. */
const char *zconfig = NULL;
/* -F/-f: Hard/Soft flow control. */
boolean hflow = TRUE;
int iopt;
pointer puuconf;
int iuuconf;
@ -295,7 +297,7 @@ main (argc, argv)
}
}
while ((iopt = getopt_long (argc, argv, "a:c:deE:hnI:l:op:s:tvx:z:",
while ((iopt = getopt_long (argc, argv, "a:c:deE:fFhnI:l:op:qs:tvx:z:",
asCulongopts, (int *) NULL)) != EOF)
{
switch (iopt)
@ -322,6 +324,16 @@ main (argc, argv)
zCuvar_escape = optarg;
break;
case 'f':
/* No h/w flow control. */
hflow = FALSE;
break;
case 'F':
/* Use h/w flow control. */
hflow = TRUE;
break;
case 'h':
/* Local echo. */
fCulocalecho = TRUE;
@ -348,6 +360,11 @@ main (argc, argv)
zport = optarg;
break;
case 'q':
/* Verbose file transfers */
fCuvar_verbose = FALSE;
break;
case 's':
/* Speed. */
ibaud = strtol (optarg, (char **) NULL, 10);
@ -599,7 +616,7 @@ main (argc, argv)
sport.uuconf_u.uuconf_sdirect.uuconf_zdevice = NULL;
sport.uuconf_u.uuconf_sdirect.uuconf_ibaud = ibaud;
sport.uuconf_u.uuconf_sdirect.uuconf_fcarrier = FALSE;
sport.uuconf_u.uuconf_sdirect.uuconf_fhardflow = TRUE;
sport.uuconf_u.uuconf_sdirect.uuconf_fhardflow = hflow;
if (! fconn_init (&sport, &sconn, UUCONF_PORTTYPE_UNKNOWN))
ucuabort ();