.B \-\-curses\c
]
[\c
+.BI \--displaymode \ MODE\c
+]
+[\c
.B \-\-raw\c
]
[\c
to use the curses based terminal
interface (if available).
.TP
+.B -\-displaymode \fIMODE
+Use this option to select the initial display mode: 0 (default)
+selects statistics, 1 selects the stripchart without latency
+information, and 2 selects the stripchart with latency
+information.
+.TP
.B \-g\fR, \fB\-\-gtk
Use this option to force
.B mtr
{ "gtk", 0, 0, 'g' },
{ "raw", 0, 0, 'l' },
{ "csv", 0, 0, 'C' },
+ { "displaymode", 1, 0, 'd' },
{ "split", 0, 0, 'p' }, /* BL */
/* maybe above should change to -d 'x' */
DisplayMode = DisplayXML;
break;
+ case 'd':
+ display_mode = (atoi (optarg)) % 3;
+ break;
case 'c':
MaxPing = atoi (optarg);
ForceMaxPing = 1;
srand (getpid());
display_detect(&argc, &argv);
+ display_mode = 0;
/* The field options are now in a static array all together,
but that requires a run-time initialization. */
if (PrintHelp) {
printf("usage: %s [--help] [--version] [-4|-6] [-F FILENAME]\n"
- "\t\t[--report] [--report-wide]\n"
+ "\t\t[--report] [--report-wide] [--displaymode MODE]\n"
"\t\t[--xml] [--gtk] [--curses] [--raw] [--csv] [--split]\n"
"\t\t[--no-dns] [--show-ips] [-o FIELDS] [-y IPINFO] [--aslookup]\n"
"\t\t[-i INTERVAL] [-c COUNT] [-s PACKETSIZE] [-B BITPATTERN]\n"
display_open();
dns_open();
- display_mode = 0;
display_loop();
net_end_transit();