Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear Screen Automatically #18

Open
defuse opened this issue Jul 23, 2014 · 1 comment
Open

Clear Screen Automatically #18

defuse opened this issue Jul 23, 2014 · 1 comment

Comments

@defuse
Copy link
Owner

defuse commented Jul 23, 2014

I tend to leave terminals open after having run passgen and copy-pasted the password out. This means passwords that I think are safely locked away in my password manager are still displayed in a terminal amongst the dozens of open windows on my computer.

We should explore the idea of making passgen have a 60 second timer (displayed to the user), then run reset to clear the terminal. Also hook Ctrl+C to run reset.

Questions:

  • Is reset actually reliable? Surely the password would still be in memory somewhere?
  • Would it be too much of a usability issue?
  • How do you get a reset-like effect in different terminals (passgen might be run without a terminal at all, consider this use case as well).
@phillid
Copy link

phillid commented Nov 1, 2014

An option which doesn't require reset is sending a \r character, followed by a series of spaces to blank out the current line. Although, this wouldn't work if the terminal was less than the password length. Reset won't work either because it doesn't clear the scroll buffer. Perhaps the best option would be to use an ncurses screen, as this isn't kept in the scroll buffer, at least under terminal emulators

I have a few servers whose ttys are over RS-232, so I'll check their behavior with reset etc and edit this comment with results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants