ncursesw
pub fn termname() -> Result<String, NCurseswError>
Return the value of the environment variable TERM, as a string, truncated to 14 characters.