Fix build warning when chars are unsigned
Fix the following warning when chars are unsigned:
viewer.c:988:25: warning: comparison of constant -1 with expression of type 'char' is always true
[-Wtautological-constant-out-of-range-compare]
while((c = getch()) != ERR) {