projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Introduce a sane interface function, from_backend(), for backends to
[u/mdw/putty]
/
ldisc.c
diff --git
a/ldisc.c
b/ldisc.c
index
b72c772
..
10576d2
100644
(file)
--- a/
ldisc.c
+++ b/
ldisc.c
@@
-16,8
+16,11
@@
*/
static void c_write (char *buf, int len) {
- while (len--)
- c_write1(*buf++);
+ from_backend(0, buf, len);
+}
+
+static void c_write1 (char c) {
+ c_write(&c, 1);
}
static char *term_buf = NULL;