FIX: use FreeBSD stat struct in simple.io
FIX: use 0Ah instead of 0Dh for KEY-ENTER