~ubuntu-branches/ubuntu/maverick/zapping/maverick

« back to all changes in this revision

Viewing changes to help/C/commands.xml

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-03-08 23:19:08 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050308231908-oip7rfv6lcmo8c0e
Tags: 0.9.2-2ubuntu1
Rebuilt for Python transition (2.3 -> 2.4)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<sect1 id="zapping-commands">
 
2
  <title>Commands</title>
 
3
 
 
4
  <sect2 id="zapping-commands-cli">
 
5
    <title>Command Line</title>
 
6
 
 
7
    <para>Commands can be given on the command line when Zapping starts. This was intended to change video device properties, the program terminates after executing the command.</para>
 
8
    <para><userinput>zapping -c "command"</userinput></para>
 
9
    <para>A separate, lightweight tool is planned for this purpose, and to send commands to a running Zapping process. Up to version 0.6.x these commands are available:</para>
 
10
 
 
11
    <variablelist>
 
12
      <varlistentry>
 
13
        <term>set_channel (name | number)</term>
 
14
        <listitem><para>Switch to the channel. By default the command tries to find the channel by its name (second column in the channel editor). When no such channel exists or the parameter is a number it selects the nth channel from the list, counted from zero up.</para>
 
15
        </listitem>
 
16
      </varlistentry>
 
17
    </variablelist>
 
18
 
 
19
    <para>Starting with version 0.7 these commands are superseded by the new Python command set, see below.</para>
 
20
  </sect2>
 
21
 
 
22
  <sect2 id="zapping-commands-kbd">
 
23
    <title>Keyboard Customization</title>
 
24
 
 
25
    <para>Commands can be assigned to keyboard keys in the preferences. Starting with version 0.7 we use the new Python command set, see below.</para>
 
26
    <para>The old command set listed here is automatically converted for compatibility with older versions of Zapping. The commands are generally equivalent to their new Python counterparts. Parameters in [square brackets] are optional.</para>
 
27
 
 
28
    <itemizedlist>
 
29
      <listitem><para>channel_up</para></listitem>
 
30
      <listitem><para>channel_down</para></listitem>
 
31
      <listitem><para>set_channel nth</para></listitem>
 
32
      <listitem><para>lookup_channel name</para></listitem>
 
33
      <listitem><para>mute [toggle]</para></listitem>
 
34
      <listitem><para>volume_incr [n]</para></listitem>
 
35
      <listitem><para>ttx_open_new [page [subpage]]</para></listitem>
 
36
      <listitem><para>ttx_page_incr [n]</para></listitem>
 
37
      <listitem><para>ttx_subpage_incr [n]</para></listitem>
 
38
      <listitem><para>ttx_home</para></listitem>
 
39
      <listitem><para>ttx_hold [toggle]</para></listitem>
 
40
      <listitem><para>ttx_reveal [toggle]</para></listitem>
 
41
      <listitem><para>screenshot [format]</para></listitem>
 
42
      <listitem><para>quickshot [format]</para></listitem>
 
43
    </itemizedlist>
 
44
  </sect2>
 
45
 
 
46
  <sect2 id="zapping-commands-lirc">
 
47
    <title>LIRC/ALIRC Plugin</title>
 
48
 
 
49
    <para>These commands are mostly superseded by the new Python command set, see below. They are still supported for compatibility with older versions of Zapping.</para>
 
50
 
 
51
    <variablelist>
 
52
      <varlistentry>
 
53
        <term>QUIT</term>
 
54
        <listitem><para>Terminate the program.</para></listitem>
 
55
      </varlistentry>
 
56
      <varlistentry>
 
57
        <term>CHANUP</term>
 
58
        <listitem><para>Switch to the next channel in the list.</para></listitem>
 
59
      </varlistentry>
 
60
      <varlistentry>
 
61
        <term>CHANDOWN</term>
 
62
        <listitem><para>Switch to the previous channel in the list.</para></listitem>
 
63
      </varlistentry>
 
64
      <varlistentry>
 
65
        <term>SETCHANNEL n</term>
 
66
        <listitem><para>The function of this command is affected by
 
67
        the <link linkend="zapping-settings-main">preferences setting</link> for entering channel numbers on the numeric keypad. By the default it switches to the nth channel in the list, the count starts at zero. Alternatively the number is interpreted as the RF channel number of the requested channel.</para>
 
68
          <para>Single digits combine to numbers when the command is executed repeatedly within a short period. For example "SETCHANNEL 1", "SETCHANNEL 3" jumps to channel 13.</para>
 
69
        </listitem>
 
70
      </varlistentry>
 
71
      <varlistentry>
 
72
        <term>ZOOM</term>
 
73
        <listitem><para>Switch between fullscreen and windowed mode.</para></listitem>
 
74
      </varlistentry>
 
75
      <varlistentry>
 
76
        <term>MUTE</term>
 
77
        <listitem><para>When audio is on, mute it, when muted switch it back on.</para></listitem>
 
78
      </varlistentry>
 
79
      <varlistentry>
 
80
        <term>VOL_UP</term>
 
81
        <listitem><para>Increase the audio volume.</para></listitem>
 
82
      </varlistentry>
 
83
      <varlistentry>
 
84
        <term>VOL_UP</term>
 
85
        <listitem><para>Decrease the audio volume.</para></listitem>
 
86
      </varlistentry>
 
87
    </variablelist>
 
88
  </sect2>
 
89
 
 
90
  <sect2 id="zapping-commands-python">
 
91
    <title>Python commands</title>
 
92
 
 
93
    <para>Parameters in [square brackets] are optional. Parameters in 'single quotes' are strings, otherwise they are numbers. A toggle parameter can be zero to switch the property off, non-zero to switch it on, or it can be omitted to invert the current setting.</para>
 
94
 
 
95
    <sect3 id="zapping-commands-python-general">
 
96
      <title>General</title>
 
97
 
 
98
      <variablelist>
 
99
        <varlistentry>
 
100
          <term>zapping.quit()</term>
 
101
          <listitem><para>Terminate the program.</para></listitem>
 
102
        </varlistentry>
 
103
        <varlistentry>
 
104
          <term>zapping.switch_mode('mode')</term>
 
105
          <listitem><para>Switch the current display mode. You can switch display mode and capture mode at once, for example: zapping.switch_mode('fullscreen capture').</para>
 
106
            <variablelist>
 
107
              <varlistentry>
 
108
                <term>'window'</term>
 
109
                <listitem><para>display video or Teletext in a window</para></listitem>
 
110
              </varlistentry>
 
111
              <varlistentry>
 
112
                <term>'fullscreen'</term>
 
113
                <listitem><para>display video or Teletext fullscreen</para></listitem>
 
114
              </varlistentry>
 
115
              <varlistentry>
 
116
                <term>'background'</term>
 
117
                <listitem><para>like fullscreen, but puts the display in the background (if supported by the window manager)</para></listitem>
 
118
              </varlistentry>
 
119
              <varlistentry>
 
120
                <term>'capture'</term>
 
121
                <listitem><para>display video in capture mode (starting with version 0.7.2 this will not switch to window mode)</para></listitem>
 
122
              </varlistentry>
 
123
              <varlistentry>
 
124
                <term>'overlay'</term>
 
125
                <listitem><para>display video in overlay mode</para></listitem>
 
126
              </varlistentry>
 
127
              <varlistentry>
 
128
                <term>'preview'</term>
 
129
                <listitem><para>display video in overlay mode (starting with version 0.7.2 this will not switch to window mode)</para></listitem>
 
130
              </varlistentry>
 
131
              <varlistentry>
 
132
                <term>'teletext'</term>
 
133
                <listitem><para>display Teletext (starting with version 0.7.2 this will not switch to window mode)</para></listitem>
 
134
              </varlistentry>
 
135
            </variablelist>
 
136
          </listitem>
 
137
        </varlistentry>
 
138
        <varlistentry>
 
139
          <term>zapping.toggle_mode('mode')</term>
 
140
          <listitem><para>Switch to this mode. When this is already the current mode, switch to the previous mode. You can switch display and capture mode at once, for example: zapping.switch_mode('fullscreen capture').</para></listitem>
 
141
        </varlistentry>
 
142
        <varlistentry>
 
143
          <term>zapping.restore_mode('mode')</term>
 
144
          <listitem><para>Synonym for zapping.toggle_mode(), deprecated.</para></listitem>
 
145
        </varlistentry>
 
146
        <varlistentry>
 
147
          <term>zapping.channel_up()</term>
 
148
          <listitem><para>Switch to the next channel in the list.</para></listitem>
 
149
        </varlistentry>
 
150
        <varlistentry>
 
151
          <term>zapping.channel_down()</term>
 
152
          <listitem><para>Switch to the previous channel in the list.</para></listitem>
 
153
        </varlistentry>
 
154
        <varlistentry>
 
155
          <term>zapping.set_channel(nth)</term>
 
156
          <listitem><para>Switch to the nth channel in the list, the count starts at zero.</para></listitem>
 
157
        </varlistentry>
 
158
        <varlistentry>
 
159
          <term>zapping.lookup_channel('name')</term>
 
160
          <listitem><para>Switch to the channel with this name (second column in the channel editor).</para></listitem>
 
161
        </varlistentry>
 
162
        <varlistentry>
 
163
          <term>zapping.resize_screen(width, height)</term>
 
164
          <listitem><para>Resize the video window.</para></listitem>
 
165
        </varlistentry>
 
166
        <varlistentry>
 
167
          <term>zapping.picture_size_cycle([n])</term>
 
168
          <listitem><para>Switch to the next entry in the list of favourite picture sizes (as displayed in the context menu), +1 forward, -1 back.</para></listitem>
 
169
        </varlistentry>
 
170
        <varlistentry>
 
171
          <term>zapping.hide_controls(toggle)</term>
 
172
          <listitem><para>Whether to hide the main menu and toolbar.</para></listitem>
 
173
        </varlistentry>
 
174
        <varlistentry>
 
175
          <term>zapping.keep_on_top(toggle)</term>
 
176
          <listitem><para>Whether to keep the main window on top of all other windows (if this is supported by the window manager).</para></listitem>
 
177
        </varlistentry>
 
178
      </variablelist>
 
179
    </sect3>
 
180
 
 
181
    <sect3 id="zapping-commands-python-dialogs">
 
182
      <title>Dialogs</title>
 
183
 
 
184
      <variablelist>
 
185
        <varlistentry>
 
186
          <term>zapping.control_box()</term>
 
187
          <listitem><para>Start the picture controls dialog.</para></listitem>
 
188
        </varlistentry>
 
189
        <varlistentry>
 
190
          <term>zapping.program_info()</term>
 
191
          <listitem><para>Start the program info dialog.</para></listitem>
 
192
        </varlistentry>
 
193
<!-- temporarily disabled
 
194
        <varlistentry>
 
195
          <term>zapping.network_info()</term>
 
196
          <listitem><para>Start the network info dialog.</para></listitem>
 
197
        </varlistentry>
 
198
-->
 
199
        <varlistentry>
 
200
          <term>zapping.channel_editor()</term>
 
201
          <listitem><para>Start the channel editing dialog.</para></listitem>
 
202
        </varlistentry>
 
203
        <varlistentry>
 
204
          <term>zapping.properties(['group' [, 'item']])</term>
 
205
          <listitem><para>Start the properties dialog, optionally the given group and item.</para></listitem>
 
206
        </varlistentry>
 
207
        <varlistentry>
 
208
          <term>zapping.plugin_properties()</term>
 
209
          <listitem><para>Start the plugin properties dialog.</para></listitem>
 
210
        </varlistentry>
 
211
        <varlistentry>
 
212
          <term>zapping.about()</term>
 
213
          <listitem><para>Start the about dialog.</para></listitem>
 
214
        </varlistentry>
 
215
        <varlistentry>
 
216
          <term>zapping.help()</term>
 
217
          <listitem><para>Open the Zapping documentation.</para></listitem>
 
218
        </varlistentry>
 
219
      </variablelist>
 
220
    </sect3>
 
221
 
 
222
    <sect3 id="zapping-commands-python-teletext">
 
223
      <title>Teletext</title>
 
224
 
 
225
      <variablelist>
 
226
        <varlistentry>
 
227
          <term>zapping.ttx_open_new([page [, subpage]])</term>
 
228
          <listitem><para>Open a Teletext window. When a page number is given, go to this page.</para></listitem>
 
229
        </varlistentry>
 
230
        <varlistentry>
 
231
          <term>zapping.ttx_page_incr([n])</term>
 
232
          <listitem><para>Advance the Teletext page number by n. This can be a positive or negative value, by default 1.</para></listitem>
 
233
        </varlistentry>
 
234
        <varlistentry>
 
235
          <term>zapping.ttx_subpage_incr([n])</term>
 
236
          <listitem><para>Advance the Teletext subpage number by n. This can be a positive or negative value, by default 1.</para></listitem>
 
237
        </varlistentry>
 
238
        <varlistentry>
 
239
          <term>zapping.ttx_home()</term>
 
240
          <listitem><para>Go to the Teletext home page, usually page 100.</para></listitem>
 
241
        </varlistentry>
 
242
        <varlistentry>
 
243
          <term>zapping.ttx_history_prev()</term>
 
244
          <listitem><para>Go to the previously visited page in the browse history.</para></listitem>
 
245
        </varlistentry>
 
246
        <varlistentry>
 
247
          <term>zapping.ttx_history_next()</term>
 
248
          <listitem><para>Go to the next visited page in the browse history.</para></listitem>
 
249
        </varlistentry>
 
250
        <varlistentry>
 
251
          <term>zapping.ttx_hold(toggle)</term>
 
252
          <listitem><para>Toggle the hold state of the displayed page. When off, Zapzilla will rotate through all subpages of the page, if it has any.</para></listitem>
 
253
        </varlistentry>
 
254
        <varlistentry>
 
255
          <term>zapping.ttx_reveal(toggle)</term>
 
256
          <listitem><para>Whether to reveal concealed characters on the displayed Teletext page.</para></listitem>
 
257
        </varlistentry>
 
258
      </variablelist>
 
259
    </sect3>
 
260
 
 
261
    <sect3 id="zapping-commands-python-caption">
 
262
      <title>Caption / Subtitles</title>
 
263
 
 
264
      <variablelist>
 
265
        <varlistentry>
 
266
          <term>zapping.closed_caption(toggle)</term>
 
267
          <listitem><para>Whether to display closed caption superimposed onto the picture.</para></listitem>
 
268
        </varlistentry>
 
269
        <varlistentry>
 
270
          <term>zapping.osd_render_markup('Hello &lt;i&gt;World&lt;/i&gt;!')</term>
 
271
          <listitem><para>Display text superimposed onto the picture, with Pango markup.</para></listitem>
 
272
        </varlistentry>
 
273
        <varlistentry>
 
274
          <term>zapping.osd_render('Hello World!')</term>
 
275
          <listitem><para>Display text superimposed onto the picture.</para></listitem>
 
276
        </varlistentry>
 
277
      </variablelist>
 
278
    </sect3>
 
279
 
 
280
    <sect3 id="zapping-commands-python-audio">
 
281
      <title>Audio</title>
 
282
 
 
283
      <variablelist>
 
284
        <varlistentry>
 
285
          <term>zapping.mute(toggle)</term>
 
286
          <listitem><para>Change the audio mute control.</para></listitem>
 
287
        </varlistentry>
 
288
        <varlistentry>
 
289
          <term>zapping.volume_incr([n])</term>
 
290
          <listitem><para>This provisional command changed the audio recording volume, it is <emphasis>no longer supported</emphasis>.</para>
 
291
          <para>As a replacement use zapping.control_incr('volume'[, n]) to change the soundcard mixer or video device volume as configured in the preferences dialog. Note that changing the volume does not unmute.</para></listitem>
 
292
        </varlistentry>
 
293
      </variablelist>
 
294
    </sect3>
 
295
 
 
296
    <sect3 id="zapping-commands-python-controls">
 
297
      <title>Controls</title>
 
298
 
 
299
      <variablelist>
 
300
        <varlistentry>
 
301
          <term>zapping.control_incr('name'[, n])</term>
 
302
          <listitem><para>Advance the control value by n units, usually +1 or -1, default is +1. The following names are presently recognized:</para>
 
303
            <variablelist>
 
304
              <varlistentry>
 
305
                <term>'brightness'</term>
 
306
                <listitem><para>picture brightness</para></listitem>
 
307
              </varlistentry>
 
308
              <varlistentry>
 
309
                <term>'contrast'</term>
 
310
                <listitem><para>picture contrast</para></listitem>
 
311
              </varlistentry>
 
312
              <varlistentry>
 
313
                <term>'saturation'</term>
 
314
                <listitem><para>picture color saturation</para></listitem>
 
315
              </varlistentry>
 
316
              <varlistentry>
 
317
                <term>'hue'</term>
 
318
                <listitem><para>picture color hue</para></listitem>
 
319
              </varlistentry>
 
320
              <varlistentry>
 
321
                <term>'volume'</term>
 
322
                <listitem><para>audio volume</para></listitem>
 
323
              </varlistentry>
 
324
              <varlistentry>
 
325
                <term>'bass'</term>
 
326
                <listitem><para>audio bass</para></listitem>
 
327
              </varlistentry>
 
328
              <varlistentry>
 
329
                <term>'treble'</term>
 
330
                <listitem><para>audio treble</para></listitem>
 
331
              </varlistentry>
 
332
            </variablelist>
 
333
          </listitem>
 
334
        </varlistentry>
 
335
      </variablelist>
 
336
    </sect3>
 
337
   
 
338
    <sect3 id="zapping-commands-python-plugins">
 
339
      <title>Plugins</title>
 
340
 
 
341
      <variablelist>
 
342
        <varlistentry>
 
343
          <term>zapping.screenshot(['format'])</term>
 
344
          <listitem><para>Start the screenshot dialog and if given switch to the format. Currently valid formats are: 'jpeg' and 'ppm'.</para></listitem>
 
345
        </varlistentry>
 
346
        <varlistentry>
 
347
          <term>zapping.quickshot(['format'])</term>
 
348
          <listitem><para>Take a screenshot without starting the dialog. The last select file name will be used, with an incrementing number appended. When no format is given the last selected format will be used.</para></listitem>
 
349
        </varlistentry>
 
350
        <varlistentry>
 
351
          <term>zapping.record(['format'])</term>
 
352
          <listitem><para>Start the record dialog and if given switch to the format. Note this is the name the user gives a particular configuration, not the name of the file format.</para></listitem>
 
353
        </varlistentry>
 
354
        <varlistentry>
 
355
          <term>zapping.quickrec(['format'])</term>
 
356
          <listitem><para>Start recording without confirmation. The last select file name will be used, with an incrementing number appended. When no format is given the last selected format will be used.</para></listitem>
 
357
        </varlistentry>
 
358
        <varlistentry>
 
359
          <term>zapping.stoprec()</term>
 
360
          <listitem><para>Stop recording.</para></listitem>
 
361
        </varlistentry>
 
362
      </variablelist>
 
363
    </sect3>
 
364
  </sect2>
 
365
</sect1>
 
366
 
 
367
<!--
 
368
Local Variables:
 
369
mode: sgml
 
370
sgml-parent-document: "zapping.xml"
 
371
comment-auto-fill-only-comments: t
 
372
indent-tabs-mode: nil
 
373
End:
 
374
-->