|
|
Subscribe / Log in / New account

Hacking the planet with Notcurses

Hacking the planet with Notcurses

Posted Mar 19, 2020 22:20 UTC (Thu) by ballombe (subscriber, #9523)
Parent article: Hacking the planet with Notcurses

For the readers that would like to use the mouse under the Linux console, I can offer some consolation.


to post comments

Hacking the planet with Notcurses

Posted Mar 20, 2020 9:55 UTC (Fri) by LtWorf (subscriber, #124958) [Link] (9 responses)

Si is it like gpm?

Hacking the planet with Notcurses

Posted Mar 20, 2020 11:10 UTC (Fri) by ballombe (subscriber, #9523) [Link] (8 responses)

Yes, except it uses the libinput library which is used by X.org and Wayland, so it supports the same devices.

Hacking the planet with Notcurses

Posted Mar 20, 2020 18:21 UTC (Fri) by fman (subscriber, #121579) [Link] (5 responses)

One would think the mouse should be handled via the terminal. As in vim, htop etc. Sounds pretty strange with gpm..

Hacking the planet with Notcurses

Posted Mar 20, 2020 23:12 UTC (Fri) by zlynx (guest, #2285) [Link] (4 responses)

The terminal code inside the kernel is messy enough already. It's kind of like having a web server in there.

I forget the project name, but a while ago there was a project to rip out the kernel console support and replace it with a user-space app. I guess it hasn't gone anywhere.

Hacking the planet with Notcurses

Posted Mar 21, 2020 0:21 UTC (Sat) by ballombe (subscriber, #9523) [Link]

At least it would be nice if copy-pasting could be done without using the TIOCLINUX ioctl;
To start with, /dev/vcsa* should be mmapable.

Hacking the planet with Notcurses

Posted Mar 21, 2020 1:46 UTC (Sat) by flussence (guest, #85566) [Link] (2 responses)

That would be kmscon. Its upstream is stone dead, and back when it was alive it felt a bit flaky. It was nice to play around with truetype fonts and full-colour on a VT for a while though.

There's kconfig options to rip out the built-in terminal emulation from the framebuffer system entirely (which weren't actually around when kmscon was a thing - I'm not sure what prompted them), but then you're reliant on wayland/X/sshd/serial working 100% of the time. Personally I have trouble keeping them above five-nines…

Hacking the planet with Notcurses

Posted Mar 21, 2020 12:05 UTC (Sat) by dezgeg (subscriber, #92243) [Link]

ChromeOS has frecon, not sure how reusable it is in general distros...

Hacking the planet with Notcurses

Posted Mar 22, 2020 13:37 UTC (Sun) by HelloWorld (guest, #56129) [Link]

There was also systemd-consoled. However it was ripped out of systemd when the original developer stopped working on it and nobody else stopped up.

Hacking the planet with Notcurses

Posted Apr 1, 2020 12:08 UTC (Wed) by mgedmin (subscriber, #34497) [Link] (1 responses)

AFAIU consolation only implements copy/paste, but doesn't provide any API for terminal applications, unlike gpm (or xterm).

Hacking the planet with Notcurses

Posted Apr 2, 2020 21:21 UTC (Thu) by jwilk (subscriber, #63328) [Link]

Mouse reporting was added in 0.0.7: https://bugs.debian.org/923181
Beware there's apparently no way to opt out from this "feature".
I switched back to gpm, which just works.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds