replace tty check with crossterm
This commit is contained in:
parent
5a262650a0
commit
0b340a3cf1
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ use std::{
|
|||
path::Path,
|
||||
sync::{Arc, Mutex},
|
||||
};
|
||||
use crossterm::tty::IsTty;
|
||||
use steamguard::{
|
||||
steamapi, AccountLinkError, AccountLinker, Confirmation, ExposeSecret, FinalizeLinkError,
|
||||
LoginError, SteamGuardAccount, UserLogin,
|
||||
|
@ -522,7 +523,7 @@ fn do_subcmd_trade(
|
|||
}
|
||||
}
|
||||
} else {
|
||||
if termion::is_tty(&stdout()) {
|
||||
if stdout().is_tty() {
|
||||
let (accept, deny) = tui::prompt_confirmation_menu(confirmations)?;
|
||||
for conf in &accept {
|
||||
let result = account.accept_confirmation(conf);
|
||||
|
|
Loading…
Reference in a new issue