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

Most upvoted comments

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 args with stty args <$TTY >$TTY.

I had the same issue because I had the following line in ~/.zshrc to disable Ctrl+S from freezing the terminal emulator on Windows 10 WSL2

stty -ixon

I 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:

stty -ixon <$TTY >$TTY

I was getting the same error because i had this line in my zshrc:

 stty stop undef		# Disable ctrl-s to freeze terminal

Just remove it if you have anything related to stty and it will go away.