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"
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 57 of file terminal.c.
bool mutt_ts_capability | ( | void | ) |
Check terminal capabilities.
true | Terminal is capable of having its title/icon set |
Definition at line 72 of file terminal.c.
void mutt_ts_status | ( | char * | str | ) |
Set the text of the terminal title bar.
str | Text to set |
Definition at line 119 of file terminal.c.
void mutt_ts_icon | ( | char * | str | ) |
Set the icon in the terminal title bar.
str | Icon string |
Definition at line 133 of file terminal.c.
bool TsSupported |
Terminal Setting is supported.
Definition at line 42 of file terminal.c.
|
static |
TSL: to_status_line - Sent before the terminal title.
Definition at line 46 of file terminal.c.
|
static |
FSL: from_status_line - Sent after the terminal title.
Definition at line 48 of file terminal.c.