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 | |
bool | mutt_ts_capability (void) |
Check terminal capabilities. More... | |
void | mutt_ts_status (char *str) |
Set the text of the terminal title bar. More... | |
void | mutt_ts_icon (char *str) |
Set the icon in the terminal title bar. More... | |
Variables | |
bool | TsSupported |
Terminal Setting is supported. More... | |
static const char * | TSL = "\033]0;" |
TSL: to_status_line - Sent before the terminal title. More... | |
static const char * | FSL = "\007" |
FSL: from_status_line - Sent after the terminal title. More... | |
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.
bool mutt_ts_capability | ( | void | ) |
Check terminal capabilities.
true | Terminal is capable of having its title/icon set |
Definition at line 55 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 103 of file terminal.c.
void mutt_ts_icon | ( | char * | str | ) |
Set the icon in the terminal title bar.
str | Icon string |
Definition at line 117 of file terminal.c.
bool TsSupported |
Terminal Setting is supported.
Definition at line 41 of file terminal.c.
|
static |
TSL: to_status_line - Sent before the terminal title.
Definition at line 45 of file terminal.c.
|
static |
FSL: from_status_line - Sent after the terminal title.
Definition at line 47 of file terminal.c.