2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Prune out backspaces

Some utilities backspace prior to printing anything,
prevent such applications from encroaching on the node name space.
This commit is contained in:
Jarrod Johnson 2022-04-19 09:13:18 -04:00
parent f4eec09a41
commit 3297667ef8

View File

@ -162,6 +162,7 @@ def run():
if options.nonodeprefix:
sys.stdout.write(line)
else:
line = line.lstrip('\x08')
sys.stdout.write('{0}: {1}'.format(node, line))
sys.stdout.flush()
if all: