aboutsummaryrefslogtreecommitdiff
path: root/sysutils/screen/files/opt-showencoding
blob: b931f0d67292f3f824a7c487982d92f79f75ffea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- screen.c.orig	2017-01-17 11:28:29.397404660 -0800
+++ screen.c	2017-01-18 12:24:40.855402000 -0800
@@ -2760,6 +2760,18 @@
       }
       p += strlen(p) - 1;
       break;
+#ifdef ENCODINGS
+	case 'e':
+	  *p = 0;
+	  D_encoding = nwin_options.encoding > 0 ? nwin_options.encoding : 0;
+	  if (win && win->w_encoding)
+	    {
+	      *p++ = ' ';
+	      strcpy(p, EncodingName(win->w_encoding));
+	    }
+	  p += strlen(p) - 1;
+	  break;
+#endif
 
     case '{':
     {