bim: Use ansi theme on vga terminal

This commit is contained in:
K. Lange 2021-06-14 12:06:07 +09:00
parent dbc3a433c7
commit 2f0041ae09
2 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,7 @@ Sample config file for bim3
# Quirks work the same as they did in bim2, except for the obvious syntax change
quirk('TERM','screen','no24bit','noitalic')
quirk('TERM','xterm-256color','caninsert','canpaste','cansgrmouse')
quirk('TERM','toaru-vga','no24bit','no256color')
quirk('TERMINAL_EMULATOR','JetBrains','nobce')
# checkprop() returns 0 if we _can_ do something, so

View File

@ -4,7 +4,8 @@ from themes import ansi
@defineTheme
def sunsmoke256():
if checkprop('can_256color'):
return ansi()
colorscheme("ansi")
return
setcolor("text-fg","5;188")
setcolor("text-bg","5;234")
setcolor("alternate-fg","5;244")
@ -37,7 +38,8 @@ def sunsmoke256():
@defineTheme
def sunsmoke():
if checkprop('can_24bit'):
return sunsmoke256()
colorscheme("sunsmoke256")
return
setcolor("text-fg", "2;230;230;230")
setcolor("text-bg", "2;31;31;31")
setcolor("alternate-fg", "2;122;122;122")