-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for turning off cursor blink #1379
Comments
I just set the cursor color to match the background color so it would be invisible, I couldn't find any other way to either remove it or stop it from blinking, but I hope this helps you |
Go into the Control Panel and search for Blink. |
Seconding a request for this setting. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
You could see here. |
Or reference the nice documentation here https://github.com/microsoft/terminal/blob/master/doc/cascadia/SettingsSchema.md |
I want to disable it in terminal app only
2019年7月1日(月) 7:19 David Teresi <notifications@github.com>:
… The cursor blinking can be turned off (system-wide) by going to Keyboard
Properties in the Control Panel and turning the cursor blink rate all the
way down:
[image: image]
<https://user-images.githubusercontent.com/34610081/60402879-67612c80-9b63-11e9-9b5a-00ab549f2327.png>
Would it be useful to disable the cursor blinking for just the terminal
app?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1379?email_source=notifications&email_token=AB4HIGH7WYVJYUIZT2IBEPTP5EWQRA5CNFSM4H2V6GEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY4U4XY#issuecomment-507072095>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB4HIGDR33VYEXMMWRVPS5LP5EWQRANCNFSM4H2V6GEA>
.
|
@DHowett-MSFT I've tried write some code to disable it.
How to fix it? |
Any ETA to add this? |
@hwo411 Nope - It's marked as "Terminal Backlog", which means we don't think we're going to get to it ourselves before we release a 1.0 version of the terminal. It's also marked "Help-Wanted", so if someone's feeling particularly passionate about this, they should feel free to build a solution themselves, and we'd happily review a PR 😉 |
@zadjii-msft thanks for explanation! |
Still waiting on this. A cursor blink is extremely obnoxious while looking at the terminal and trying to read text, Windows Terminal is still extremely limited in its customization options and basic features like this should not be backlogged. Please reconsider your stance on this, cursor blink in text boxes has nothing to do with cursor blink in terminals, so my terminal blink should not be controlled by that global setting. |
worked like charm on Ubuntu WSL2 👍 Thanks |
Is there any workaround here yet without changing my shell startup file? I tried it and it smh broke some of my vim plugins. PLZ make it a customizable options for WT.😢 |
This comment has been minimized.
This comment has been minimized.
The workaround is to disable cursor blinking system-wide and disable taskbar animations in System Properties, Advanced, Visual Effects (to avoid stuck icon highlighting in the taskbar). |
It's weird that I have done nothing and it just stopped blinking anymore since today. |
It's weird that I have done nothing and it just started blinking again since today. |
@willchao612 A story in two comments... |
Finally got a solution. If you are using tmux and this cursor blinking issue happens, put the following line in your set -sa terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q' Found this by chance when solving another cursor shape issue in Neovim. Docs here. I hope it helps you guys. |
I noticed the following:
|
@zakutin Did you manually set TERM in you startup file? If so, try commenting it out and restart tmux. |
Hey guys, maybe a dumb question but: does the cursor in Linux blink by default? I use the cursor shape to remind myself where I am - in cmd and pwsh I use a blinking underscore, in git bash I use a blinking pipe, in WSL I use a block. Those are their original default shapes, so I try to keep them. So, now the question is, if I want my Ubuntu to look authentic, should I make the block blink or not blink? |
In Ubuntu Desktop it's a block and it doesn't blink as far as I remember... |
@ZYinMD in GNOME Terminal (the default terminal in Ubuntu) the cursor is a blinking solid block, in the TTY (i.e. if you run Ubuntu without a GUI) it's a blinking underscore |
Hi! For those subscribed to this thread and many more coming from search results like me, I have a The code@setlocal EnableDelayedExpansion EnableExtensions & set "CMD=!CMDCMDLINE!" 2>nul
@if /i not "!CMD!"=="!CMD:/=!" (goto :EOF) else @if not defined DEBUG (echo off)
for /f "usebackq" %%E in (`echo(prompt $E^| "%ComSpec%" /d /q "" 2^>nul`) do (
echo(%%~E[?12l %%~E[3A %%~E[3M %%~E[1A
) Save the above to set PROCESSOR_ARCHITECTURE | "%SystemRoot%\system32\find.exe" "64" >nul && (
set "registry_view=64") || set "registry_view=32"
reg add "HKCU\Software\Microsoft\Command Processor" ^
/v "AutoRun" /t "REG_EXPAND_SZ" /f /reg:%registry_view% ^
/d "@if exist """^%USERPROFILE^%\.cmd""" """^%USERPROFILE^%\.cmd"""" ExplanationFrom Console Virtual Terminal Sequences:
There are many ways of generating ESC within for /f "usebackq" %%E in (`echo(prompt $E^| "%ComSpec%"`) do set esc=%%~E
With ESC in a variable we're free to disable blinking permanently: echo(%esc%[?12l %esc%[3A %esc%[3M %esc%[1A In order:
From here we're off to making said changes persistent - with
Make the content of that registry variable execute a script of our choice if it exists: set PROCESSOR_ARCHITECTURE | "%SystemRoot%\system32\find.exe" "64" >nul && (
set "registry_view=64") || set "registry_view=32"
reg add "HKCU\Software\Microsoft\Command Processor" ^
/v "AutoRun" /t "REG_EXPAND_SZ" /reg:%registry_view% ^
/d "@if exist """^%USERPROFILE^%\.cmd""" """^%USERPROFILE^%\.cmd"""" Such file probably isn't present yet, so create a type nul >"%USERPROFILE%\.cmd" And populate it with the following: @setlocal EnableDelayedExpansion EnableExtensions & set "CMD=!CMDCMDLINE!" 2>nul
@if /i not "!CMD!"=="!CMD:/=!" (goto :EOF) else @if not defined DEBUG (echo off)
for /f "usebackq" %%E in (`echo(prompt $E^| "%ComSpec%" /d /q "" 2^>nul`) do (
echo(%%~E[?12l %%~E[3A %%~E[3M %%~E[1A
) Take note that this script will run every time an instance of todo debugging machinery, explanation of delayed expansion and Previewcmd.mp4 |
For those using |
For those using WindowsPowerShell/pwsh, add this to your echo "`e[?12l" |
For Nushell users, add the following to your
|
On windows 10 with windows terminal 1.20.11781.0 and PowerShell 7.4.4 |
I don't link blinking cursor on terminal.
so I have tried to stop blink of cursor from settings but there is no option to do it.
How to disable blink of cursor?
The text was updated successfully, but these errors were encountered: