Networking-Forums.com

Professional Discussions => Programming Goodies and Software-Defined Networking => Topic started by: wintermute000 on March 12, 2015, 06:34:00 PM

Title: formatting terminal output in python
Post by: wintermute000 on March 12, 2015, 06:34:00 PM
Has anybody come across a good way/library etc. used to handle terminal outputs in python?


Depending on whether I'm using say exscript or paramiko and depending on the device for example I get outputs with \r, \n\r, \\n\\r etc/


Currently I'm manually using split and functions like that to format the output but surely there must be some standard library or method available to handle this (maybe set the terminal type/encoding etc.)?