term.js
term.js copied to clipboard
Switch focus with multiple term.js instance on one page
Hi there, first of all thanks for this great project. I like working with it a lot. Up today I used only one term.js session window per browser tab. I tried to enhance this, to multiple term.js windows in an tabbing widget. This works so far, the instances are created, the data is received. The only issue I have is the focus of the windows. The focus for typing etc. always stays on the last opened window. Is there are a way to handle that?
Would be great to hear some ideas!
+1 There is no way actualy to unbind and rebind event on the window (like paste, copy). You saw the problem in tty.js I think. Thanks
Could you tell me which browser and OS you're using? I've never run into this focus issue.
I use ubuntu 14.04 with Chromium Version 39 About copy/paste, I mistake : it work fine, there is focus method I didn't see (maybe it needs a quick doc about the good API ?). All the screenkeys work great in the example of termjs, but however, I don't know why they don't work in tty.js. Thanks