digi portserver - cant use arrow keys

using digi portserver connceting to a linux console terminal, I cannot use arrow keys (it just prints ABCD, instead of showing history for example)