diff options
author | helbig <helbig@FreeBSD.org> | 1998-01-22 07:37:10 +0000 |
---|---|---|
committer | helbig <helbig@FreeBSD.org> | 1998-01-22 07:37:10 +0000 |
commit | f98c0d7ba51b632ab87fece1a88279d3af46b3c9 (patch) | |
tree | c2d4e655bf280ace42081f79e5e9b1ea64f4d971 | |
parent | da58dd2ba551203c15ed4f1d4985cdbb75baf6cc (diff) | |
download | FreeBSD-src-f98c0d7ba51b632ab87fece1a88279d3af46b3c9.zip FreeBSD-src-f98c0d7ba51b632ab87fece1a88279d3af46b3c9.tar.gz |
Don't swap carriage return and new line in quoted mode (after ^V).
-rw-r--r-- | lib/libedit/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libedit/tty.c b/lib/libedit/tty.c index 961e340..2a15e3f 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) { |