termui icon indicating copy to clipboard operation
termui copied to clipboard

Mac: Can't select text in any term window after running a termui app for a while

Open philpearl opened this issue 10 years ago • 1 comments

I've written a new app using termui, which is marvellous. Unfortunately I've found that I can't select text with the mouse in any terminal window after running termui for a while. This has happened to two people so far, both using Macs. The problem doesn't disappear when the app is terminated - you need to quit out of term and restart.

Any ideas? What information can I give you?

philpearl avatar Nov 20 '15 12:11 philpearl

It looks like the problem only happens when you try to copy text from the termui application, but doesn't happen reliably every time. As far as I can tell there are no termui events generated for the "select text and copy" process, so this is all a bit mysterious.

I'm beginning to suspect it may be to do with calling termui.Render() at just the wrong moment. I suspect I need to try to cut down the number of times I re-render to try to avoid this.

philpearl avatar Nov 29 '15 12:11 philpearl