print-n works with esc sequences