Fix for origin mode and scroll regions in the emulation.
Fix for origin mode and scroll regions in the emulation.

sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm