4 * Copyright (C) 2013-06-21 K.Ohta <whatisthis.sowhat ai gmail.com>
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,
10 * or (at your option) any later version.
11 * This library / program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this library; see the file COPYING. If not, write to the
18 * Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
21 * As a special exception, if you link this(includeed from sdcc) library
22 * with other files, some of which are compiled with SDCC,
23 * to produce an executable, this library does not by itself cause
24 * the resulting executable to be covered by the GNU General Public License.
25 * This exception does not however invalidate any other reasons why
26 * the executable file might be covered by the GNU General Public License.
31 #include "commondef.h"
33 const char *updown_helpstr[20] = {
34 "Help", "F=exit any=continue",
36 "1: Slow Down", "3: Slow Up",
38 "7: Fast Down", "9: Fast Up",
39 "2: Band Down", "8: Band Up",
41 "a: AM/FM", "b: Volume",
42 "c: Scan", "d: Stereo mode",
43 "e: Backlight", "f: (Exit) Help",
46 const char *setup_helpstr[14] = {
47 "Help", "F=exit any=continue",
48 "0: Power OFF", "C: Save status",
49 "d: Reset default", "E: BL time",
51 "1: FM CNR", "2: AM CNR"
52 "3: FM STEREO", "4: Reserve"
53 "5: Cancel", "f: (Exit) Help",
56 const char *mainmenu_helpstr[14] = {
57 "Help", "F=exit any=continue",
58 "0: Setup", "1: Band",
60 "7: Power Off", "9: Width",
61 "a: AM/FM", "b: Cancel",
62 "c: Set user", "d: Input user",
63 "e: Reserve", "f: (Exit) Help"
66 const char *numeric_helpstr[10] = {
67 "On numeric input", " ",
68 "0-9: Numeric", "f: enter",
69 "a: Delete", "b: Reset value",
70 "d: Left", "e: Right",
71 "Press any key", " to continue."
81 c = printhelp_2lines(setup_helpstr[l], setup_helpstr[l + 1]);
82 if(c == charcode_f) return;
86 if(c == charcode_f) return;
93 unsigned char printhelp_2lines(const char *l1, const char *l2)
101 return pollkey_single();
104 unsigned char numeric_help(void)
110 c = printhelp_2lines(numeric_helpstr[l], numeric_helpstr[l + 1]);
111 if(c == charcode_f) return charcode_f;
117 void mainmenu_help(void)
124 c = printhelp_2lines(mainmenu_helpstr[l], mainmenu_helpstr[l + 1]);
125 if(c == charcode_f) return;
129 if(c == charcode_f) return;
135 void updown_help(void)
142 c = printhelp_2lines(updown_helpstr[l], updown_helpstr[l + 1]);
143 if(c == charcode_f) return;
147 if(c == charcode_f) return;