Skip to content

Cursor missing when clicking in Text Area #6195

@turkishmaid

Description

@turkishmaid

✅ Have you checked closed issues? (https://github.com/Textualize/textual/issues?q=is%3Aissue+is%3Aclosed)

✅ Have you checked against the most recent version of Textual? (https://pypi.org/search/?q=textual)

Consider discussions!

✅ Issues are for actionable items only.
If Textual crashes or ✅ behaves differently from the docs, then submit an issue.
If you want to know how to do something, or you have a suggestion for a new feature, then open a discussion (https://github.com/Textualize/textual/discussions/).

For realtime help, join our discord server (https://discord.gg/Enf6Z3qhVr)

The bug

👉 MVE: https://github.com/turkishmaid/testarea

Click in the first line of the TextArea. Cursor appears. Move around with arrow keys. Works fine.

Click further down in the Textarea. No cursor. Use right arrow. Cursor appears. Use left arrow. Cursor is gone. Use left arrow again. Cursor is back. But whatever you naviagte from now on, be it by click or by arrow key: Any character where you click is cursed: No cursor at this position anymore. Except it is in the very beginning of the text.

✅ It will be helpful if you run the following command and paste the results:

<!-- This is valid Markdown, please paste the following directly in to a GitHub issue -->
# Textual Diagnostics

## Versions

| Name    | Value  |
|---------|--------|
| Textual | 6.4.0  |
| Rich    | 14.2.0 |

## Python

| Name           | Value                                                                |
|----------------|----------------------------------------------------------------------|
| Version        | 3.13.7                                                               |
| Implementation | CPython                                                              |
| Compiler       | Clang 17.0.0 (clang-1700.0.13.3)                                     |
| Executable     | ~/clonezoo/github/turkishmaid/testarea/venv/bin/python3.13

## Operating System

| Name    | Value                                                                                                  |
|---------|--------------------------------------------------------------------------------------------------------|
| System  | Darwin                                                                                                 |
| Release | 24.5.0                                                                                                 |
| Version | Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:26 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T8112 |

## Terminal

| Name                 | Value            |
|----------------------|------------------|
| Terminal Application | vscode (1.105.1) |
| TERM                 | xterm-256color   |
| COLORTERM            | truecolor        |
| FORCE_COLOR          | *Not set*        |
| NO_COLOR             | *Not set*        |

## Rich Console options

| Name           | Value                |
|----------------|----------------------|
| size           | width=101, height=15 |
| legacy_windows | False                |
| min_width      | 1                    |
| max_width      | 101                  |
| is_terminal    | True                 |
| encoding       | utf-8                |
| max_height     | 15                   |
| justify        | None                 |
| overflow       | None                 |
| no_wrap        | False                |
| highlight      | None                 |
| markup         | None                 |
| height         | None                 |

If you don't have the textual command on your path, you may have forgotten to install the textual-dev package.

Feel free to add screenshots and / or videos. These can be very helpful!

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