Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasting into Input not working #4966

Closed
Pooky12332 opened this issue Sep 5, 2024 · 5 comments
Closed

Pasting into Input not working #4966

Pooky12332 opened this issue Sep 5, 2024 · 5 comments

Comments

@Pooky12332
Copy link

Pooky12332 commented Sep 5, 2024

Currently, When trying to paste into an Input widget results in no change at all.
This is universal regardless of the project or file

The code im using to test is

from textual.app import App, ComposeResult
from textual.widgets import Input

class InputApp(App):
    def compose(self) -> ComposeResult:
        yield Input()

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

Diagnose command:

# Textual Diagnostics

## Versions

| Name    | Value  |
|---------|--------|
| Textual | 0.79.1 |
| Rich    | 13.8.0 |

## Python

| Name           | Value                                                            |
|----------------|------------------------------------------------------------------|
| Version        | 3.10.1                                                           |
| Implementation | CPython                                                          |
| Compiler       | MSC v.1929 64 bit (AMD64)                                        |
| Executable     | C:\Users\User\AppData\Local\Programs\Python\Python310\python.exe |

## Operating System

| Name    | Value      |
|---------|------------|
| System  | Windows    |
| Release | 10         |
| Version | 10.0.19045 |

## Terminal

| Name                 | Value     |
|----------------------|-----------|
| Terminal Application | *Unknown* |
| TERM                 | *Not set* |
| COLORTERM            | *Not set* |
| FORCE_COLOR          | *Not set* |
| NO_COLOR             | *Not set* |

## Rich Console options

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

github-actions bot commented Sep 5, 2024

We found the following entries in the FAQ which you may find helpful:

Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.

This is an automated reply, generated by FAQtory

@darrenburns
Copy link
Member

I can't reproduce this on my end. Which terminal are you using?

@Pooky12332
Copy link
Author

Using CMD on windows 10, doesn't work on both my desktop and my laptop.
When pressing right click or pressing ctrl+p, the cursor does restart its flashing animation but no input

@darrenburns
Copy link
Member

Thanks. This is just down to your terminal being pretty old and not supporting some Textual features. We recommend installing Windows Terminal for the best experience on Windows:

https://apps.microsoft.com/detail/9n0dx20hk701?ocid=webpdpshare

If you decide to install it and hit any bumps, feel free to open a new issue!

@darrenburns darrenburns closed this as not planned Won't fix, can't repro, duplicate, stale Sep 5, 2024
Copy link

github-actions bot commented Sep 5, 2024

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants