1 /* 2 * cda - Command-line CD Audio Player/Ripper 3 * 4 * Copyright (C) 1993-2004 Ti Kan 5 * E-mail: xmcd@amb.org 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 * 21 */ 22 #ifndef __VISUAL_H__ 23 #define __VISUAL_H__ 24 25 #ifndef NOVISUAL 26 27 #ifndef lint 28 static char *_visual_h_ident_ = "@(#)visual.h 6.17 03/12/12"; 29 #endif 30 31 32 #ifndef ACS_HLINE 33 #define ACS_HLINE '-' 34 #endif 35 36 #ifdef __QNX__ 37 #ifdef putp 38 #undef putp 39 #endif 40 #define putp(x) /* Don't use putp under QNX */ 41 #endif /* __QNX__ */ 42 43 44 /* 45 * Constant definitions 46 */ 47 48 #define ON_X 2 49 #define ON_Y 4 50 #define OFF_X 5 51 #define OFF_Y 4 52 #define LOAD_X 13 53 #define LOAD_Y 4 54 #define EJECT_X 13 55 #define EJECT_Y 5 56 #define PLAY_X 23 57 #define PLAY_Y 4 58 #define PAUSE_X 23 59 #define PAUSE_Y 5 60 #define STOP_X 33 61 #define STOP_Y 4 62 #define LOCK_X 43 63 #define LOCK_Y 4 64 #define UNLOCK_X 42 65 #define UNLOCK_Y 5 66 #define SHUFFLE_X 52 67 #define SHUFFLE_Y 4 68 #define PROGRAM_X 52 69 #define PROGRAM_Y 5 70 #define REPEAT_ON_X 62 71 #define REPEAT_ON_Y 5 72 #define REPEAT_OFF_X 65 73 #define REPEAT_OFF_Y 5 74 75 76 #define HELP_INFO "\ 77 CDA - Command Line CD Audio Player/Ripper\n\ 78 \n\ 79 F1 (o) On/Off D / d Prev/Next disc\n\ 80 F2 (j) Load/Eject Cursor left/right (C/c) Prev/Next track\n\ 81 F3 (p) Play/Pause < / > Prev/Next index\n\ 82 F4 (s) Stop Cursor up/down (ctl-^/ctl-v) Scroll screen\n\ 83 F5 (k) Lock/Unlock + / - Volume up/down\n\ 84 F6 (u) Shuffle/Program l / r Balance left/right\n\ 85 F7 (e) Repeat On/Off Tab Stereo/Mono\n\ 86 F8 (q) Quit n [mins secs] Track n [at mins/secs]\n\ 87 ^L or ^R Refresh screen\n\ 88 \n\ 89 ? Help\n\ 90 \n\ 91 (Alternatives to function and cursor control keys given in parenthesis)\n\ 92 \n\ 93 Press space to return to info screen." 94 95 96 #define HELP_SCROLL_LENGTH 16 97 98 #define STATUS_LINE0 "\ 99 F1(o) F2(j) F3(p) F4(s) F5(k) F6(u) F7(e) F8(q)" 100 101 #define STATUS_LINE1 "\ 102 On/Off Load/ Play/ Stop Lock/ Shuffle/ Repeat Quit" 103 104 #define STATUS_LINE2 "\ 105 Eject Pause Unlock Program On/Off" 106 107 108 /* Public function prototypes */ 109 extern void cda_vtidy(void); 110 extern void cda_visual(void); 111 112 113 #endif /* NOVISUAL */ 114 115 #endif /* __VISUAL_H__ */ 116 117