mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-09 23:34:26 +00:00
Don't translate input
When `send-encoding` is `utf-8`, hterm translate input from the clipboard from UTF-16 to UTF-8, even when the input is indeed UTF-8. This translation messes up all non ASCII input.
This commit is contained in:
parent
d4475579ff
commit
783e3fd925
@ -71,7 +71,7 @@ func (fi bindataFileInfo) Sys() interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
var _staticGottyJs = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x94\x55\xc1\x6e\x1a\x31\x10\xbd\xe7\x2b\xac\xbd\xe0\x6d\xa9\x03\xad\xd4\x03\x88\xf6\x10\xa5\x87\xb6\x6a\xaa\x40\x9b\x43\x94\x83\xf1\x0e\xe0\x62\x6c\x64\x7b\xb3\xa2\x15\xff\xde\xf1\xb2\xc0\xb2\x78\x83\xe2\x03\x5a\x3c\x6f\xde\xcc\x1b\xcf\xd8\x74\x96\x6b\xe1\xa5\xd1\x34\x25\xff\xae\x08\xae\x67\x6e\xc9\xc2\xfb\xb5\xbb\xd5\x7c\xaa\x20\x23\x23\x52\x48\x9d\x99\x82\x29\x23\x78\x80\xb2\xb5\x35\xde\x08\xa3\xc8\x68\x44\x92\x12\x3b\x48\x86\x07\xe7\xdc\xa2\x81\xd0\x13\x8e\xcf\xa4\x53\x38\x37\xb8\xbe\xee\x90\x41\xf8\x0c\x5f\x29\x79\x7b\xc6\xbc\x30\xce\x47\xb6\xd7\xdc\x2f\x34\x5f\x01\x9a\xd0\xb9\x73\x8c\xb5\xcf\xc4\x61\xc4\xc7\x64\x6e\xbc\xdf\x24\x4f\x47\x33\xcf\xbd\xb9\x07\x61\xb4\x06\xe1\x11\xf2\xae\x3f\xbc\x3a\x18\xcd\x1a\xf4\x43\x70\x3c\x2b\xc1\x1e\x51\x04\xab\x86\x82\x3c\xc0\x74\x6c\xc4\x12\x3c\x45\x71\xdd\x63\xd4\xb4\xa2\xdb\x3b\x78\xb0\xab\xda\x56\xe1\x98\xd1\x21\x4c\x3d\x08\x3c\x83\xf6\xf5\x48\x61\x2d\x82\x27\xcb\x60\xc6\x73\xe5\xc7\xde\x58\x3e\x87\x2a\xb6\x92\x53\x56\xed\xb0\xef\x58\x10\x45\xd3\xe1\x45\x5f\x26\x14\x70\x4b\xeb\xf9\x85\x15\x90\x15\xed\xce\x6b\x82\x3f\x52\xef\x38\xcf\x90\x98\xfc\xde\x7e\x0f\x3c\xdb\xb4\x95\xaa\x5e\x01\x69\x10\x55\x3a\x4b\xc3\xd6\xb9\x5b\x9c\x31\x87\x85\x36\xa3\x7f\x4f\xbe\xc1\xc6\x79\x6b\x96\x50\x67\xc6\x9d\x18\x79\x55\x4f\x07\x3a\xa3\x49\x2f\xc1\x4e\x08\xc0\xe1\x19\x6e\x1b\x0f\x17\xfc\xc6\xde\x4a\x3d\xc7\x58\xcd\xf0\x6d\x19\x1e\xd5\x3b\xf9\xf7\x24\x49\x3c\xfc\x7c\xa5\x5d\x97\x58\x53\xb8\x4b\xe9\x46\x8d\x61\x25\xfd\xa0\xe3\xeb\xf8\xee\x07\x73\x65\x6e\x72\xb6\x69\x47\x87\x15\x0f\x54\x5f\x55\x66\x83\xfd\x47\xf7\xa2\x47\x90\x30\x28\x7f\x5f\xc6\x6e\x5b\xad\x69\xd4\x72\xbe\x1b\x3b\x9b\x5d\xaf\x68\xe7\xb9\x52\x78\x20\x53\xc3\x6d\xd6\xec\xf0\xa6\x5f\xd5\xf0\x02\x5b\xdd\x03\xcd\x8c\xc8\x57\x38\x53\x6c\x6a\xb2\x4d\xcd\x73\xdb\x9c\xc4\x15\x38\xb7\x9b\xab\x97\x87\x31\xe3\x9e\x23\xa8\xb4\xb1\xf0\x87\x39\x25\x05\xd0\x7e\x23\x2d\x57\x48\x2f\x16\xf4\x88\x7b\xec\x3d\x35\xb9\x04\x77\x40\x3a\xbd\xce\xa0\x45\xb8\x61\x85\x95\x1e\x7e\x4d\xbe\xf4\x3f\xd2\xc0\x11\x69\xe9\xa9\x05\xbe\x1c\x46\x68\xfb\x6d\xb4\x0e\xfc\x43\x79\x85\x4e\xa4\x57\xf0\x6a\xde\xf7\x11\xde\xb5\x85\x19\x58\xd0\x02\xc2\xa5\x58\xf6\xec\x9a\x5b\xd7\x4a\x7e\x37\xfd\x83\x77\x2e\x5b\xe2\x8c\xd1\x9a\x6f\xca\x66\xc6\xde\x72\x2c\xdb\xe1\x0c\x10\xd2\x36\x41\xa5\x98\x39\xf8\x9f\x48\xe0\x68\x1a\x74\x05\x78\xb7\x9e\xcd\x23\x6e\x3c\xc5\x2e\x82\xd7\x28\xfe\x10\x51\xdc\x7c\x3c\x2e\x6b\x8e\xd0\x1f\x87\x66\xdb\xe8\x46\xa1\x8c\xbb\xdc\x8b\x72\x46\x68\xa8\x42\xac\x42\x65\x75\x72\x7d\x61\x78\x0e\xc8\x70\x0b\x2e\x4c\x71\xf7\x0c\x56\xf1\x0d\x4d\x6e\x76\xca\x30\x34\xb9\x09\xb9\x64\x49\x97\xe8\x5c\xa9\xe6\xf0\x9d\x8e\x9e\xdd\x1c\x6a\x52\x8f\xd4\x54\x07\xd6\x1a\x7b\xa2\x2e\x6c\x34\x55\xb4\xb3\xd5\x38\x77\xef\xf4\xe1\x1d\x29\xdf\xd9\x9a\x5f\xdb\xab\x14\x2a\x77\x7a\x84\x9f\x46\xa4\xd7\xcc\x00\x3b\x6a\x22\x57\x60\x72\x4f\x77\x71\xba\x8d\x73\x7f\x43\xfa\xbd\x5e\x2f\x92\xdb\x36\xa5\xe9\xd5\xff\x00\x00\x00\xff\xff\x1e\x3d\x0c\xe8\x3f\x09\x00\x00")
|
||||
var _staticGottyJs = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x94\x55\x4d\x6f\x22\x39\x10\xbd\xe7\x57\x58\x7d\xc1\xbd\x4b\x1c\xd8\x95\xf6\x00\x62\xf7\x10\x65\x0f\xbb\xa3\xc9\x28\x30\x93\x43\x94\x83\xe9\x2e\xc0\x83\x71\x21\xdb\x9d\x16\x33\xe2\xbf\x4f\xb9\xf9\x6a\x1a\x77\x50\x7c\x40\x8d\xeb\xbd\x57\x1f\x76\x95\xf9\xac\x30\x99\x57\x68\x78\xca\x7e\xde\x30\x5a\x6f\xd2\xb2\x85\xf7\x6b\xf7\x60\xe4\x54\x43\xce\x46\xac\x54\x26\xc7\x52\x68\xcc\x64\x80\x8a\xb5\x45\x8f\x19\x6a\x36\x1a\xb1\xa4\xc2\x0e\x92\xe1\x91\x5c\x58\x32\x30\x7e\xa6\xf1\x0f\xeb\x94\xce\x0d\xee\xee\x3a\x6c\x10\x3e\xc3\x57\xca\x7e\xbf\x50\x5e\xa0\xf3\x91\xed\xb5\xf4\x0b\x23\x57\x40\x26\x22\x77\x4e\xbe\x0e\x91\x38\xf2\xf8\x92\xcc\xd1\xfb\x4d\xf2\x7a\x32\xcb\xc2\xe3\x13\x64\x68\x0c\x64\x9e\x20\xb7\xfd\xe1\xcd\xd1\x88\x6b\x30\xcf\x81\x78\x51\x82\x03\xa2\x0c\x56\x03\x25\x7b\x86\xe9\x18\xb3\x25\x78\x4e\xc9\x75\x4f\x5e\xd3\xbd\xdc\x81\xe0\xc1\xae\x6a\x5b\xa5\x13\x68\x82\x9b\xba\x13\x78\x03\xe3\xeb\x9e\xc2\x5a\x04\xa6\xc8\x61\x26\x0b\xed\xc7\x1e\xad\x9c\xc3\xde\xb7\x56\x53\xb1\xdf\x11\x9f\xa8\x20\x9a\xa7\xc3\xab\x5c\x91\x69\x90\x96\xd7\xe3\x0b\x2b\x20\xf7\xb2\x3b\xd6\x84\x7e\x94\xd9\x69\x5e\x20\xc5\x1c\xfc\x17\x0b\x33\xc7\x53\xe1\x28\xf7\xc4\x81\xc9\x6f\xc1\x64\x98\x2b\x33\x4f\xba\x2c\xb1\xb2\x4c\xa2\x4c\x34\x07\xe5\x27\x90\xf9\xa6\xad\xc8\xf5\xda\x29\x24\x54\x45\x56\x28\xd6\x85\x5b\x5c\xc4\x14\x16\xd9\xd0\x7c\x9b\xfc\x0f\x1b\xe7\x2d\x2e\xa1\xae\x4c\x3b\x31\xf1\xfd\x49\x84\xe0\x79\xd2\x4b\xe8\x0e\x05\xe0\xf0\x02\xb7\x8d\xbb\x0b\xbc\xb1\xb7\x94\x31\xf9\x6a\xba\x6f\x8b\xf0\x94\xbd\x53\x3f\xce\x82\xa4\x6b\x53\xac\x8c\xeb\x32\x8b\xa5\xbb\x16\x6e\xd4\x18\x56\xd2\x0f\x79\xfc\x37\x7e\xfc\x2c\x5c\x15\x9b\x9a\x6d\xda\xd1\x61\xc5\x1d\xd5\xd7\x3e\xb2\xc1\xe1\xa3\x7b\x95\x11\x52\x18\x54\xbf\xef\x63\xb7\xad\xd6\x34\x6a\xb9\xdc\x8d\x9d\xcd\xee\xae\x18\xe7\xa5\xd6\x74\x20\x53\x94\x36\x6f\xf6\x46\x93\xb7\x6f\x95\x8c\x9a\xc4\x03\xcf\x31\x2b\x56\xd4\x8d\x62\x8a\xf9\xa6\xc6\xdc\x36\x7b\x78\x05\xce\xed\x3a\xf2\xfd\x36\xce\xa5\x97\x04\xaa\x6c\x22\xfc\x11\x4e\xab\x0c\x78\xbf\x11\x96\x2b\x95\xcf\x16\xfc\x84\x7b\xe9\xbd\x36\xb5\x32\xe9\x80\x75\x7a\x9d\x41\x4b\xe2\x28\x4a\xab\x3c\x7c\x9d\xfc\xdb\xff\x8b\x07\x8d\xc8\x95\x9e\x5a\x90\xcb\x61\x44\xb6\xdf\x26\x4b\x7d\xfe\x5c\x0d\xdf\x89\xf2\x1a\x3e\xac\xfb\x47\x44\x77\x4d\x23\x04\x2c\x8d\x0d\x08\xe3\xb4\xba\xb3\x6b\x69\x5d\xab\xf8\xe3\xf4\x3b\x4d\x6b\xb1\xa4\x1e\xe3\x35\x6e\x2a\x66\x68\x1f\x24\x95\xed\x78\x06\x04\x69\xeb\xa0\xd8\xfc\x22\x78\xb7\x1e\xcd\x0b\x6d\xbc\xc6\x06\xc1\x47\x32\xfe\x33\x92\x71\xf3\xd9\xb9\x9e\x73\x44\xfe\xd4\x34\xdb\xc6\x6d\xcc\x34\xba\xeb\x77\x51\xcd\x18\x0f\x55\x88\x55\xa8\xaa\x4e\x61\xae\x34\xcf\x11\x19\xa6\xe0\x02\xcb\xc7\x37\xb0\x5a\x6e\x78\x72\xbf\xcb\x8c\x5c\xb3\xfb\x10\x4b\x4e\x6f\x81\x29\xb4\x6e\x36\xdf\x79\xeb\xd9\xcd\xb1\x26\x75\x4f\xcd\xec\xc0\x5a\xb4\x67\xd9\x85\x8d\x66\x16\xed\x6a\x35\xcd\xdd\x0b\x7f\x7c\x47\xaa\x17\xba\xc6\x6b\x7b\x95\x42\xe5\xce\x8f\xf0\xef\x11\xeb\x35\x23\xa0\x1b\x35\x51\x2b\xc0\xc2\xf3\x9d\x9f\x6e\xe3\xdc\x7f\x63\xfd\x5e\xaf\x17\x89\x6d\x9b\xf2\xf4\xe6\x57\x00\x00\x00\xff\xff\x62\xbe\x33\xca\x79\x09\x00\x00")
|
||||
|
||||
func staticGottyJsBytes() ([]byte, error) {
|
||||
return bindataRead(
|
||||
@ -86,7 +86,7 @@ func staticGottyJs() (*asset, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
info := bindataFileInfo{name: "static/gotty.js", size: 2367, mode: os.FileMode(436), modTime: time.Unix(1440367388, 0)}
|
||||
info := bindataFileInfo{name: "static/gotty.js", size: 2425, mode: os.FileMode(436), modTime: time.Unix(1440469303, 0)}
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
return a, nil
|
||||
}
|
||||
|
@ -15,6 +15,8 @@
|
||||
|
||||
term = new hterm.Terminal();
|
||||
|
||||
term.getPrefs().set("send-encoding", "raw");
|
||||
|
||||
term.onTerminalReady = function() {
|
||||
var io = term.io.push();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user