add regional screen refresh support

and waveform mode can be specified when calling screen refresh

This PR implements faster screen update method proposed in #68.