On altos, the primitive input function is ao_getchar, not getchar