summaryrefslogtreecommitdiff
path: root/include/term/term.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/term/term.h')
-rw-r--r--include/term/term.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/term/term.h b/include/term/term.h
index 8a1e024..9d5a882 100644
--- a/include/term/term.h
+++ b/include/term/term.h
@@ -161,6 +161,13 @@ struct term_options {
struct term_theme theme;
enum term_cursor_style cursor_style;
bool cursor_steady; /* false: the cursor blinks */
+ /*
+ * The terminal's name. Programs read it with XTVERSION and XTGETTCAP.
+ * It is also the title of a notification that has none. NULL or ""
+ * selects "term". Otherwise 1 to 63 printable ASCII bytes, or term_new()
+ * returns NULL. term_new() copies the name.
+ */
+ const char *name;
struct term_callbacks callbacks;
/* Must be zero. term_new() returns NULL if any word is nonzero, so a
* later version can give a word a meaning. */