adjust
This commit is contained in:
parent
1be80e3d57
commit
05ad4d8efe
@ -222,11 +222,11 @@ class driver():
|
|||||||
ink = attr & 0x0F
|
ink = attr & 0x0F
|
||||||
paper = (attr>>4) & 0x0F
|
paper = (attr>>4) & 0x0F
|
||||||
blink = 0
|
blink = 0
|
||||||
if attr & 1:
|
#if attr & 1:
|
||||||
blink = 1
|
# blink = 1
|
||||||
bold = 0
|
bold = 0
|
||||||
if attr & 16:
|
#if attr & 16:
|
||||||
bold = 1
|
# bold = 1
|
||||||
#if (ink != 7) or (paper != 0):
|
#if (ink != 7) or (paper != 0):
|
||||||
# print(ink,paper)
|
# print(ink,paper)
|
||||||
if sh & self.hichar:
|
if sh & self.hichar:
|
||||||
@ -243,11 +243,13 @@ class driver():
|
|||||||
try:
|
try:
|
||||||
return self.bgColorNames[attribute[2]]
|
return self.bgColorNames[attribute[2]]
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
return ''
|
return ''
|
||||||
def getFenrirFGColor(self, attribute):
|
def getFenrirFGColor(self, attribute):
|
||||||
try:
|
try:
|
||||||
return self.fgColorNames[attribute[1]]
|
return self.fgColorNames[attribute[1]]
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
return ''
|
return ''
|
||||||
def getFenrirUnderline(self, attribute):
|
def getFenrirUnderline(self, attribute):
|
||||||
if attribute[5] == 1:
|
if attribute[5] == 1:
|
||||||
@ -262,9 +264,9 @@ class driver():
|
|||||||
return _('blink')
|
return _('blink')
|
||||||
return ''
|
return ''
|
||||||
def getFenrirFont(self, attribute):
|
def getFenrirFont(self, attribute):
|
||||||
return _('')
|
return _('Default')
|
||||||
def getFenrirFontSize(self, attribute):
|
def getFenrirFontSize(self, attribute):
|
||||||
return _('')
|
return _('Default')
|
||||||
def update(self, trigger='onUpdate'):
|
def update(self, trigger='onUpdate'):
|
||||||
if trigger == 'onInput': # no need for an update on input for VCSA
|
if trigger == 'onInput': # no need for an update on input for VCSA
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user