|
24 | 24 | </refsynopsisdiv>
|
25 | 25 | <refsect1> <title>DESCRIPTION</title>
|
26 | 26 |
|
27 |
| - <para>This manual page documents briefly the |
28 |
| - <command>lxterminal</command> command.</para> |
| 27 | + <para>This manual page documents the <command>lxterminal</command> command.</para> |
29 | 28 |
|
30 | 29 | <para><command>lxterminal</command> is a program that provides a terminal
|
31 | 30 | emulator
|
|
42 | 41 | </para>
|
43 | 42 |
|
44 | 43 | <variablelist> <varlistentry> <term> <option>-e <replaceable>STRING</replaceable></option>
|
45 |
| - <option>--command=<replaceable>STRING</replaceable></option> |
46 | 44 | <option>--command <replaceable>STRING</replaceable></option>
|
| 45 | + <option>--command=<replaceable>STRING</replaceable></option> |
47 | 46 |
|
48 | 47 | </term>
|
49 |
| - <listitem> <para>This option specifies the program (and its command line arguments) to be run in the terminal. |
50 |
| -Except in the <option>--command=</option> form, this must be the last option on the command line.</para> |
| 48 | + <listitem> <para>These options specifies the program (and its command line arguments) to be run in the terminal. Except in the <option>--command=</option> form, this must be the last option on the command line, since the following arguments, if there are any, will be considered related to the program to be run. Multiple <option>command=</option> options, each specify a single program (and its command line arguments), create multiple tabs, each running the respective program. New tabs will be created as necessary, after all the explictly requested <option>tabs=</option> will be exhausted.</para> |
51 | 49 | </listitem>
|
52 | 50 | </varlistentry>
|
53 | 51 | <varlistentry> <term> <option>--geometry=<replaceable>CHARACTERS</replaceable>x<replaceable>LINES</replaceable></option>
|
54 | 52 | </term>
|
55 | 53 | <listitem> <para>Set the terminal's size in characters and lines.</para>
|
56 | 54 | </listitem>
|
57 | 55 | </varlistentry>
|
| 56 | + <varlistentry> <term> <option>-h</option> |
| 57 | + <option>--help</option> |
| 58 | + </term> |
| 59 | + <listitem> <para>Prints a short help message, and exit.</para> |
| 60 | + </listitem> |
| 61 | + </varlistentry> |
58 | 62 | <varlistentry> <term> <option>-l</option>
|
59 | 63 | <option>--loginshell</option>
|
60 | 64 | </term>
|
61 | 65 | <listitem> <para>Executes login shell.</para>
|
62 | 66 | </listitem>
|
63 | 67 | </varlistentry>
|
64 |
| - <varlistentry> <term> <option>-t <replaceable>NAME[,NAME[,NAME[...]]]</replaceable></option> |
65 |
| - <option>--title=<replaceable>NAME[,NAME[,NAME[...]]]</replaceable></option> |
66 |
| - <option>--tabs=<replaceable>NAME[,NAME[,NAME[...]]]</replaceable></option> |
| 68 | + <varlistentry> <term> <option>-T <replaceable>NAME</replaceable></option> |
| 69 | + <option>-t <replaceable>NAME</replaceable></option> |
| 70 | + <option>--title=<replaceable>NAME</replaceable></option> |
| 71 | + <option>--tabs=<replaceable>[NAME[,NAME[...]]]</replaceable></option> |
67 | 72 | </term>
|
68 |
| - <listitem> <para>Set the terminal's title. Use comma for multiple tabs.</para> |
| 73 | + <listitem> <para>Set the terminal's title. Comma separated multiple titles create multiple tabs only with the <option>--tabs=</option> form.</para> |
69 | 74 | </listitem>
|
70 | 75 | </varlistentry>
|
71 | 76 | <varlistentry> <term> <option>--working-directory=<replaceable>DIRECTORY</replaceable></option>
|
72 | 77 | </term>
|
73 | 78 | <listitem> <para>Set the terminal's working directory.</para>
|
74 | 79 | </listitem>
|
75 | 80 | </varlistentry>
|
| 81 | + <varlistentry> <term> <option>-v</option> |
| 82 | + <option>--version</option> |
| 83 | + </term> |
| 84 | + <listitem> <para>Prints the program version, and exit.</para> |
| 85 | + </listitem> |
| 86 | + </varlistentry> |
| 87 | + </variablelist> |
| 88 | + </refsect1> |
| 89 | + |
| 90 | + <refsect1> <title>EXAMPLES, AND MORE DETAILS</title> |
| 91 | + |
| 92 | + <variablelist> <varlistentry> <term> <option>The hidden tab</option> |
| 93 | + </term> |
| 94 | + <listitem> <para>A hidden tab is created when <option>--tabs</option>, or any <option>--command</option> variant, is requested, with no more than one command, or no more than one tab, is specified. For example,</para> |
| 95 | + <para><command>lxterminal</command> --tabs= --no-remote</para> |
| 96 | + <para>This hidden tab can be revealed when the <command>lxterminal</command> is running. For example, when requesting a new tab with the Shift+Ctrl+T combination keys.</para> |
| 97 | + </listitem> |
| 98 | + </varlistentry> |
| 99 | + <varlistentry> <term> <option>The command examples</option> </term><listitem> |
| 100 | +<para>For display puposes, the command examples might be broken into more than one line. When actually using the examples, commands should be entered in a single line. Or have line breaks according to the usual shell conventions.</para> |
| 101 | + <para>All command examples here use <option>--no-remote</option> to avoid interaction with possibly running <command>lxterminal</command>s.</para> |
| 102 | + </listitem> |
| 103 | + </varlistentry> |
| 104 | + <varlistentry> <term> <option>A short lived process is requested in the command line</option> </term> |
| 105 | + <listitem> <para>Consider</para> |
| 106 | + <para><command>lxterminal</command> --no-remote --command='/bin/bash -c "echo This window will be closed after you will press enter. ; read -p \"Do press the <enter> key.\" " '</para> |
| 107 | + <para>This example emphasizes a limitaion of running commands from the <command>lxterminal</command> command line. As a result, the feature to run a command from the <command>lxterminal</command> command line is much more useful for processes that exit by the user explicit request. Such as an interactive shell. A short lived process does work. Only that it is fast enough to make the window, or the tab, closed before the user can pay attention. For a short lived process, such as</para> |
| 108 | + <para><command>lxterminal</command> --no-remote --tabs=ls,"Midnight Commander" --command=ls --command=mc</para><para> |
| 109 | + , the user must have indirect means to inspect the outcome of the <option>ls</option> command, if he wishes to. Such as redirecting the output to a file.</para> |
| 110 | + </listitem> |
| 111 | + </varlistentry> |
| 112 | + <varlistentry> <term> <option>Multiple occurences of the same option</option> </term> |
| 113 | + <listitem> |
| 114 | + <para><command>lxterminal</command> --no-remote --tabs='1st tab',"2nd tab" --tabs= --no-remote</para> |
| 115 | + <para>In contrast to many other applications, repeating a command line <option>option</option> is not an error. With some <option>option</option>s, the right most occurence overrides previous ocuurences. But there are exceptions. The left most <option>--command=</option> will always be executed in the 1st tab. Unless <option>-e</option>, or <option>command</option>, was specified. As stated earlier, multiple <option>command=</option> are commulative in the sense that each will be executed. Just try out if it is a concern for you. The behaviour is deterministic.</para> |
| 116 | + </listitem> |
| 117 | + </varlistentry> |
| 118 | + <varlistentry> <term> <option>Comma is a separator for --tabs=</option> </term> |
| 119 | + <listitem> |
| 120 | + <para>The comma character, ',', is used as the separator for the titles to the <option>--tabs=</option> option.</para> |
| 121 | + <para><command>lxterminal</command> --tabs="midnight commander,2nd tab" --command=mc --no-remote</para> |
| 122 | + <para>There is no way to insert a comma character in the titles to be displayed by <option>--tabs=</option>. The comma character can be used for the similar options for giving a title, such as <option>-T</option>. But these other options do not offer mutltiple tabs.</para> |
| 123 | + </listitem> |
| 124 | + </varlistentry> |
76 | 125 | </variablelist>
|
77 | 126 | </refsect1>
|
78 | 127 |
|
|
0 commit comments