Remove output start mark from last command output
This commit is contained in:
parent
f085f853bd
commit
5d76cfb578
@ -381,6 +381,10 @@ def cmd_output(screen: Screen, which: CommandOutput = CommandOutput.last_run, as
|
||||
pht = pagerhist(screen, as_ansi, add_wrap_markers, True)
|
||||
if pht:
|
||||
lines.insert(0, pht)
|
||||
for i in range(min(len(lines), 3)):
|
||||
x = lines[i]
|
||||
if x.startswith('\x1b]133;C'):
|
||||
lines[i] = x.partition('\\')[-1]
|
||||
return ''.join(lines)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user