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 # Quirks work the same as they did in bim2, except for the obvious syntax change
quirk('TERM','screen','no24bit','noitalic') quirk('TERM','screen','no24bit','noitalic')
quirk('TERM','xterm-256color','caninsert','canpaste','cansgrmouse') quirk('TERM','xterm-256color','caninsert','canpaste','cansgrmouse')
quirk('TERM','toaru-vga','no24bit','no256color')
quirk('TERMINAL_EMULATOR','JetBrains','nobce') quirk('TERMINAL_EMULATOR','JetBrains','nobce')
# checkprop() returns 0 if we _can_ do something, so # checkprop() returns 0 if we _can_ do something, so

View File

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