sorm termcap checking for more comactness