Something went wrong. Try again.
Measure the width of text in the terminal and build simple layouts!
Something went wrong. Try again.
375 B · 18 lines
at main
12345678910111213141516171819import string_width
pub fn main() { echo loop(1_000_000, 0)}
fn loop(i, sum) { case i > 0 { True -> { let width = string_width.line( "\u{1b}[1;95m· \u{1b}[0m\u{1b}[K\u{1b}[33mdeno\u{1b}[0m\u{1b}[K, \u{1b}[33mtypescript\u{1b}[0m\u{1b}[K, \u{1b}[33mts\u{1b}[0m\u{1b}[K", ) loop(i - 1, width + sum) } False -> sum }}