Version: 4.0.3-11 Package: screen Severity: wishlist Tags: patch I want to be able to have the session name in my caption. And I'm not the only person who wants to be able to do that. But there's no way to do it, so I made a patch.
Since this is a trivial change and it doesn't change any existing functionality, do you think this could be included in your next upload? Thanks, Ryan Niebur To be applied with 'patch -p 1': diff --git a/patches/00list b/patches/00list index 901adc6..36dca9d 100644 --- a/patches/00list +++ b/patches/00list @@ -29,6 +29,7 @@ 27doc_sty_noenvpassing 28blankerprg_callsemantics 30fix_fsf_address +31session_name_string_escape 40cjk_eastasian 45suppress_remap # 50-99: experimental patches, new features etc. diff --git a/patches/31session_name_string_escape.dpatch b/patches/31session_name_string_escape.dpatch new file mode 100644 index 0000000..ff0983b --- /dev/null +++ b/patches/31session_name_string_escape.dpatch @@ -0,0 +1,53 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 31_session_name_string_escape.dpatch by Ryan Niebur <[EMAIL PROTECTED]> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Session name string escape + [EMAIL PROTECTED]@ +diff -urNad screen-4.0.3~/screen.c screen-4.0.3/screen.c +--- screen-4.0.3~/screen.c 2008-06-29 22:28:26.000000000 -0700 ++++ screen-4.0.3/screen.c 2008-06-29 22:29:27.000000000 -0700 +@@ -2601,6 +2601,18 @@ + } + p += strlen(p) - 1; + break; ++ case 'S': ++ *p = 0; ++ char * session_name; ++ session_name = strchr(SockName, '.') + 1; ++ if ((int)strlen(session_name) < l) ++ { ++ strcpy(p, session_name); ++ if (*p) ++ qmflag = 1; ++ } ++ p += strlen(p) - 1; ++ break; + case 'F': + p--; + /* small hack */ +diff -urNad screen-4.0.3~/doc/screen.1 screen-4.0.3/doc/screen.1 +--- screen-4.0.3~/doc/screen.1 2008-06-29 22:43:41.000000000 -0700 ++++ screen-4.0.3/doc/screen.1 2008-06-29 22:44:31.000000000 -0700 +@@ -3286,6 +3286,8 @@ + month name + .IP n + window number ++.IP S ++session name + .IP s + seconds + .IP t +diff -urNad screen-4.0.3~/doc/screen.texinfo screen-4.0.3/doc/screen.texinfo +--- screen-4.0.3~/doc/screen.texinfo 2008-06-29 22:43:41.000000000 -0700 ++++ screen-4.0.3/doc/screen.texinfo 2008-06-29 22:44:52.000000000 -0700 +@@ -4754,6 +4754,8 @@ + window number + @item s + seconds [EMAIL PROTECTED] S ++session name + @item t + window title + @item u
signature.asc
Description: Digital signature