[myutils] getchar: read exactly one character