work on termcapped shell