Changed configuration background to black on white...

Seemed fairly difficult, but luckily it works.
This commit is contained in:
Bahadir Balban
2009-09-23 17:55:03 +03:00
parent 84a75866f1
commit 2c003da964
2 changed files with 6 additions and 3 deletions

View File

@@ -333,6 +333,7 @@ default CONFIG_CONT0_OPT_DIRNAME from (CONFIG_CONT0_TYPE_LINUX==y) ? "linux" : (
default CONFIG_CONT1_OPT_DIRNAME from (CONFIG_CONT1_TYPE_LINUX==y) ? "linux" : ((CONFIG_CONT1_TYPE_BARE==y) ? "bare" : "noname") default CONFIG_CONT1_OPT_DIRNAME from (CONFIG_CONT1_TYPE_LINUX==y) ? "linux" : ((CONFIG_CONT1_TYPE_BARE==y) ? "bare" : "noname")
unless CONFIG_CONTAINERS > 1 suppress cont1_menu unless CONFIG_CONTAINERS > 1 suppress cont1_menu
require CONFIG_CONTAINERS < 2 implies cont1_menu==n
when CONFIG_CONT0_TYPE_LINUX==y suppress cont0_bare_pager_params when CONFIG_CONT0_TYPE_LINUX==y suppress cont0_bare_pager_params
when CONFIG_CONT0_TYPE_BARE==y suppress cont0_linux_pager_params when CONFIG_CONT0_TYPE_BARE==y suppress cont0_linux_pager_params

View File

@@ -1144,12 +1144,14 @@ class curses_style_menu:
raise "TERMTOOSMALL" raise "TERMTOOSMALL"
self.menus.viewport_height = self.lines-2 + (not configuration.expert_tie or cml.evaluate(configuration.expert_tie) != cml.n) self.menus.viewport_height = self.lines-2 + (not configuration.expert_tie or cml.evaluate(configuration.expert_tie) != cml.n)
if curses.has_colors(): if curses.has_colors():
curses.init_pair(curses.COLOR_CYAN, curses.COLOR_WHITE, curses.COLOR_BLACK) #curses.init_pair(curses.COLOR_CYAN, curses.COLOR_WHITE, curses.COLOR_BLACK)
curses.init_pair(curses.COLOR_GREEN, curses.COLOR_WHITE, curses.COLOR_BLACK) #curses.init_pair(curses.COLOR_GREEN, curses.COLOR_WHITE, curses.COLOR_BLACK)
curses.init_pair(curses.COLOR_CYAN, curses.COLOR_BLACK, curses.COLOR_WHITE)
curses.init_pair(curses.COLOR_GREEN, curses.COLOR_BLACK, curses.COLOR_WHITE)
self.window.clear() self.window.clear()
self.window.scrollok(0) self.window.scrollok(0)
self.window.idlok(1) self.window.idlok(1)
stdscr.bkgd(' ', curses.color_pair(curses.COLOR_CYAN))
# Most of the work gets done here # Most of the work gets done here
self.interact(config) self.interact(config)