Skip to content

Mouse not captured on Guacamole web hosted Linux CLI #6098

@fabiocsol

Description

@fabiocsol

I'm trying to deploy a TUI that users will run over Guacamole. Unfortunately the mouse events are not captured.

This is the relevant environment information I get with hostnamectl:

  Virtualization: kvm                                                                                                                                                                                              
Operating System: Oracle Linux Server 9.5                                                                                                                                                                          
          Kernel: Linux 5.15.0-302.167.6.el9uek.x86_64                                                                                                                                                                                                                                                                                                                                                      

This is the python I'm using:

Python 3.9.21 (main, Dec  5 2024, 00:00:00)                                                                                                                                                                        
[GCC 11.5.0 20240719 (Red Hat 11.5.0-2.0.1)] on linux  

This is the basic py script I'm running:

from textual.app import App, ComposeResult
from textual.widgets import Static
from textual.containers import Container
from textual.events import Click

class ClickableText(Static):
    def __init__(self):
        super().__init__("Click me!", id="clickable-text")

    def on_click(self, event: Click) -> None:
        self.update("You clicked me!")

class TextChangeApp(App):
    def compose(self) -> ComposeResult:
        yield Container(ClickableText())

if __name__ == "__main__":
    app = TextChangeApp()
    app.run()

Any hint on why textual is not capturing the mouse click on the web hosted CLI?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions