rivo / tview

Terminal UI library with rich, interactive widgets — written in Golang
MIT License
10.67k stars 557 forks source link

Text reverted with copy/paste to textfield #1011

Open abennani82 opened 1 month ago

abennani82 commented 1 month ago

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

rivo commented 1 month ago

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?