about summary refs log tree commit diff stats
path: root/src/ui/console.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-09-23 00:56:53 +0100
committerJames Booth <boothj5@gmail.com>2016-09-23 00:56:53 +0100
commitd3cc5bd7ed9563dfc673b72ac3347cf41fc3d057 (patch)
tree6f7c72dda85e179b7cf1be3278e64f7a8d900674 /src/ui/console.c
parent3983ee1d6be8245901e83d7d06974005000a1721 (diff)
downloadprofani-tty-d3cc5bd7ed9563dfc673b72ac3347cf41fc3d057.tar.gz
Allow vertical positioning of all windows
Diffstat (limited to 'src/ui/console.c')
-rw-r--r--src/ui/console.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 8bc7823f..98967206 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -1534,7 +1534,7 @@ cons_show_ui_prefs(void)
     cons_beep_setting();
     cons_flash_setting();
     cons_splash_setting();
-    cons_inputwin_setting();
+    cons_winpos_setting();
     cons_wrap_setting();
     cons_winstidy_setting();
     cons_time_setting();
@@ -1753,11 +1753,14 @@ cons_inpblock_setting(void)
 }
 
 void
-cons_inputwin_setting(void)
+cons_winpos_setting(void)
 {
-    char *pos = prefs_get_string(PREF_INPUTWIN);
-    cons_show("Input window postion (/inputwin)    : %s", pos);
-    prefs_free_string(pos);
+    ProfWinPlacement *placement = prefs_get_win_placement();
+    cons_show("Title bar postion (/titlebar)       : %d", placement->titlebar_pos);
+    cons_show("Main window postion (/mainwin)      : %d", placement->mainwin_pos);
+    cons_show("Status bar postion (/statusbar)     : %d", placement->statusbar_pos);
+    cons_show("Input window postion (/inputwin)    : %d", placement->inputwin_pos);
+    prefs_free_win_placement(placement);
 }
 
 void