var stty = `stty -a` var lines = stty.match(/\brows\h+(\d+)/) var cols = stty.match(/\bcolumns\h+(\d+)/) say "#{lines} #{cols}"
24 80
Last updated 1 year ago