style: remove firehose opaque row backdrop and background color
This commit is contained in:
@@ -15,7 +15,7 @@ from engine.render import big_wrap, lr_gradient, make_block
|
||||
from engine.effects import noise, glitch_bar, fade_line, vis_trunc, next_headline, firehose_line
|
||||
|
||||
_ANSI_LINE_RE = re.compile(r"^(\033\[[0-9;]*m)(.*)(\033\[0m)$")
|
||||
FIREHOSE_BG = "\033[48;5;233m"
|
||||
FIREHOSE_BG = ""
|
||||
|
||||
|
||||
def _overlay_segments(ansi_line, bg=""):
|
||||
@@ -227,8 +227,6 @@ def stream(items, ntfy_poller, mic_monitor):
|
||||
scr_row = firehose_top + fr + 1
|
||||
if scr_row <= msg_h or scr_row > h:
|
||||
continue
|
||||
# Opaque row backdrop to distinguish firehose from ticker beneath it.
|
||||
buf.append(f"\033[{scr_row};1H{FIREHOSE_BG}{' ' * w}{RST}")
|
||||
for col, chunk in _overlay_segments(fline, FIREHOSE_BG):
|
||||
buf.append(f"\033[{scr_row};{col}H{chunk}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user