termname and longname should also be decoded in ncurses