Clears the terminal with an ANSI escape code. Works in UNIX and newer Windows terminals. */
()
| 218 | /* Clears the terminal with an ANSI escape code. |
| 219 | Works in UNIX and newer Windows terminals. */ |
| 220 | fn clear_screen() { |
| 221 | println!("\x1Bc"); |
| 222 | } |
| 223 | |
| 224 | println!("exercises: {:?}", exercises); |
| 225 | println!("exercise[0]: {:?}", exercises.len()); |