[GH-ISSUE #1011] Text reverted with copy/paste to textfield #730

Open
opened 2026-03-04 01:07:20 +03:00 by kerem · 1 comment
Owner

Originally created by @abennani82 on GitHub (Jul 24, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/1011

Hi,
When we copy/paste text from clipboard to a tview textfield, it is not pasted correctly.
Example, copying ABennani from clipboard can paste naniBAen but never ABennani:

2024-07-24_17-50

Is there any configuration to fix that?

Regards

Originally created by @abennani82 on GitHub (Jul 24, 2024). Original GitHub issue: https://github.com/rivo/tview/issues/1011 Hi, When we copy/paste text from clipboard to a tview textfield, it is not pasted correctly. Example, copying ABennani from clipboard can paste naniBAen but never ABennani: ![2024-07-24_17-50](https://github.com/user-attachments/assets/621c39d2-1175-4669-bb99-089689b13527) Is there any configuration to fix that? Regards
Author
Owner

@rivo commented on GitHub (Jul 24, 2024):

This seems to be an issue with the terminal rather than with tview. I just tried this on macOS with iTerm2 and the Form demo:

image

No issues there. Same result with EnablePaste on or off. Is it turned on for you?

https://pkg.go.dev/github.com/rivo/tview#Application.EnablePaste

What terminal are you using? Have you tried it with a different terminal? If so, are you seeing the same issue?

<!-- gh-comment-id:2248811953 --> @rivo commented on GitHub (Jul 24, 2024): This seems to be an issue with the terminal rather than with `tview`. I just tried this on macOS with iTerm2 and the `Form` demo: <img width="200" alt="image" src="https://github.com/user-attachments/assets/eb398747-800c-484b-a61b-014125b753cb"> No issues there. Same result with `EnablePaste` on or off. Is it turned on for you? https://pkg.go.dev/github.com/rivo/tview#Application.EnablePaste What terminal are you using? Have you tried it with a different terminal? If so, are you seeing the same issue?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#730
No description provided.