diff options
author | John Ankarstr\xf6m <john@ankarstrom.se> | 2021-05-31 19:34:03 +0200 |
---|---|---|
committer | John Ankarstr\xf6m <john@ankarstrom.se> | 2021-05-31 19:34:03 +0200 |
commit | 4c4e778810435da3c913368430f0d25c110381b2 (patch) | |
tree | f2d8905c8bb38adb2523ba29e065407ab1807bd3 | |
parent | f0ad01ff4526cb43bf701cb1cbe3bdc5291b23a3 (diff) | |
download | safetitle-4c4e778810435da3c913368430f0d25c110381b2.tar.gz |
Change name from termsettitle to safetitle
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | safetitle.c (renamed from termsettitle.c) | 13 |
2 files changed, 7 insertions, 10 deletions
@@ -1,6 +1,6 @@ CFLAGS += -O2 -pedantic -Wall -Wextra -termsettitle: termsettitle.c +safetitle: safetitle.c install: - install termsettitle /usr/local/bin + install safetitle /usr/local/bin diff --git a/termsettitle.c b/safetitle.c index 2ff9883..ee37d3b 100644 --- a/termsettitle.c +++ b/safetitle.c @@ -1,15 +1,12 @@ /* - * termsettitle sets the title of the terminal window to the given string, + * safetitle sets the title of the terminal window to the given string, * if and only if the terminal is recognized via its device attributes. * - * Note that this does NOT (yet) work inside GNU screen if several terminals - * are attached to the same session. In other words, you need to use -dr - * instead of -x when attaching with screen. + * If multiple terminals are attached to the same GNU screen session, + * the title is not set. It is theoretically possible to check every + * terminal too see if it is recognized and, if so, set the title -- + * but that would make the code more complex. * - * (Maybe we could try to read again, but with a timeout? If there is more - * to read, we read it and then abort.) - * (Or maybe there IS a way to check if there is something to read.) - * (This would solve the problem completely!) */ #include <err.h> |