ftpiiu_plugin/delog.py

10 lines
181 B
Python
Raw Normal View History

2017-07-26 04:55:16 +02:00
#!/usr/bin/env python
import sys
import re
if __name__ == '__main__':
regex = re.compile('\x1b\[[0-9]*;[0-9]*H')
for line in sys.stdin:
print(regex.sub('', line).strip())