"-l" command-line option to turn on automatic scrolling in "Update list

of captures in real time" captures, from Christian Lacunza.

svn path=/trunk/; revision=3389
This commit is contained in:
Guy Harris 2001-05-01 00:41:46 +00:00
parent bdb69627b2
commit 025578a1bd
3 changed files with 19 additions and 3 deletions

View File

@ -594,6 +594,11 @@ Riaan Swart <rswart@cs.sun.ac.za> {
Modbus/TCP support
}
Christian Lacunza <celacunza@gmx.net> {
Command-line option to control automatic scrolling in "Update
list of packets in real time" captures
}
Alain Magloire <alainm@rcsm.ece.mcgill.ca> was kind enough to
give his permission to use his version of snprintf.c.

View File

@ -12,6 +12,7 @@ S<[ B<-f> capture filter expression ]>
S<[ B<-h> ]>
S<[ B<-i> interface ]>
S<[ B<-k> ]>
S<[ B<-l> ]>
S<[ B<-m> font ]>
S<[ B<-n> ]>
S<[ B<-o> preference setting ] ...>
@ -108,6 +109,12 @@ choosing the first loopback interface if there are no non-loopback
interfaces; if there are no interfaces, B<Ethereal> reports an error and
doesn't start the capture.
=item -l
Turns on automatic scrolling if the packet display is being updated
automatically as packets arrive during a capture (as specified by the
B<-S> flag).
=item -m
Sets the name of the font used by B<Ethereal> for most text.
@ -1091,6 +1098,7 @@ B<http://www.ethereal.com>.
Patrick Wolfe <pjw@zocalo.cellular.ameritech.com>
Martin Held <Martin.Held@icn.siemens.de>
Riaan Swart <rswart@cs.sun.ac.za>
Christian Lacunza <celacunza@gmx.net>
Alain Magloire <alainm@rcsm.ece.mcgill.ca> was kind enough to give his
permission to use his version of snprintf.c.

View File

@ -1,6 +1,6 @@
/* main.c
*
* $Id: main.c,v 1.197 2001/05/01 00:18:48 guy Exp $
* $Id: main.c,v 1.198 2001/05/01 00:41:46 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -730,7 +730,7 @@ print_usage(void) {
fprintf(stderr, "This is GNU " PACKAGE " " VERSION ", compiled %s\n",
comp_info_str->str);
#ifdef HAVE_LIBPCAP
fprintf(stderr, "%s [ -vh ] [ -kpQS ] [ -B <byte view height> ] [ -c count ]\n",
fprintf(stderr, "%s [ -vh ] [ -klpQS ] [ -B <byte view height> ] [ -c count ]\n",
PACKAGE);
fprintf(stderr, "\t[ -f <capture filter> ] [ -i interface ] [ -m <medium font> ] \n");
fprintf(stderr, "\t[ -n ] [ -o <preference setting> ] ... [ -P <packet list height> ]\n");
@ -983,7 +983,7 @@ main(int argc, char *argv[])
#endif
/* Now get our args */
while ((opt = getopt(argc, argv, "B:c:f:hi:km:no:pP:Qr:R:Ss:t:T:w:W:vZ:")) != EOF) {
while ((opt = getopt(argc, argv, "B:c:f:hi:klm:no:pP:Qr:R:Ss:t:T:w:W:vZ:")) != EOF) {
switch (opt) {
case 'B': /* Byte view pane height */
bv_size = get_positive_int(optarg, "byte view pane height");
@ -1026,6 +1026,9 @@ main(int argc, char *argv[])
arg_error = TRUE;
#endif
break;
case 'l': /* Automatic scrolling in live capture mode */
prefs->capture_auto_scroll = TRUE;
break;
case 'm': /* Fixed-width font for the display */
if (prefs->gui_font_name != NULL)
g_free(prefs->gui_font_name);