From ef195791b38325931b2d3007b9c409389aa43797 Mon Sep 17 00:00:00 2001
From: Iain Patterson <me@iain.cx>
Date: Wed, 22 Apr 2009 16:02:56 +0100
Subject: [PATCH] Screen fixes.

Don't break old Solaris with PROMPT_COMMAND inside screen.
Don't accidentally send xoff.
---
 .profile.d/prompt.bashrc | 5 +++++
 .screenrc                | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/.profile.d/prompt.bashrc b/.profile.d/prompt.bashrc
index 501163b..a80c615 100644
--- a/.profile.d/prompt.bashrc
+++ b/.profile.d/prompt.bashrc
@@ -36,3 +36,8 @@ unset blank info vimchild SSH_FORWARDED
 if [ "$TERMINAL_EMULATOR" = "dtterm" ]; then
   unset PROMPT_COMMAND
 fi
+
+# As does screen on an ancient Solaris host.
+if [ -n "$OLDSOLARIS" -a ! "${TERM##screen}" = "$TERM" ]; then
+  unset PROMPT_COMMAND
+fi
diff --git a/.screenrc b/.screenrc
index 3644fdc..4bd1a08 100644
--- a/.screenrc
+++ b/.screenrc
@@ -16,6 +16,8 @@ bind h prev
 bind l next
 # Close the current window.
 bind q remove
+# Don't accidentally send xoff.
+bind s
 # Set current window title.
 bind t title
 # Show or hide the hardstatus line.
-- 
2.20.1