Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Thanks, I wasn't aware of stty. I forgot to mention reset also works, I just wish I knew what was wrong in the first place! Commented Oct 18, 2021 at 4:48
  • 1
    As I said, apparently whiptail sets -echo and does not reset it on exit (at least in some cases). Try eliminating whiptail from the pipeline: does the resulting script leave the terminal in a funny state? In my experiment, it does not: the terminal works properly afterwards. Add a stty sane at the end of your script: again the terminal works properly afterwards. That is enough to convince me that whiptail has a bug. Commented Oct 18, 2021 at 5:17
  • Thank you! I didn't see any comment about whiptail setting -echo, did u delete it? Per the answer below, this seems to be exactly what I wanted to know. Commented Oct 19, 2021 at 7:18