Explorar el Código

faux-getch: More suitable output

Serj Kalichev hace 4 años
padre
commit
966c6cf60c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      utils/faux-getch.c

+ 1 - 1
utils/faux-getch.c

@@ -17,7 +17,7 @@ int main(void)
 		tcsetattr( STDIN_FILENO, TCSANOW, &newt);
 
 		c = getchar();
-		printf("%u 0x%x\n", (unsigned char)c, (unsigned char)c);
+		printf(" %u 0x%x\n", (unsigned char)c, (unsigned char)c);
 
 		// Restore terminal
 		tcsetattr( STDIN_FILENO, TCSANOW, &oldt);