Caution: This patch is not suitable for upstream, (William would rather
see a hook for this instead).
end
def highlight_for fg, bg, attrs
end
def highlight_for fg, bg, attrs
- hfg =
- case fg
- when Curses::COLOR_BLUE
- Curses::COLOR_WHITE
- when Curses::COLOR_YELLOW, Curses::COLOR_GREEN
- fg
- else
- Curses::COLOR_BLACK
- end
-
- hbg =
- case bg
- when Curses::COLOR_CYAN
- Curses::COLOR_YELLOW
- when Curses::COLOR_YELLOW
- Curses::COLOR_BLUE
- else
- Curses::COLOR_CYAN
- end
-
- attrs =
- if fg == Curses::COLOR_WHITE && attrs.include?(Curses::A_BOLD)
- [Curses::A_BOLD]
- else
- case hfg
- when Curses::COLOR_BLACK
- []
- else
- [Curses::A_BOLD]
- end
- end
- [hfg, hbg, attrs]
+ [fg, bg, attrs + [Curses::A_UNDERLINE]]
+# hfg =
+# case fg
+# when Curses::COLOR_YELLOW
+# Curses::COLOR_BLACK
+# else
+# fg
+# end
+# case fg
+# when Curses::COLOR_BLUE
+# Curses::COLOR_WHITE
+# when Curses::COLOR_YELLOW, Curses::COLOR_GREEN
+# fg
+# else
+# Curses::COLOR_WHITE
+# end
+
+# hbg = Curses::COLOR_YELLOW
+# case bg
+# when Curses::COLOR_CYAN
+# Curses::COLOR_YELLOW
+# when Curses::COLOR_YELLOW
+# Curses::COLOR_BLUE
+# else
+# Curses::COLOR_BLUE
+# end
+
+# attrs =
+# if attrs.include?(Curses::A_BOLD)
+# [Curses::A_BOLD]
+# else
+# case hfg
+# when Curses::COLOR_BLACK
+# []
+# else
+# [Curses::A_BOLD]
+# end
+# end
+# [hfg, hbg, attrs]
end
def color_for sym, highlight=false
end
def color_for sym, highlight=false