flush keyboard before netwrite

This commit is contained in:
chombier 2002-03-24 16:09:44 +00:00
parent 39400454b7
commit 0a164fbe47
1 changed files with 6 additions and 0 deletions

View File

@ -54,6 +54,9 @@ extern Boolean encryptOK; // true if des encryption routines available
#include "parse.proto.h" #include "parse.proto.h"
extern void VSprintf(char *fmt, ...);
extern void VSdump(char *p, int len);
static char *getcname(struct WindRec *tw); static char *getcname(struct WindRec *tw);
static void encryptStatechange(struct WindRec *tw); static void encryptStatechange(struct WindRec *tw);
static void process_suboption(struct WindRec *tw, unsigned char *start, unsigned char *end); static void process_suboption(struct WindRec *tw, unsigned char *start, unsigned char *end);
@ -109,6 +112,8 @@ void SendStringAsIfTyped(struct WindRec *tw, char *string, short len)
int j; int j;
int res; int res;
kbflush( tw );
trflush_mac_nat(tw); trflush_mac_nat(tw);
while (len) { while (len) {
@ -173,6 +178,7 @@ void SendStringAsIfTyped(struct WindRec *tw, char *string, short len)
// all over the place. // all over the place.
void SendCRAsIfTyped(struct WindRec *tw) void SendCRAsIfTyped(struct WindRec *tw)
{ {
kbflush( tw );
if (tw->echo) if (tw->echo)
parse(tw,(unsigned char *) "\012\015",2); /* BYU LSC */ parse(tw,(unsigned char *) "\012\015",2); /* BYU LSC */