aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2016-12-09 16:42:38 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2016-12-09 16:42:38 +0100
commit3400f555fe86cd9736e41b3cb8077e7af1538119 (patch)
treedb883b023abda50e230daa83931a60062c56e0f5
parentd1c6d6bc72d697c015407a83bd213ab232db8d6b (diff)
Add common function to give hotkey help
* Key to dial and hangup * Key to display wave form
-rw-r--r--docs/bird.pngbin89086 -> 78758 bytes
-rw-r--r--src/amps/main.c1
-rw-r--r--src/anetz/main.c1
-rw-r--r--src/bnetz/main.c1
-rw-r--r--src/cnetz/main.c3
-rw-r--r--src/common/main.h1
-rw-r--r--src/common/main_common.c8
-rw-r--r--src/nmt/main.c1
8 files changed, 15 insertions, 1 deletions
diff --git a/docs/bird.png b/docs/bird.png
index 6762046..120b243 100644
--- a/docs/bird.png
+++ b/docs/bird.png
Binary files differ
diff --git a/src/amps/main.c b/src/amps/main.c
index 7253856..cd9d344 100644
--- a/src/amps/main.c
+++ b/src/amps/main.c
@@ -89,6 +89,7 @@ void print_help(const char *arg0)
printf(" Be more tolerant when hunting for sync sequence\n");
printf("\nstation-id: Give 10 digit station-id, you don't need to enter it for every\n");
printf(" start of this program.\n");
+ print_hotkeys_common();
}
static int handle_options(int argc, char **argv)
diff --git a/src/anetz/main.c b/src/anetz/main.c
index 5060660..1034046 100644
--- a/src/anetz/main.c
+++ b/src/anetz/main.c
@@ -54,6 +54,7 @@ void print_help(const char *arg0)
printf(" percent. (disabled by default)\n");
printf("\nstation-id: Give (last) 5 digits of station-id, you don't need to enter it\n");
printf(" for every start of this program.\n");
+ print_hotkeys_common();
}
static int handle_options(int argc, char **argv)
diff --git a/src/bnetz/main.c b/src/bnetz/main.c
index 118a21e..57a57f9 100644
--- a/src/bnetz/main.c
+++ b/src/bnetz/main.c
@@ -69,6 +69,7 @@ void print_help(const char *arg0)
printf(" percent. (disabled by default)\n");
printf("\nstation-id: Give 5 digit station-id, you don't need to enter it for every\n");
printf(" start of this program.\n");
+ print_hotkeys_common();
}
static int handle_options(int argc, char **argv)
diff --git a/src/cnetz/main.c b/src/cnetz/main.c
index b93b9b4..10ca066 100644
--- a/src/cnetz/main.c
+++ b/src/cnetz/main.c
@@ -83,7 +83,8 @@ void print_help(const char *arg0)
printf(" This option raises audio level on TX and lowers on RX.\n");
printf("\nstation-id: Give 7 digit station-id, you don't need to enter it for every\n");
printf(" start of this program.\n");
- printf("\nPress 'i' key for dumping currently attached subscribers.\n");
+ print_hotkeys_common();
+ printf("Press 'i' key to dump list of currently attached subscribers.\n");
}
static int handle_options(int argc, char **argv)
diff --git a/src/common/main.h b/src/common/main.h
index 9072c70..c9fecca 100644
--- a/src/common/main.h
+++ b/src/common/main.h
@@ -21,6 +21,7 @@ extern const char *read_rx_wave;
void print_help(const char *arg0);
void print_help_common(const char *arg0, const char *ext_usage);
+void print_hotkeys_common(void);
extern struct option *long_options;
extern char *optstring;
void set_options_common(const char *optstring_special, struct option *long_options_special);
diff --git a/src/common/main_common.c b/src/common/main_common.c
index c14ab28..5fd1bc9 100644
--- a/src/common/main_common.c
+++ b/src/common/main_common.c
@@ -112,6 +112,14 @@ void print_help_common(const char *arg0, const char *ext_usage)
printf(" Replace received audio by given wav audio file.\n");
}
+void print_hotkeys_common(void)
+{
+ printf("\n");
+ printf("Press digits '0'..'9' and then 'd' key to dial towards mobile station\n");
+ printf("Press 'h' key to hangup.\n");
+ printf("Press 'w' key to toggle display of wave form of RX signal.\n");
+}
+
#define OPT_CHANNEL 1000
#define OPT_WRITE_RX_WAVE 1001
#define OPT_WRITE_TX_WAVE 1002
diff --git a/src/nmt/main.c b/src/nmt/main.c
index aa9e034..9eac5da 100644
--- a/src/nmt/main.c
+++ b/src/nmt/main.c
@@ -83,6 +83,7 @@ void print_help(const char *arg0)
printf(" If set, the caller ID is sent while ringing the phone. (default = '%d')\n", send_callerid);
printf("\nstation-id: Give 7 digits of station-id, you don't need to enter it\n");
printf(" for every start of this program.\n");
+ print_hotkeys_common();
}
static int handle_options(int argc, char **argv)