summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-15 12:38:43 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-15 12:38:43 +0300
commitcaf7d446446a0af0b30886a6c4ee5851aab553e2 (patch)
tree28cb796f01711d8484bc6cb3daa8e551db18fe68 /include
parent6cd9ab6f73994b68e8453c92a014d1a372af2a24 (diff)
parent7ed78a31debb0250bae16d8b4098a4689f29bb60 (diff)
Merge branch 'wt/host-name' into api-hardening
# Conflicts: # src/screen.c
Diffstat (limited to 'include')
-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. */