about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-12-03 16:59:25 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-12-03 16:59:25 -0800
commit947abf2ba312a413d40e2975b9a18111dccc839c (patch)
treeace6101bae4ccb991bcca1aef2aa1383b6b467d1 /src
parent6f6595b39a8e9bdae71e1ea4521e6778b5eb331c (diff)
downloadteliva-947abf2ba312a413d40e2975b9a18111dccc839c.tar.gz
legible colors across all terminal configurations
So far I've been trying to make Teliva follow the default colorscheme of
the terminal, but that easily ends up with illegible color combinations.
New plan: always start with a light background within Teliva. People who
want a dark background will currently need to mess with C sources.

This should somewhat fix https://github.com/akkartik/teliva/issues/1.
It's still not clear whether the default should be a dark or light
background. While dark background is more common in terminals, I believe
newcomers to terminals will prefer a light background. Then again, I'm
biased since I use a light background in my terminals.
Diffstat (limited to 'src')
-rw-r--r--src/lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua.c b/src/lua.c
index 00a9349..5945733 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -1183,7 +1183,7 @@ int main (int argc, char **argv) {
   initscr();
   keypad(stdscr, 1);
   start_color();
-  use_default_colors();
+  assume_default_colors(0, 15);
   draw_menu(L);
   echo();
   s.argc = argc;