added viewX/viewY to scroll viewport
added setCapture to capture screen output