rivo / tview

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

Text reverted with copy/paste to textfield #1011

Open abennani82 opened 4 months ago

abennani82 commented 4 months 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 4 months 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?