Fixed return type for 'fseek' in module api.
Continued work on terminal driver.