Keep completition on one line and fixed compatibility with read timeout.
Autodetect terminal width and height.