~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't quit the plink main loop until the stdout and stderr buffers
[sgt/putty]
/
ldisc.c
diff --git
a/ldisc.c
b/ldisc.c
index
e1b5a38
..
492ad1e
100644
(file)
--- a/
ldisc.c
+++ b/
ldisc.c
@@
-61,7
+61,7
@@
static void bsb(int n)
#define CTRL(x) (x^'@')
#define KCTRL(x) ((x^'@') | 0x100)
#define CTRL(x) (x^'@')
#define KCTRL(x) ((x^'@') | 0x100)
-void ldisc_send(char *buf, int len)
+void ldisc_send(char *buf, int len
, int interactive
)
{
int keyflag = 0;
/*
{
int keyflag = 0;
/*
@@
-86,6
+86,8
@@
void ldisc_send(char *buf, int len)
while (len--) {
int c;
c = *buf++ + keyflag;
while (len--) {
int c;
c = *buf++ + keyflag;
+ if (!interactive && c == '\r')
+ c += KCTRL('@');
switch (term_quotenext ? ' ' : c) {
/*
* ^h/^?: delete one char and output one BSB
switch (term_quotenext ? ' ' : c) {
/*
* ^h/^?: delete one char and output one BSB