Commits

Rafael García committed fb724d6

[PATCH 4/5] optionalize to use term status feature + [PATCH 5/5] possibilize title bar at bottom BY strake888

  • Participants
  • Parent commits 53529d1

Comments (0)

Files changed (2)

File config.def.h

 /* A simplified way to customize */
+#define USE_TERM_STATUS 1
+#define BOTTOM_TITLE    0
 #define HILIGHT_CURRENT 1
 #define HILIGHT_SYNTAX  1
 #define SHOW_NONPRINT   0
 	noecho();
 	nl();
 	if(textwin) delwin(textwin);
-	if(tigetflag("hs") > 0) {
+	if(USE_TERM_STATUS && tigetflag("hs") > 0) {
 		tsl_str=tigetstr("tsl");
 		fsl_str=tigetstr("fsl");
 		textwin=newwin(lines,cols,0,0);
 	} else {
 		if(titlewin) delwin(titlewin);
-		titlewin=newwin(1,cols,0,0);
+		titlewin=newwin(1,cols,BOTTOM_TITLE?lines-1:0,0);
 		wattron(titlewin,A_REVERSE);
-		textwin=newwin(lines-1,cols,1,0);
+		textwin=newwin(lines-1,cols,BOTTOM_TITLE?0:1,0);
 	}
 	idlok(textwin, TRUE);
 	keypad(textwin, TRUE);