This repository has been archived by the owner on Jul 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prompt silently if the output is redirected.
This fixes #159. * Problem 1 is not solved: There still be no visible prompt if the output is redirected and that may be misinterpreted as a hanging process * Problem 2 is solved: Neither the prompt not username and password appear in the output if it is redirected. * Problem 3 is solved: TTY Echo is turned off earlier, so that one can start typing the password without having to fear it appearing in cleartext on the screen. Anything typed before we actually prompt is buffered and processed then, so it is totally fine now to type the password and enter as soon as the process is started.
- Loading branch information
Showing
3 changed files
with
184 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.