fix readline error, hightlight output