mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-08-01 12:51:28 +00:00
Add chain indicator to prompt
This commit is contained in:
@@ -135,7 +135,9 @@ pub fn main() {
|
|||||||
println!("Ready!");
|
println!("Ready!");
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let readline = rl.readline(&format!("Block:{} (type 'help') >> ", lightclient.last_scanned_height()));
|
let readline = rl.readline(&format!("({}) Block:{} (type 'help') >> ",
|
||||||
|
config.chain_name,
|
||||||
|
lightclient.last_scanned_height()));
|
||||||
match readline {
|
match readline {
|
||||||
Ok(line) => {
|
Ok(line) => {
|
||||||
rl.add_history_entry(line.as_str());
|
rl.add_history_entry(line.as_str());
|
||||||
|
Reference in New Issue
Block a user