vl: make sure char-pty message displayed by moving setbuf to the beginning