Skip to content

Textual in docker containers #5231

@gabriele-costa

Description

@gabriele-costa

When running Textual apps in docker containers strange characters appear on screen.

Minimal Dockerfile to reproduce

FROM python:3.9-slim

RUN pip install textual textual-dev

COPY main.py main.py

CMD ["python3", "main.py"]

Where main.py contains

from textual.app import App
from textual.widgets import Button

class Test(App):
    def compose(self):
        yield Button("Hi")

if __name__ == "__main__":
    Test().run()

When moving the mouse pointer over the terminal, numbers appear. They seem like screen coordinates.

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