summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2010-04-20 21:21:53 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2010-04-20 21:21:53 +0200
commit3adafe80e90c14712ab94d67ec0627f45e787ec3 (patch)
treeae372b62258c773b55e0f4a12ceb123f0cfe06bf /src
parent27ed89fa00083a9b2912c01447f684095e3349ad (diff)
downloadpianobar-3adafe80e90c14712ab94d67ec0627f45e787ec3.tar.gz
pianobar-3adafe80e90c14712ab94d67ec0627f45e787ec3.tar.bz2
pianobar-3adafe80e90c14712ab94d67ec0627f45e787ec3.zip
Show small hint about keybinding help at startup
See bug #23
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 6ff9874..8467065 100644
--- a/src/main.c
+++ b/src/main.c
@@ -74,8 +74,6 @@ int main (int argc, char **argv) {
/* terminal attributes _before_ we started messing around with ~ECHO */
struct termios termOrig;
- BarUiMsg (MSG_NONE, "Welcome to " PACKAGE "!\n");
-
/* save terminal attributes, before disabling echoing */
BarTermSave (&termOrig);
@@ -92,6 +90,9 @@ int main (int argc, char **argv) {
BarSettingsInit (&settings);
BarSettingsRead (&settings);
+ BarUiMsg (MSG_NONE, "Welcome to " PACKAGE "! Press %c for a list of commands.\n",
+ settings.keys[BAR_KS_HELP]);
+
/* init fds */
FD_ZERO(&readSet);
selectFds[0] = fileno (stdin);