ov icon indicating copy to clipboard operation
ov copied to clipboard

ov changes cursor in vscode terminal

Open Crissante opened this issue 2 years ago • 4 comments

In vscode terminal with the setting

"terminal.integrated.cursorStyle": "line"

when invoking ov on a file (make sure that it is long enough so that it stays in pager mode) then quitting, the cursor changes from the expected line type to block

Crissante avatar Oct 11 '23 19:10 Crissante

Thank you for the issue. This issue https://github.com/gdamore/tcell/issues/623 I think it's due to. ov is not changing the cursor, so I would like to wait for a fix in tcell.

noborus avatar Oct 11 '23 20:10 noborus

Is there a temporary solution that you can think of?

Crissante avatar Oct 11 '23 22:10 Crissante

I looked into it again, and it seems that the cursor changes in vscode and doesn't return is a vscode issue. https://github.com/microsoft/vscode/issues/117741

For now, even if you set it to the default, it will not return, so you will need to set the line style again. It would be a good idea to create a wrapper script so that the following is executed after ov finishes.

Power-Shell

Write-host "$([char]0x1B)[6 q"

Bash,etc...

 echo -e "\033[6 q"

noborus avatar Oct 12 '23 06:10 noborus