mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
restored terminal output control class
This commit is contained in:
parent
5465e1174f
commit
2c6f11e4eb
@ -141,9 +141,8 @@ void TerminalApiClient::data_tick()
|
|||||||
bool ask_for_password = false;
|
bool ask_for_password = false;
|
||||||
std::string key_name;
|
std::string key_name;
|
||||||
|
|
||||||
#ifdef TO_REMOVE
|
// This is only used to remove echo from the input and allow us to replace it by what we want.
|
||||||
TerminalInput term;
|
TerminalInput term;
|
||||||
#endif
|
|
||||||
|
|
||||||
while(!shouldStop())
|
while(!shouldStop())
|
||||||
{
|
{
|
||||||
@ -226,7 +225,7 @@ void TerminalApiClient::data_tick()
|
|||||||
account_number_size = (int)ceil(log(accounts.size())/log(10.0f)) ;
|
account_number_size = (int)ceil(log(accounts.size())/log(10.0f)) ;
|
||||||
|
|
||||||
for(uint32_t i=0;i<accounts.size();++i)
|
for(uint32_t i=0;i<accounts.size();++i)
|
||||||
std::cout << "[" << std::setw(account_number_size) << std::setfill('0') << i << "] " << accounts[i].name << " (" << accounts[i].location << ")" << std::endl;
|
std::cout << "[" << std::setw(account_number_size) << std::setfill('0') << i << "] Location Id: " << accounts[i].ssl_id << " \"" << accounts[i].name << "\" (" << accounts[i].location << ")" << std::endl;
|
||||||
|
|
||||||
selected_account_number = accounts.size() ;
|
selected_account_number = accounts.size() ;
|
||||||
account_number_typed = 0 ;
|
account_number_typed = 0 ;
|
||||||
|
Loading…
Reference in New Issue
Block a user