From 3adafe80e90c14712ab94d67ec0627f45e787ec3 Mon Sep 17 00:00:00 2001
From: Lars-Dominik Braun <PromyLOPh@lavabit.com>
Date: Tue, 20 Apr 2010 21:21:53 +0200
Subject: Show small hint about keybinding help at startup

See bug #23
---
 src/main.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src')

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);
-- 
cgit v1.2.3