Interrupt signal leaves the terminal with tty echo off

micahhainline
micahhainline
Community Member

Basically, if you are using the CLI and press ^C while it's asking for your password (which is a pretty natural thing to do) then when you get out of the command your terminal is screwed up because echo is still off on tty. That means you don't get to see what you're typing anymore. Sad day.

Maybe catch the SIGINT yourself and turn echo back on before you leave.

This is for the CLI version 0.4


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Sync Type: Not Provided
Referrer: forum-search:cli tty

Comments

  • micahhainline
    micahhainline
    Community Member

    Strangely, if I have a #!/bin/bash line it doesn't exhibit the same problem.
    I'm running on Ubuntu 16.04.

  • Thanks @micahhainline. We'll look into what we can do to make this better. I've filed it as issue 420 in our tracker.

    Rick

  • As a temporary workaround, does running reset fix things?

    Rick

  • jpgoldberg
    jpgoldberg
    1Password Alumni

    Is reset what they young folk are calling stty sane these days? Ah. Yes it is.

This discussion has been closed.