Set the terminal title/icon. More...
#include "config.h"#include <stdbool.h>#include <stdio.h>#include "mutt/lib.h"#include "terminal.h"#include "mutt_curses.h"#include <term.h>
Include dependency graph for terminal.c:Go to the source code of this file.
Functions | |
| const char * | mutt_tigetstr (const char *name) |
| Get terminal capabilities. | |
| bool | mutt_ts_capability (void) |
| Check terminal capabilities. | |
| void | mutt_ts_status (char *str) |
| Set the text of the terminal title bar. | |
| void | mutt_ts_icon (char *str) |
| Set the icon in the terminal title bar. | |
Variables | |
| bool | TsSupported |
| Terminal Setting is supported. | |
| static const char * | TSL = "\033]0;" |
| TSL: to_status_line - Sent before the terminal title. | |
| static const char * | FSL = "\007" |
| FSL: from_status_line - Sent after the terminal title. | |
Set the terminal title/icon.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file terminal.c.
| const char * mutt_tigetstr | ( | const char * | name | ) |
Get terminal capabilities.
| name | Name of capability |
| str | Capability |
Definition at line 68 of file terminal.c.
Here is the caller graph for this function:| bool mutt_ts_capability | ( | void | ) |
Check terminal capabilities.
| true | Terminal is capable of having its title/icon set |
Definition at line 83 of file terminal.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_ts_status | ( | char * | str | ) |
Set the text of the terminal title bar.
| str | Text to set |
Definition at line 130 of file terminal.c.
Here is the caller graph for this function:| void mutt_ts_icon | ( | char * | str | ) |
Set the icon in the terminal title bar.
| str | Icon string |
Definition at line 144 of file terminal.c.
Here is the caller graph for this function:| bool TsSupported |
Terminal Setting is supported.
Definition at line 53 of file terminal.c.
|
static |
TSL: to_status_line - Sent before the terminal title.
Definition at line 57 of file terminal.c.
|
static |
FSL: from_status_line - Sent after the terminal title.
Definition at line 59 of file terminal.c.