Some tests with termcaps, maybe implemented in shell somedays