Insure you are setting your TERM to be equal to what you are running from KEAterm - example: if you specify that the KEAterm is VT100, then try setting your TERM environment variable to vt100 (or VTxxx where xxx is equal to what your KEAterm is emulating).