if not a terminal set lines and columns to 0xFFFF

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>