-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 3.2.3 space key does not work on Mac+Safari #169
Comments
@PeterCxy any idea? |
For some reason your space key seems to send non breaking space ('\xa0') instead of space (' '), which is why it does not work. As for why though... |
Do this happen only when IME is active? Or is it happening regardless of the IME status? |
It's because of |
C2A0 (oct \302\240) is UTF-8 NO-BREAK SPACE. |
I do not use IME on Mac. |
Since I do not have any macOS device to test this, I think I'm going to leave for anybody who could do a test... Although it might be as simple as adding |
Me neither |
I tried warp="off", but it's nothing changes. [D 180706 10:48:06 terminal:299] WRIT<u'\xa0' Version 3.2.2 is diff` --git a/butterfly/templates/index.html b/butterfly/templates/index.html index eca7e00..f71e390 100644 --- a/butterfly/templates/index.html +++ b/butterfly/templates/index.html @@ -18,7 +18,7 @@ data-force-unicode-width="{{ 'yes' if options.force_unicode_width else 'no' }}" data-root-path="{{ options.uri_root_path }}" data-session-token={{ session }}> - <textarea id="input-helper"> + <textarea id="input-helper" wrap="off"> </textarea> |
I think this issue is only about Japanese-Mac-default installed IME. diff --git a/butterfly/terminal.py b/butterfly/terminal.py index fb2be29..d090182 100644 --- a/butterfly/terminal.py +++ b/butterfly/terminal.py @@ -297,6 +297,8 @@ class Terminal(object): self.close() log.debug('WRIT<%r' % message) + if message == u'\xa0': + message = u' ' self.writer.write(message) self.writer.flush() |
Glad you adapted it for your use, but I can't merge this patch since there are some times when you want to input an unbreakable space. |
OK, no problem. |
Butterfly version 3.2.3, space key does not work on Mac+Safari.
MacOS: High Sierra varsion 10.13.4
Safari: version 11.1
example : type "ls -la" then
[D 180704 10:57:29 terminal:299] WRIT<u'l'
[D 180704 10:57:29 terminal:318] READ>'l'
[D 180704 10:57:29 terminal:299] WRIT<u's'
[D 180704 10:57:29 terminal:318] READ>'s'
[D 180704 10:57:29 terminal:299] WRIT<u'\xa0'
[D 180704 10:57:29 terminal:318] READ>'\xc2\xa0'
[D 180704 10:57:29 terminal:299] WRIT<u'-'
[D 180704 10:57:29 terminal:318] READ>'-'
[D 180704 10:57:31 terminal:299] WRIT<u'l'
[D 180704 10:57:31 terminal:318] READ>'l'
[D 180704 10:57:32 terminal:299] WRIT<u'a'
[D 180704 10:57:32 terminal:318] READ>'a'
[D 180704 10:57:32 terminal:299] WRIT<u'\r'
[D 180704 10:57:32 terminal:318] READ>'\r\n'
[D 180704 10:57:32 terminal:318] READ>"-bash: $'ls\302\240-la': command not found\r\n\x1b]
version 3.2.2 is OK. but can not use IME and CJK.
firefox , chrome version 3.2.3 is OK.
In case of IPAD mini version 3.2.3 then one key type echo 2 times.
Example: if type "k" then "kk" echoed.
The text was updated successfully, but these errors were encountered: