improve when pos '> is on last printable char