add console pos save/restore & scroll region setting