mirror of
https://github.com/drasko/codezero.git
synced 2026-01-15 20:33:16 +01:00
Changed configuration background to black on white...
Seemed fairly difficult, but luckily it works.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user