Skip to content

Feature Request: Specify cursor behaviour on window focus / unfocus #2316

@flindeberg

Description

@flindeberg

Description of the new feature/enhancement

Currently I find it hard to find focus, and confusing to pasting text into unfocused terminals, since you cannot change cursor behaviour in unfocused terminals. For example by changing color or opacity (I do not know the feasability of this).

Proposed technical implementation details

(Speculating without looking at actual code for ease of implementation, and images curtesy of Google image search along the lines of "terminal [window] focus") Since I like box cursors, I will provide three examples with box cursors which can be extended to other types of cursors.

An example from Code (possible today, terminal in focus shows unfilled box as cursor, terminal out of focus does not):
terminal-split-pane

An example from Linux (possible today, specifically Kali and Gnome terminal, focused terminal shown filled box while unfocused terminal shows nothing)
root@TheHackerToday-_185

Another example from Linux (not possible today, specifically Ubuntu and Tilix terminal emulator, focused terminal shows filled box while unfocused terminal shows unfilled box)
Tilix-Interface

I do not propose that the result should be static, rather that the user can select what the cursor should look like in a focused window and an unfocused window. I.e.:

... profiles.json ...
"cursorShapeWindowFocus" : "filledBox",
"cursorShapeNoWindowFocus" : "emptyBox",
...

Of course taking height for #1203 so that the "filledBox" setting becomes more meaningful.

Metadata

Metadata

Labels

Area-SettingsIssues related to settings and customizability, for console or terminalIssue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions