- out.write_all(format!(
- "\nBGP Routing Table: {} v4 paths, {} v6 paths\n",
- stats.v4_table_size, stats.v6_table_size).as_bytes()).expect("stdout broken?");
-
- out.write_all(b"\nCommands:\n").expect("stdout broken?");
- out.write_all(b"q: quit\n").expect("stdout broken?");
- out.write_all(format!(
- "r x y: Change retry time for status x (int value, see retry times section for name mappings) to y (in seconds)\n"
- ).as_bytes()).expect("stdout broken?");
- out.write_all(format!(
- "w x: Change the amount of time a node is considered WAS_GOOD after it fails to x from {} (in seconds)\n",
- store.get_u64(U64Setting::WasGoodTimeout)
- ).as_bytes()).expect("stdout broken?");
- out.write_all(b"a x: Scan node x\n").expect("stdout broken?");
- out.write_all(b"b x: BGP Lookup IP x\n").expect("stdout broken?");
- out.write_all(b"\x1b[s").expect("stdout broken?"); // Save cursor position and provide a blank line before cursor
- out.write_all(b"\x1b[;H\x1b[2K").expect("stdout broken?");
- out.write_all(b"Most recent log:\n").expect("stdout broken?");
- out.write_all(b"\x1b[u").expect("stdout broken?"); // Restore cursor position and go up one line
-