+echo() +noecho()

This commit is contained in:
phyto
2019-05-20 18:57:09 +02:00
parent e0dcbebd30
commit 32379c5441
2 changed files with 6 additions and 4 deletions

View File

@@ -88,7 +88,9 @@ do {
/*** est-ce le yuser avec son clavier ? */
if (FD_ISSET(fd_local, &rfds)) {
received = getch();
noecho();
received = wgetch(glass);
echo();
#if DEBUG_LEVEL > 1
sprintf(ligne, " got $%X\n", received);
@@ -123,9 +125,8 @@ int foo;
// unsigned char byte;
int fd_stdin;
lin_term = col_term = 4; /* position */
wid_term = 60;
hei_term = 25;
lin_term = 4; col_term = 9; /* position */
wid_term = 60; hei_term = 25; /* dimensions */
fd_stdin = fileno(stdin); /* for select or pool */