comparison simtool/main.c @ 13:7c26eac6ab00

simtool/main.c: fix reader name and ATR display logic
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 14 Mar 2021 07:22:13 +0000
parents ddd767f6e15b
children e2ef4b8e4136
comparison
equal deleted inserted replaced
12:2260fbd28b2a 13:7c26eac6ab00
20 if (rc) 20 if (rc)
21 exit(1); 21 exit(1);
22 else 22 else
23 good_exit(); 23 good_exit();
24 } 24 }
25 if (be_reader_name) 25 if (be_reader_name[0])
26 printf("Card reader name: %s\n", be_reader_name); 26 printf("Card reader name: %s\n", be_reader_name);
27 if (be_atr_string) 27 if (be_atr_string[0])
28 printf("ATR: %s\n", be_atr_string); 28 printf("ATR: %s\n", be_atr_string);
29 for (;;) { 29 for (;;) {
30 if (isatty(0)) { 30 if (isatty(0)) {
31 fputs("simtool> ", stdout); 31 fputs("simtool> ", stdout);
32 fflush(stdout); 32 fflush(stdout);