Encode filehandle, trap signals, show/hide cursor
v0.03