mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 12:42:25 +00:00
...
This commit is contained in:
parent
37ac5d4194
commit
275161e0da
2 changed files with 3 additions and 5 deletions
|
|
@ -122,7 +122,7 @@ def build_ansi_color_tables(opts: Options) -> Tuple[dict, dict]:
|
|||
def col(i):
|
||||
return QColor(getattr(opts, 'color{}'.format(i))).getRgb()[:3]
|
||||
fg = {30 + i: col(i) for i in range(8)}
|
||||
fg[39] = opts.foreground
|
||||
fg[39] = opts.foreground.getRgb()[:3]
|
||||
fg.update({90 + i: col(i + 8) for i in range(8)})
|
||||
fg[99] = opts.foreground_bold.getRgb()[:3]
|
||||
bg = {40 + i: col(i) for i in range(8)}
|
||||
|
|
|
|||
|
|
@ -159,15 +159,13 @@ class TerminalWidget(QWidget):
|
|||
try:
|
||||
self.paint_cursor(p)
|
||||
except Exception:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
pass
|
||||
|
||||
for lnum, cnum in self.dirty_cells(r):
|
||||
try:
|
||||
self.paint_cell(p, cnum, lnum)
|
||||
except Exception:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
pass
|
||||
|
||||
def paint_cursor(self, painter):
|
||||
x, y = wrap_cursor_position(self.cursor.x, self.cursor.y, len(self.line_positions), len(self.cell_positions))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue