prepare imports for character-at-a-time input
static import for fcntl, will use fcntl.fcntl,

also readability from pexpect