~ubuntu-branches/ubuntu/lucid/mpg123/lucid

« back to all changes in this revision

Viewing changes to src/term.h

Tags: upstream-0.60
ImportĀ upstreamĀ versionĀ 0.60

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
        term: terminal control
 
3
 
 
4
        copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
 
5
        see COPYING and AUTHORS files in distribution or http://mpg123.de
 
6
        initially written by Michael Hipp
 
7
*/
 
8
 
 
9
#include "config.h"
 
10
 
 
11
 
 
12
#ifndef _MPG123_TERM_H_
 
13
#define _MPG123_TERM_H_
 
14
 
 
15
#ifdef HAVE_TERMIOS
 
16
 
 
17
#define LOOP_CYCLES     0.500000        /* Loop time in sec */
 
18
 
 
19
/* 
 
20
 * Defines the keybindings in term.c - change to your 
 
21
 * own preferences.
 
22
 */
 
23
 
 
24
#define HELP_KEY        'h'
 
25
#define BACK_KEY        'b'
 
26
#define NEXT_KEY        'f'
 
27
#define PAUSE_KEY       'p'
 
28
#define QUIT_KEY        'q'
 
29
/* space bar is alias for that */
 
30
#define STOP_KEY        's'
 
31
#define REWIND_KEY      ','
 
32
#define FORWARD_KEY     '.'
 
33
/* This is convenient on QWERTZ-keyboards. */
 
34
#define FAST_REWIND_KEY ';'
 
35
#define FAST_FORWARD_KEY ':'
 
36
#define FINE_REWIND_KEY '<'
 
37
#define FINE_FORWARD_KEY '>'
 
38
/* You probably want to use the following bindings instead
 
39
 * on a standard QWERTY-keyboard:
 
40
 */
 
41
 
 
42
/* #define FAST_REWIND_KEY '<' */
 
43
/* #define FAST_FORWARD_KEY '>' */
 
44
/* #define FINE_REWIND_KEY ';' */
 
45
/* #define FINE_FORWARD_KEY ':' */
 
46
 
 
47
/* this counts as "undocumented" and can disappear */
 
48
#define FRAME_INDEX_KEY 'i'
 
49
 
 
50
#define PAUSED_STRING   "Paused. \b\b\b\b\b\b\b\b"
 
51
#define STOPPED_STRING  "Stopped.\b\b\b\b\b\b\b\b"
 
52
#define EMPTY_STRING    "        \b\b\b\b\b\b\b\b"
 
53
 
 
54
void term_init(void);
 
55
long term_control(struct frame *fr);
 
56
void term_restore(void);
 
57
 
 
58
#endif
 
59
 
 
60
#endif