Closed ndland closed 1 month ago
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
Did this character always appear on your Ubuntu, or did this start happening recently?
@ndland: Can you share a video of where and how this character gets inserted ?
@ndland how do you launch the WSL instance? Does tilde is inserted when running ubuntu2404.exe
also? Check your launch command. In bash
the ~
expands to your home directory.
this could be caused by software like Caffeine that sends a virtual keystroke e.g. every minute to keep your screen unlocked
this could be caused by software like Caffeine that sends a virtual keystroke e.g. every minute to keep your screen unlocked
Holy shit. I never even considered that. You might be on to something... I do have Caffeine. At any rate, here is a gif of this happening.
this could be caused by software like Caffeine that sends a virtual keystroke e.g. every minute to keep your screen unlocked
Holy shit. I never even considered that. You might be on to something... I do have Caffeine. At any rate, here is a gif of this happening.
As a test, I killed Caffeine, and I ran the same test, and it doesn't appear to be doing the same thing anymore. My guess is, Caffeine is the culprit. Unreal, but thank you @Kazmirchuk for pointing this out.
The screenshots revealed more information. It's not just a tilde inserted. [28
is the beginning of an ANSI control sequence, and that's conceal off
. Looks like you have a broken sequence somewhere.
Too much caffeine!? 😀
Ironically, the [28
appeared after I switched to fish
. When I was using zsh
it was just a ~
. Either way, yes, I think I've either had too much or not enough of caffeine. 😆
Thank you for followup on this ! Closing since the issue caused by third party software.
Windows Version
Microsoft Windows [Version 10.0.22631.4112]
WSL Version
2.2.4.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.153.1
Distro Version
Ubuntu 24.04
Other Software
Docker Desktop (Windows)
Repro Steps
Start up a terminal, afk,
~
is automatically inserted into terminalExpected Behavior
No characters are automatically inserted into the terminal.
Actual Behavior
The
~
character appears if the terminal window is active, and afk'dDiagnostic Logs
No response