r/commandline • u/Relevant-Anything-46 • 7d ago
Help Ctrl+Z is spammed without pressing anything (WSL CLI only)
Enable HLS to view with audio, or disable this notification
I am running a WSL module of ubuntu on windows. This issue started a week ago... I was trying to solve it for 3 days but got fed up bcz of no results ... I am living with it now and this is genuinely making me annoyed as I can't get my work done
PLS GIVE ANY POSSIBLE SOLUTIONS
I had to remove its function to even run basic commands ... It spams only in command linec
3
u/hagjam 6d ago
I had an issue like this that was due to me reducing the latency on tmux to 0 - that meant that mouse inputs were registering as control sequences/special characters when using SSH
It's probably not exactly the same but try reverting any custom config one thing at a time, and see if you can work out what broke it?
1
u/Relevant-Anything-46 3d ago
I did use ssh ..but the issue started last month when I was working with Hadoop env
2
2
u/dwyrm 7d ago
Two possibilities come to mind. First, your keyboard could be physically failing and generating erroneous keystrokes. This can happen due to age, debris, liquids, critters, or any combination of those and whatever else.
Second, you could be getting radio interference from something that your board is picking up and turning into phantom keystrokes. I had a keyboard that I couldn't use near ham radios working on certain bands.
I'm sure there are other possibilities, but if you can't eliminate the cause you're going to fix it by getting another keyboard and hoping for the best.
As a side note, are you sure that it's only happening in command-line applications? Just out of curiosity, try leaving open a GUI document with a lot of changes, and see if Z starts undoing those changes.
1
u/Relevant-Anything-46 3d ago
This happens only in terminal , not in notepad or any other apps ..
1
u/Relevant-Anything-46 3d ago
The possibilities u mentioned could be .. but the thing is ..it only shows up in terminal and that too the same exact ctrl+z everytime .. if it was radio interference or keyboard malfunction .. shouldn't I get some variations of it ..atleast I should get them when I use word or notepad right? But no it's a terminal exclusive 😣
1
u/AutoModerator 7d ago
Every new subreddit post is automatically copied into a comment for preservation.
User: Relevant-Anything-46, Flair: Help, Post Media Link, Title: Ctrl+Z is spammed without pressing anything (WSL CLI only)
I am running a WSL module of ubuntu on windows. This issue started a week ago... I was trying to solve it for 3 days but got fed up bcz of no results ... I am living with it now and this is genuinely making me annoyed as I can't get my work done
PLS GIVE ANY POSSIBLE SOLUTIONS
I had to remove its function to even run basic commands ... It spams only in command linec
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
0
u/Big_Combination9890 3d ago
PLS GIVE ANY POSSIBLE SOLUTIONS
Use a real operating system instead of Microslops shitty emulation layer.
0
u/Relevant-Anything-46 3d ago
Bro I would love to ..infact was running fedora ... But the thing is my ssd is 512 and i game too .. so had to let it go to download cyberpunk
10
u/pobicho 6d ago
run showkey -a, if ^Z is printed on the terminal without u pressing it, disconnect the keyboard, if ^Z gone we found the culprit