I am using putty to SSH into a mac, if I try to edit a file with pico, nano or vi I get an output similar to this:
[username]$ pico textEdit.txt ←)0←7←[?47h←[1;24r←[m←[4l←[?1h←=←[?1h←=←[?1h←=←[?1h←=←[H←[2J←[22B←[7m^G←[m Get Help ←[7m^O←[m Write ←[1B←[7m^X←[m Exit←[6C←[7m^J←[m Justify ←[7m^W←[m Where Is ←[7m^V←[m Next Page ←[7m^U←[m UnCut Tx t ←[7m^T←[m To Spell ←[22;35H←[7m[ New File ]←[m←[H←[7m GNU nano 1.2.4 File: textEdit.txt ←[1;52H←[m
Are there any settings I can change for either putty or my command prompt to allow a correct display of the output? (I haven't found any)
EDIT: I use plink to open the tunnel, if I open putty the regular way it works just fine
I have seen many solutions of using GUI editors over putty but I'd rather use a shell based editor for quick edits.