Floobits / flootty

A collaborative terminal.
Apache License 2.0
175 stars 25 forks source link

Garbage Output with Vim/Emacs #10

Closed kans closed 11 years ago

kans commented 11 years ago

As reported by @btipling it adds this garbage to the first line of every file that I have to remove: "+q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31" only the first time I opened it

... I have no idea what is causing this.

kans commented 11 years ago

decoding from 2 char hex, we get: ['Co', 'ku', 'kd', 'kr', 'kl', '#2', '#4', '%i', '*7', 'k1'] ...checking against http://www.gnu.org/software/termutils/manual/termcap-1.3/html_mono/termcap.html#SEC37 thats columns, key up, key down, key right, key left, .. Strings of input sent by function keys 1...

from termcap docs: Many terminals have arrow and function keys that transmit specific character sequences to the computer. Since the precise sequences used depend on the terminal, termcap defines capabilities used to say what the sequences are. Unlike most termcap string-valued capabilities, these are not strings of commands to be sent to the terminal, rather strings that are received from the terminal.

kans commented 11 years ago

to round it out

2: shifted home key, #4: shifted cursor left key %i: shifted cusor right key, *7: shifted end key, k1: Function key 1

kans commented 11 years ago

This only happens when I have a web term open.

kans commented 11 years ago

Fixed I believe (on the backend in the js pty).