Commit 648b2ba7 authored by Victor Ananjevsky's avatar Victor Ananjevsky

add --auto-scroll

parent c0e26db7
...@@ -778,7 +778,7 @@ Set precision of floating point numbers. By default precision is three digits af ...@@ -778,7 +778,7 @@ Set precision of floating point numbers. By default precision is three digits af
.B \-\-add-on-top .B \-\-add-on-top
Add new records at the top of the list. Add new records at the top of the list.
.TP .TP
.B \-\-tail .B \-\-tail | \-\-auto-scroll
Autoscroll to the end of the list when a new row will be added. Autoscroll to the end of the list when a new row will be added.
.TP .TP
.B \-\-iec-format .B \-\-iec-format
...@@ -977,7 +977,7 @@ Default is \fIleft\fP. ...@@ -977,7 +977,7 @@ Default is \fIleft\fP.
.B \-\-margins=\fINUMBER\fP .B \-\-margins=\fINUMBER\fP
Set text margins to \fINUMBER\fP. Set text margins to \fINUMBER\fP.
.TP .TP
.B \-\-tail .B \-\-tail | \-\-auto-scroll
Autoscroll to end when new text appears. This option works only when text is read from stdin. Autoscroll to end when new text appears. This option works only when text is read from stdin.
.TP .TP
.B \-\-line=\fINUMBER\fP .B \-\-line=\fINUMBER\fP
......
...@@ -202,6 +202,8 @@ static GOptionEntry common_options[] = { ...@@ -202,6 +202,8 @@ static GOptionEntry common_options[] = {
N_("Allow changes to text in some cases"), NULL }, N_("Allow changes to text in some cases"), NULL },
{ "tail", 0, 0, G_OPTION_ARG_NONE, &options.common_data.tail, { "tail", 0, 0, G_OPTION_ARG_NONE, &options.common_data.tail,
N_("Autoscroll to end of text"), NULL }, N_("Autoscroll to end of text"), NULL },
{ "auto-scroll", 0, 0, G_OPTION_ARG_NONE, &options.common_data.tail,
N_("Autoscroll to end of text (alias to tail)"), NULL },
{ "quoted-output", 0, 0, G_OPTION_ARG_NONE, &options.common_data.quoted_output, { "quoted-output", 0, 0, G_OPTION_ARG_NONE, &options.common_data.quoted_output,
N_("Quote dialogs output"), NULL }, N_("Quote dialogs output"), NULL },
{ "num-output", 0, 0, G_OPTION_ARG_NONE, &options.common_data.num_output, { "num-output", 0, 0, G_OPTION_ARG_NONE, &options.common_data.num_output,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment