fixing style in tgetstr call, removing cast