diff options
author | Karl-Johan Alm <kalle.alm@gmail.com> | 2018-07-19 23:48:38 +0900 |
---|---|---|
committer | Karl-Johan Alm <karljohan-alm@garage.co.jp> | 2019-10-01 12:19:31 +0900 |
commit | 0da503e9475fea5644168544668581796bf66334 (patch) | |
tree | 76c6131af2e7580f6ce5c51f2322fd4dc68daffd /src/compat/stdin.h | |
parent | b0e268d2f6ac9b80247b5dab353794ba6b3c2828 (diff) | |
download | bitcoin-0da503e9475fea5644168544668581796bf66334.tar.xz |
add stdin helpers for password input support
Diffstat (limited to 'src/compat/stdin.h')
-rw-r--r-- | src/compat/stdin.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/compat/stdin.h b/src/compat/stdin.h new file mode 100644 index 0000000000..468fe4d6a6 --- /dev/null +++ b/src/compat/stdin.h @@ -0,0 +1,18 @@ +// Copyright (c) 2018 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#ifndef BITCOIN_COMPAT_STDIN_H +#define BITCOIN_COMPAT_STDIN_H + +struct NoechoInst { + NoechoInst(); + ~NoechoInst(); +}; + +#define NO_STDIN_ECHO() NoechoInst _no_echo + +bool StdinTerminal(); +bool StdinReady(); + +#endif // BITCOIN_COMPAT_STDIN_H |