1
Description: Ensure that the title prompt only appears once
2
Windows in screen can be renamed using C-a A (title). This can be done
3
repeatedly so that any number of prompts for a new window name overlay
4
each other. Once the user entered a name in the topmost prompt and
5
presses enter, he has to do it again for all the prompts underneath.
6
This can be very confusing in case the user hit C-a A several times
7
without noticing or realizing.
8
Author: Tobias Wulff <tobi@swulff.de>
11
Index: screen/process.c
12
===================================================================
13
--- screen.orig/process.c 2013-07-14 23:43:28.058810093 +0200
14
+++ screen/process.c 2013-07-14 23:43:28.050810057 +0200
19
+int enter_window_name_mode = 0;
27
ChangeAKA(fore, buf, strlen(buf));
29
+ enter_window_name_mode = 0;
33
@@ -5752,6 +5756,11 @@
38
+ if (enter_window_name_mode == 1) return;
40
+ enter_window_name_mode = 1;
42
Input("Set window's title to: ", sizeof(fore->w_akabuf) - 1, INP_COOKED, AKAfin, NULL, 0);