diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-15 12:30:14 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-15 12:30:14 +0300 |
| commit | 7ed78a31debb0250bae16d8b4098a4689f29bb60 (patch) | |
| tree | eda4e03a9c51140f78ef6e8c9f73ebcd0d8eca8b /tests/model_test.c | |
| parent | 5f03033b0e211f9ed13e7a1351f9a8f9011ab665 (diff) | |
Take the terminal name from term_options.name
The core hard-coded "wsap_term" for XTVERSION, the XTGETTCAP TN and
name default, and the OSC 9 notification title. A headless library
should take its identity from the host.
term_options.name sets the name. NULL or "" selects "term". term_new()
copies it and returns NULL unless it is 1 to 63 printable ASCII bytes,
since DCS replies echo it. A DCS +p still changes the TN value, and
the XTVERSION and notification defaults keep the host name.
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/model_test.c')
| -rw-r--r-- | tests/model_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/model_test.c b/tests/model_test.c index 395097e..e94307c 100644 --- a/tests/model_test.c +++ b/tests/model_test.c @@ -256,7 +256,7 @@ static int run(const struct script *s, enum chunking chunks, uint64_t chunk_seed .callbacks = { .ud = &got, .reply = on_reply }, }; struct term *t = term_new(&opt); - struct model *m = model_new(s->size, s->history); + struct model *m = model_new(s->size, s->history, NULL); struct term_snapshot *snap = term_snapshot_new(); if (!t || !snap) abort(); uint64_t saved_rng = rng; |
