From 5aeee887afc081963b1b032a684a6a9b7a5dbbcb Mon Sep 17 00:00:00 2001 From: Wolfgang Helbig Date: Thu, 22 Jan 1998 07:37:10 +0000 Subject: [PATCH] Don't swap carriage return and new line in quoted mode (after ^V). --- lib/libedit/tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libedit/tty.c b/lib/libedit/tty.c index 961e340284a..2a15e3ff6a3 100644 --- a/lib/libedit/tty.c +++ b/lib/libedit/tty.c @@ -77,7 +77,7 @@ private ttyperm_t ttyperm = { C_SH(C_PGOFF)|C_SH(C_PAGE)|C_SH(C_STATUS)), 0 } }, { - { "iflag:", 0, IXON | IXOFF }, + { "iflag:", 0, IXON | IXOFF | INLCR | ICRNL }, { "oflag:", 0, 0 }, { "cflag:", 0, 0 }, { "lflag:", 0, ISIG | IEXTEN }, @@ -793,7 +793,7 @@ protected int tty_rawmode(el) EditLine *el; { - if (el->el_tty.t_mode == ED_IO) + if (el->el_tty.t_mode == ED_IO || el->el_tty.t_mode == QU_IO) return (0); if (tty_getty(el, &el->el_tty.t_ts) == -1) {