#include int main() { char inputShell; while (1) { printf("cpass> "); inputShell = getchar(); while(getc(stdin) != '\n'); // clear stdin ('\n') if (inputShell == 'q') break; } return 0; }