How can I skip getch press enter key to continue with function or command

Dec 20, 2022 at 7:07pm
Need to skip getch press enter key with function or terminal command
Dec 20, 2022 at 7:31pm
Use an if statement
1
2
if (! should_skip_getch)
  x = getch();
Last edited on Dec 20, 2022 at 7:31pm
Dec 20, 2022 at 7:38pm
getch is silent, the press enter to continue is usually an indication that you ran it from inside VS without a console open and it has run to completion.
Topic archived. No new replies allowed.