mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 10:41:58 +02:00
Add hyperlink id to CellAttrs
This commit is contained in:
@@ -244,7 +244,7 @@ def make_bitfields() -> None:
|
|||||||
from kitty.fast_data_types import SCALE_BITS, SUBSCALE_BITS, WIDTH_BITS
|
from kitty.fast_data_types import SCALE_BITS, SUBSCALE_BITS, WIDTH_BITS
|
||||||
make_bitfield(
|
make_bitfield(
|
||||||
'tools/vt', 'CellAttrs',
|
'tools/vt', 'CellAttrs',
|
||||||
'decoration 3', 'bold 1', 'italic 1', 'reverse 1', 'strike 1', 'dim 1',
|
'decoration 3', 'bold 1', 'italic 1', 'reverse 1', 'strike 1', 'dim 1', 'hyperlink_id 16',
|
||||||
)
|
)
|
||||||
make_bitfield('tools/vt', 'Ch', 'is_idx 1', 'ch_or_idx 31')
|
make_bitfield('tools/vt', 'Ch', 'is_idx 1', 'ch_or_idx 31')
|
||||||
make_bitfield(
|
make_bitfield(
|
||||||
@@ -252,7 +252,7 @@ def make_bitfields() -> None:
|
|||||||
'is_multicell 1', 'natural_width 1', f'scale {SCALE_BITS}', f'subscale_n {SUBSCALE_BITS}', f'subscale_d {SUBSCALE_BITS}',
|
'is_multicell 1', 'natural_width 1', f'scale {SCALE_BITS}', f'subscale_n {SUBSCALE_BITS}', f'subscale_d {SUBSCALE_BITS}',
|
||||||
f'width {WIDTH_BITS}', f'x {WIDTH_BITS + SCALE_BITS + 1}', f'y {SCALE_BITS + 1}', 'vertical_align 3',
|
f'width {WIDTH_BITS}', f'x {WIDTH_BITS + SCALE_BITS + 1}', f'y {SCALE_BITS + 1}', 'vertical_align 3',
|
||||||
)
|
)
|
||||||
make_bitfield('tools/vt', 'CellColor', 'red 8', 'green 8', 'blue 8', 'is_idx 1')
|
make_bitfield('tools/vt', 'CellColor', 'is_idx 1', 'red 8', 'green 8', 'blue 8')
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# Completions {{{
|
# Completions {{{
|
||||||
|
|||||||
@@ -9,6 +9,6 @@ var _ = fmt.Print
|
|||||||
type Cell struct {
|
type Cell struct {
|
||||||
Ch Ch
|
Ch Ch
|
||||||
Fg, Bg, Dec CellColor
|
Fg, Bg, Dec CellColor
|
||||||
Attrs CellAttrs
|
|
||||||
Mc MultiCell
|
Mc MultiCell
|
||||||
|
Attrs CellAttrs
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user