summaryrefslogtreecommitdiff
path: root/sysutils/screen-legacy/files/opt-showencoding
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/screen-legacy/files/opt-showencoding')
-rw-r--r--sysutils/screen-legacy/files/opt-showencoding31
1 files changed, 31 insertions, 0 deletions
diff --git a/sysutils/screen-legacy/files/opt-showencoding b/sysutils/screen-legacy/files/opt-showencoding
new file mode 100644
index 000000000000..dfc2ed4f25cb
--- /dev/null
+++ b/sysutils/screen-legacy/files/opt-showencoding
@@ -0,0 +1,31 @@
+--- process.c.orig 2008-05-08 02:37:33.000000000 +0800
++++ process.c 2008-05-08 02:37:49.000000000 +0800
+@@ -3422,6 +3422,7 @@
+ {
+ WinSwitchEncoding(fore, n);
+ ResetCharsets(fore);
++ RedisplayDisplays(0);
+ }
+ else if (i && display)
+ D_encoding = n;
+--- screen.c.orig 2008-05-08 02:37:22.000000000 +0800
++++ screen.c 2008-05-20 20:34:37.000000000 +0800
+@@ -2584,6 +2584,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 '{':
+ {
+ char rbuf[128];