Update libterm/src/term.c to cast fprintf parameter to short int