Procházet zdrojové kódy

faux-getch: More suitable output

Serj Kalichev před 4 roky
rodič
revize
966c6cf60c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);