Blink: Mouse controls

Created on 19 Nov 2017  Â·  15Comments  Â·  Source: blinksh/blink

Hi,
I love your app! brings me a real terminal to my iPad :-)
I often use MOSH to cope with limited bandwidth and frequent interrupts in our mobile networks and have tmux running on my server. tmux splits the screen in multiple panels and one can enable mouse control to use the mouse to select the currently active panel. However, this does not work via blink. Is there anything special in mouse controls? Or can I do anything to makes this work?
Thanks
Nils

feature

Most helpful comment

Mouse controls for Blink, whether on tmux or other apps is a must. Changing the title.

All 15 comments

Mouse controls for Blink, whether on tmux or other apps is a must. Changing the title.

Yes, it would be a great to have feature. Especially with tmux scrolling with mouse mode on.

Mouse controls would be fantastic for the Micro Text Editor https://github.com/zyedidia/micro

I just wanted to ask whether there are any plans on this feature. Any idea whether/when it will be implemented?

Basic touch reports are in testing now (TestFlight). And we hope will be released in a week or so.

We are currently limited to clicks. So tmux panel selection is working. But selecting text and scrolling are tricky to implement, because they conflicting with general scroll and text selection. We can’t figure out the best way to do it yet.

If you have any suggestions, please share.

Great to hear that!
For scrolling I would think that a two finger swipe could help to figure out whether the user wants to scroll within the terminal or the application. But I have no idea, how I would implement the text selection part. For me it would be OK if I would be required to double-click with two fingers or so before I can actually select text within a terminal. But I'm not sure whether this is really intuitive.

Two thinger swipe is for kb dismiss and control panel. Also two fingers tap open new session. Also two fingers drag sometimes conficts with zoom. So we should find better solution.

I see. Seems to be really tricky, what about a “catch mode” similar to how Parallels or VirtualBox work. As long as I’m caught in the terminal, all mouse gestures go to the terminal. If I want to control the app, I have to release the mode first (e.g. by the use of a certain gesture or button). Definitely less intuitive but could work.

“Catch mode” could be interesting, that would allow you to use familiar gestures for scrolling (one/two fingers) without interferring with the rest of the app. Failing that even just a 3 finger scroll would be ok with me and just scroll whatever pane has focus. Personally tmux scrolling is more important than selection, I’m quite happy just making a panel fullscreen and selecting text using the normal methods.

What about this way?

https://youtu.be/UZLjhSPsIVY

Need to find a way to do that with hardware kb..

Not bad :-) Can I also click in to the separate windows to set the focus for the cursor to them?

@nils-tekampe you can do that in current version already. Just tap on the pane you need to focus on.

Great to hear. I stopped using blinksh after I learned that his was not working in the version that I tried at this time. Will give it a try later!

It seems that this issue and #119 #566 #584 are all about the mouse scroll support. Which one should we use to track the progress?

Hi I have mouse clicks working with this in VIM (set mouse=a). I am wondering if a meta key for scrolling was ever decided on? Can't seem to locate anything.....

Editing now:

I just added:

set mouse=a " tell vim to recognize mouse commands in "all" modes
set ttymouse=xterm2 " tell vim you're using xterm, this isn't necessary but I believe improves performance
set ttyfast " improve fluidity of mouse commands, this isn't necessary but I believe improves performance
set paste " don't mess up the indenting of pasted text
vmap "+y " map ctrl-c to copy a block of text selected by the mouse

To my .vimrc and can two finger scroll in files and file browser. Thanks a million blink.sh team!!

Was this page helpful?
0 / 5 - 0 ratings