mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-07 03:03:58 +01:00
add stdin helpers for password input support
This commit is contained in:
committed by
Karl-Johan Alm
parent
b0e268d2f6
commit
0da503e947
18
src/compat/stdin.h
Normal file
18
src/compat/stdin.h
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user