powerlevel10k: Receiving error `stty: 'standard input': Inappropriate ioctl for device`
Getting error on initialization:
stty: 'standard input': Inappropriate ioctl for device
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (6 by maintainers)
Commits related to this issue
- Fix two problems: Ctrl+S was freezing console in WSL2 and also problem with p10k prompt. See solution here: https://github.com/romkatv/powerlevel10k/issues/388 — committed to pablospe/zshconfig by pablospe 2 years ago
- fix stty command See: https://github.com/romkatv/powerlevel10k/issues/388#issuecomment-821213087 — committed to gyrofx/dotfiles by gyrofx 2 years ago
Do you believe that this call to stty comes from powerlevel10k? If so, please provide details.
If this call doesn’t come from powerlevel10k (this is almost certainly the case), you need to replace plain
stty argswithstty args <$TTY >$TTY.I had the same issue because I had the following line in
~/.zshrcto disable Ctrl+S from freezing the terminal emulator on Windows 10 WSL2I replaced it with the following line as per @romkatv suggestion, and everything works now as expected; I don’t get the error, and Ctrl+S doesn’t cause any freezing:
I was getting the same error because i had this line in my zshrc:
Just remove it if you have anything related to stty and it will go away.