Windows paste is truncated
when I try to paste a URL from the clipboard [...] on Windows (win10 x64) it seems to truncate the URL. Similar behaviour using the right mouse click or Edit->paste menu, both of which normally paste OK in other apps.
This was confirmed to be a cview issue, as the same behaviour was exhibited in the simple form demo. Please see this downstream issue for more details and updates.
tcell issue: https://github.com/gdamore/tcell/issues/319
A workaround has been found: https://github.com/rivo/tview/issues/92#issuecomment-670208053
This should be fixed in tcell. Please thumbs-up the issue there to draw more attention.
Thank you for finding those links. Is it possible that workaround can be applied in cview?
I've added the needed function
GetCursorPosition so adding the workaround to your application will not require reflection at least. I will look into adding this workaround to cview with an option to disable it if necessary.
Thanks! Let me know when that's available.
Since you've added
GetCursorPosition, could you help me understand what the workaround function would look like now?
tcell has just fixed this upstream. I hope to release a new version of cview using tcell/v2 soon.
With the added function, you may use it instead of reflection (
cursorPos := ).
Well, that was easy. There was only minor breakage in tcell/v2.
Are you sure? Glad to see it was easy to upgrade, but I'm wary to, as my understanding is that tcell v2 is not stable. Is there anywhere I can read about the differences?
See gdamore's comment:
There will be a following release as well, with support for further control over colors, but this will be in a v2 API because there might be some risk of API breakage (minor but not zero).
Within cview at least, the changes were entirely around Style colors and attributes. Attributes must be set using
cview.SetAttributes and tcell colors are no longer TrueColor by default (you must call
.TrueColor on them).
Deleting a branch is permanent. It CANNOT be undone. Continue?