From 5e50e2f51e3f0db7a4b486fbc71f43d326aca1a6 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Thu, 23 Jun 2005 22:28:56 +0000
Subject: [PATCH] in disable_flow_control() and enable_flow_control(), only
 turn off flow control on input, as it might be needed for output on slow
 terminals

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2760 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog  | 3 +++
 src/nano.c | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 57673256..6e52380b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -242,6 +242,9 @@ CVS code -
   disable_extended_input()
 	- Disable extended output processing as well as extended input
 	  processing, and rename to disable_extended_io(). (DLR)
+  disable_flow_control(), enable_flow_control()
+	- Only turn off flow control on output, as it might be needed
+	  for input on slow terminals. (DLR)
 - nano.h:
 	- Add macro charset(), a wrapper that calls memset(). (DLR)
 	- Readd #defines for the isblank() and iswblank() equivalents.
diff --git a/src/nano.c b/src/nano.c
index 951b909c..66962fa4 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -3744,7 +3744,7 @@ void disable_flow_control(void)
     struct termios term;
 
     tcgetattr(0, &term);
-    term.c_iflag &= ~(IXON|IXOFF);
+    term.c_iflag &= ~IXON;
     tcsetattr(0, TCSANOW, &term);
 }
 
@@ -3753,7 +3753,7 @@ void enable_flow_control(void)
     struct termios term;
 
     tcgetattr(0, &term);
-    term.c_iflag |= (IXON|IXOFF);
+    term.c_iflag |= IXON;
     tcsetattr(0, TCSANOW, &term);
 }
 
-- 
GitLab