mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-02-01 04:24:32 +01:00
committed by
Michel Oosterhof
parent
8c5c0d7201
commit
cd62bfe191
@@ -62,10 +62,17 @@ def playlog(fd, settings):
|
||||
if settings['colorify'] and color:
|
||||
sys.stdout.write(color)
|
||||
|
||||
# rtrox: While playback works properly
|
||||
# with the asciinema client, upload
|
||||
# causes mangling of the data due to
|
||||
# newlines being misinterpreted without
|
||||
# carriage returns.
|
||||
data = data.replace("\n", "\r\n")
|
||||
|
||||
thedata = [sleeptime, data]
|
||||
thelog['duration'] = curtime
|
||||
stdout.append(thedata)
|
||||
|
||||
|
||||
if settings['colorify'] and color:
|
||||
sys.stdout.write(COLOR_RESET)
|
||||
color = None
|
||||
|
||||
Reference in New Issue
Block a user