Following bugs are fixed: 1.Handle out of bound cursor movements: vi in busybox sets cursor to (999,999) expecting it to be set to right, bottom correctly. 2.Correctly determine redirected non-terminal file. Signed-off-by: Sachin Joshi <sachin_jayant_joshi@hotmail.com> Upstream-commit: cb7a65c55e192558376e542319a4b7e5445c2bcf Component: engine