fn pos_to_line(input: &str, pos: usize) -> (usize, usize)