aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--safetitle.c (renamed from termsettitle.c)13
2 files changed, 7 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 31132bb..3f6f76b 100644
--- a/Makefile
+++ b/Makefile
@@ -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>