This file contains hidden or 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
| // License: MIT Open Source | |
| // Copyright (c) Joe Linoff 2016 | |
| // Go code to prompt for password using only standard packages by utilizing syscall.ForkExec() and syscall.Wait4(). | |
| // Correctly resets terminal echo after ^C interrupts. | |
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "os" |