aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmain.c1
-rw-r--r--wind.c18
-rw-r--r--wind.h2
3 files changed, 21 insertions, 0 deletions
diff --git a/main.c b/main.c
index a6f20c8..491abcb 100755
--- a/main.c
+++ b/main.c
@@ -216,6 +216,7 @@ int main(int argc, char* argv[]){
printmenu(&menu);
printTagInfoHeader();
+ printHelp();
move(1,COLS/2);
vline( ACS_VLINE, LINES-2) ;
diff --git a/wind.c b/wind.c
index a587dce..b2581c3 100644
--- a/wind.c
+++ b/wind.c
@@ -35,6 +35,23 @@ void printTagInfoHeader() {
mvprintc(COLS/2+2, 7, "Comment :",15);
attrset( COLOR_PAIR( 0 ) | A_NORMAL);
}
+void printHelp() {
+ attrset( COLOR_PAIR( COLOR_RED + 1) | A_BOLD);
+ mvprintc(COLS/2+2, 10, "j : Down",20);
+ mvprintc(COLS/2+2, 11, "k : Up",20);
+ mvprintc(COLS/2+2, 12, "et: Edit title",20);
+ mvprintc(COLS/2+2, 13, "ea: Edit artist",20);
+ mvprintc(COLS/2+2, 14, "eb: Edit album",20);
+ mvprintc(COLS/2+2, 15, "ey: Edit year",20);
+ mvprintc(COLS/2+2+24, 10, "en: Edit track NĀ°",20);
+ mvprintc(COLS/2+2+24, 11, "et: Edit genre",20);
+ mvprintc(COLS/2+2+24, 12, "s : Regex selection",20);
+ mvprintc(COLS/2+2+24, 13, "x : Regex edition",20);
+ mvprintc(COLS/2+2+24, 14, "q : Quit",20);
+ attrset( COLOR_PAIR( 0 ) | A_NORMAL);
+}
+
+
void printTagInfo(menuC* menu) {
static int mustClear = 0;
if( mustClear == 1 ) {
@@ -144,6 +161,7 @@ void resizeMain(menuC* menu) {
menu->w = COLS/2-1;
printmenu(menu);
printTagInfoHeader();
+ printHelp();
printTagInfo(menu);
printStatus();
move(1,COLS/2);
diff --git a/wind.h b/wind.h
index 63fed9c..7b7f12a 100644
--- a/wind.h
+++ b/wind.h
@@ -9,6 +9,8 @@
void printTagInfoHeader();
+void printHelp();
+
void printTagInfo(menuC* menu);
void cleanmenu(menuC* menu);