class Pry::Pager::PageTracker

def line_length(line)

newline and without ANSI color codes.
Approximation of the printable length of a given line, without the
def line_length(line)
  line.chomp.gsub(/\e\[[\d;]*m/, '').length
end