isamert / scli

a simple terminal user interface for signal messenger (using signal-cli)
GNU General Public License v3.0
448 stars 39 forks source link

Scroll enabled message pane #212

Open ghost opened 1 year ago

ghost commented 1 year ago

For use with touchscreens, but also with the mouse, it would be nice to be able to scroll inside the message pane without having to use the arrow keys

exquo commented 1 year ago

Urwid supports reporting mouse_events, so it should be possible to implement this. Clicking on an element already puts focus on it.

Don't know how the touchscreen events are reported to / handled by urwid.

N.B. A typical user of an app such as scli probably does not want to touch the mouse unless it's absolutely necessary :)

ghost commented 1 year ago

okay so urwid is the UI framework?

my goal is to have a smartphone replacement that runs linux and therefore touch support is ideal (currently using a steamdeck of which i cut away the controller parts - it's basically a mini tablet with the power and usability of a computer)

exquo commented 1 year ago

okay so urwid is the UI framework?

Yes

my goal is to have a smartphone replacement that runs linux and therefore touch support is ideal (currently using a steamdeck of which i cut away the controller parts - it's basically a mini tablet with the power and usability of a computer)

👍 Scli is primarily aimed at the keyboard-driven usage. But if it works with touch-based devices - great!

Just for the record: it is also possible to run signal-desktop, or one of third-party apps, that are better adapted for the mobile form-factor: see https://github.com/isamert/scli/discussions/135#discussioncomment-1249745.

ghost commented 1 year ago

the mouse enabled contact pane also works with touch, which is really great, as can make choosing a chat faster

i want to use TUI/CLI apps whenever possible as they use less ressources and therefore also less power Also i'm a minimalist ^^

(idea is to have everything running on a raspberry pi with a 4" screen, battery and lte module, therefore it needs to be resource efficient)