I'm using python 2.7 and paramiko library. client app running on window sends ssh commands to server app running on linux.
 when I send vi command, I get the response
<-[0m<-[24;2H<-[K<-[24;1H<-[1m~<-[0m<-[25;2H....
 I don't know what these characters mean and how I process it. I'm struggling for hours, please help me.
Reviewing my SO activity this week, saw this opportunity to whore for rep:
Those look like ANSI/VT100 terminal control codes, which suggests that something which thinks it is attached to a terminal is sending them but they are being received by something which doesn't know what to do with them.
Now you can Google for 'VT100 control codes' and learn what you want.
vi command returns error format data?