tigetstr
tigetstr is a function from the terminfo library used by terminal handling in Unix-like systems. It retrieves the value of a string capability for the currently active terminal description, allowing programs to obtain control sequences defined in the terminfo database. The function is commonly used in conjunction with setupterm or curses-based applications to query terminal capabilities after the terminal database has been initialized.
The function takes a single argument, the name of the string capability to look up, such as
The string returned by tigetstr is typically a template that may require parameter substitution before use.
tigetstr is part of the terminfo suite, and is related to other accessors such as tigetflag and