Setting TERM=linux (or also TERM=ansi) worked. Now ae can be used via the serial console. Thanks a lot. Peter