Powerlevel10k: Receiving error `stty: 'standard input': Inappropriate ioctl for device`

Created on 19 Dec 2019  路  11Comments  路  Source: romkatv/powerlevel10k

Getting error on initialization:

stty: 'standard input': Inappropriate ioctl for device

Most helpful comment

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.

All 11 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.

Yes, I believe this call comes from powerlevel10k. When I remove the theme the error disappears.

It's possible but very unlikely. I can try to help you track down where that call happens. Please attach ~/.zshrc to this issue.

Closing due to inactivity. If this issue is still affecting you, please reopen and provide the information I've requested above.

We can close this issue. I switched to using a different theme. Thanks.

What theme have you switched to, if you don't mind my asking?

I should've mentioned that the error from stty was the result of enabling Instant Prompt. It's a very powerful feature that no other theme has (it makes zsh start instantly regardless of the number of plugins you use) but it can be tricky. The stty call almost certainly comes not from powerlevel10k but the bug in that call only becomes apparent when you enable instant prompt. If you ran p10k configure and disabled instant prompt, the error would have disappeared. Of course, it would be better to track down that stty call and fix it. For example, if you are using prezto, it's a known bug that it calls stty incorrectly and there is an easy fix.

Anyway, I wish you luck and I hope our next encounter will be more productive.

I use prezto and would like to fix this. How?

I use prezto and would like to fix this. How?

You can locally patch prezto like this: https://github.com/sorin-ionescu/prezto/pull/1771. If it helps, post a comment on that PR.

Thanks!

You can locally patch prezto like this: sorin-ionescu/prezto#1771. If it helps, post a comment on that PR.

FYI: The PR has been merged.

I know. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gibfahn picture gibfahn  路  5Comments

ImKifu picture ImKifu  路  3Comments

sanathkumarbs picture sanathkumarbs  路  3Comments

stevenguh picture stevenguh  路  6Comments

georgijd picture georgijd  路  3Comments