projects
/
u
/
mdw
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8284c2
)
Turn of ICRNL in the client tty when we're not in editing mode. This
author
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 15 Jan 2005 20:39:27 +0000
(20:39 +0000)
committer
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 15 Jan 2005 20:39:27 +0000
(20:39 +0000)
means that we send literal CRs and let the remote pty layer work out what to
do with them, so that if it wants raw mode it can have it.
git-svn-id: svn://svn.tartarus.org/sgt/putty@5114
cda61777
-01e9-0310-a592-
d414129be87e
unix/uxplink.c
patch
|
blob
|
blame
|
history
diff --git
a/unix/uxplink.c
b/unix/uxplink.c
index
99acc6f
..
88d580c
100644
(file)
--- a/
unix/uxplink.c
+++ b/
unix/uxplink.c
@@
-129,10
+129,13
@@
void ldisc_update(void *frontend, int echo, int edit)
else
mode.c_lflag &= ~ECHO;
- if (edit)
+ if (edit) {
+ mode.c_iflag |= ICRNL;
mode.c_lflag |= ISIG | ICANON;
- else
+ } else {
+ mode.c_iflag &= ~ICRNL;
mode.c_lflag &= ~(ISIG | ICANON);
+ }
tcsetattr(0, TCSANOW, &mode);
}