gansm / finalcut

A text-based widget toolkit
https://github.com/gansm/finalcut/wiki/First-steps#first-steps-with-the-final-cut-widget-toolkit
GNU Lesser General Public License v3.0
968 stars 51 forks source link

Make it work on touchscreens #127

Open pizdjuk opened 1 year ago

pizdjuk commented 1 year ago

It would be cool if the toolkit worked on touch devices. Especially scrolling. Right now it is not possible to scroll doing finger swipes. For testing use scrollview from examples.

gansm commented 1 year ago

Unfortunately, I don't have a touchscreen to test that. I don't know if a terminal can send swipe gestures in processable escape sequences via stdin. But maybe I'm wrong about that.

What I do support is scrolling with the mouse wheel. Maybe some terminals can convert swipe gestures to mouse wheel input.

gansm commented 1 year ago

Hi, I just added support for right and left scrolling with the mouse (3dbdeee). But it seems that this feature is only implemented in xterm at the moment.

pizdjuk commented 1 year ago

Cool! I will test it! BTW, does the toolkit work in wayland natively?

gansm commented 1 year ago

FINAL CUT has a text-based user interface that runs on any text terminal like vt100 or a terminal emulator like xterm, gnome-terminal, or alacrity. Depending on the capabilities of your terminal, more or less features like color, underlining, or mouse support are available. FINAL CUT does not know on which computer (local or remote), in which environment, or even on which operating system the display occurs.