another bug killed ?

This commit is contained in:
phyto 2019-05-20 14:52:26 +02:00
parent 54a41cfeb3
commit 913da05ee0

View File

@ -82,17 +82,19 @@ do {
special_dumper(stderr, received); special_dumper(stderr, received);
fflush(stderr); fflush(stderr);
} }
waddch(glass, received);
if ('\n' == received) waddch(glass, '\r'); if ('\r' != received) waddch(glass, received);
// if ('\n' == received) waddch(glass, '\r');
} }
/*** est-ce le yuser avec son clavier ? */ /*** est-ce le yuser avec son clavier ? */
if (FD_ISSET(fd_local, &rfds)) { if (FD_ISSET(fd_local, &rfds)) {
received = getch(); received = getch();
if (verbosity) { //XXX if (verbosity) {
sprintf(ligne, " $%02x from yuser\n", received); //XXX sprintf(ligne, " $%02x from yuser\n", received);
waddstr(glass, ligne); //XXX waddstr(glass, ligne);
} //XXX }
putbyte(fd_remote, received); putbyte(fd_remote, received);
} }