Dimensions
var stty = `stty -a`
var lines = stty.match(/\brows\h+(\d+)/)
var cols = stty.match(/\bcolumns\h+(\d+)/)
say "#{lines} #{cols}"Output:
24 80Last updated
Was this helpful?
var stty = `stty -a`
var lines = stty.match(/\brows\h+(\d+)/)
var cols = stty.match(/\bcolumns\h+(\d+)/)
say "#{lines} #{cols}"24 80Last updated
Was this helpful?