sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.17k stars 216 forks source link

iPadOS: cannot switch to using xtermjs, because can't copy from terminal #5067

Open williamstein opened 3 years ago

williamstein commented 3 years ago
  1. Open a cocalc terminal in Safari on an ipad running iPadOS
  2. Try to copy from it:
    • If you are using the screen and your finger you can't even select text to copy in the first place
    • If you are using an external mouse (a cool feature of iPadOS), then you can nicely select. However, there is usually no way to copy. Sometimes, randomly, the copy button appears in the lower left and works, but usually it doesn't.

Note that Safari on ipad now is identified as a desktop browser, so we get the new moderm frame-aware xterm.js rather than the old fallback ancient xterm.js. If you try to use Google Chrome on an ipad, it actually does still identify as the old mobile safari and you get the ancient xterm.js.

NOTE: This is really an issue with xterm.js (upstream) not supporting ipads, not with something specific to cocalc. It's possible one of the 3 (?) xterm.js renderers might work -- I just tried whatever the current cocalc default is and what the default is at xtermjs.org.

williamstein commented 3 years ago

NOTE: I fixed iPad detection, and now this bug is invalid as is, because the iPad uses the ancient xtermjs which does support copy/paste. So it's a bit unclear what to do.

williamstein commented 2 years ago

I finally at least created https://github.com/xtermjs/xterm.js/issues/3727, which is an upstream ticket.

You can test out xterm.js on cocalc on an ipad by making a file with the extension .term2.