ftpiiu_plugin/delog.py
2017-07-25 21:55:16 -05:00

10 lines
181 B
Python
Executable File

#!/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())