diff options
author | John Ankarstr\xf6m <john@ankarstrom.se> | 2021-05-31 19:56:57 +0200 |
---|---|---|
committer | John Ankarstr\xf6m <john@ankarstrom.se> | 2021-05-31 19:56:57 +0200 |
commit | cfeaadbc88a707de8cbbfcd84316f49116df30da (patch) | |
tree | 131ce09a4c2ce0060e86f1b38fdf72ad30b8cabb | |
parent | 4c4e778810435da3c913368430f0d25c110381b2 (diff) | |
download | safetitle-cfeaadbc88a707de8cbbfcd84316f49116df30da.tar.gz |
Add manual
-rw-r--r-- | safetitle.1 | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/safetitle.1 b/safetitle.1 new file mode 100644 index 0000000..b94faba --- /dev/null +++ b/safetitle.1 @@ -0,0 +1,59 @@ +.Dd $Mdocdate$ +.Dt safetitle 1 +.Os +.Sh NAME +.Nm safetitle +.Nd safely set title of terminal window +.Sh SYNOPSIS +.Nm +.Op Fl d +.Ar title +.Sh DESCRIPTION +.Pp +.Nm +sets the title of the current terminal window, +if and only if the terminal type is recognized. +By default, only +.Xr xterm 1 +is recognized. +To add more terminals, you can modify the source code. +.Pp +If run within +.Xr screen 1 , +.Nm +will correctly identify the terminal in which +.Xr screen 1 +is run. +.Pp +.Nm +is superstitious about the type of the terminal +because some terminals do not support the control sequences +that modify the title. +Specifically, NetBSD's +.Xr wscons 4 +is rendered (almost) unusable when it is sent such control sequences. +.Nm +provides a simple interface to setting the title in terminals that support it, +while leaving terminals that do not support it alone. +.Sh DIAGNOSTICS +.Pp +If you pass the +.Fl d +flag, +.Nm +will warn you if the terminal type is not recognized. +.Sh AUTHORS +.Pp +.Nm +is written by John Ankarström +.Aq Mt john (at) ankarstrom.se . +.Sh BUGS +.Pp +.Nm +supports +.Xr screen 1 , +except if there are more than one terminal attached to the current session. +In that case, +.Nm +will err on the side of caution and regard the terminals as unrecognized. +Thus, the title will not be set. |