tgetstr and tigetstr compliance with the standard