bim: Use ansi theme on vga terminal
This commit is contained in:
parent
dbc3a433c7
commit
2f0041ae09
@ -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
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user