You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there!,
While trying to force grademe to give me do_op ex (in the ambience of trying to fix issue #61)
I've noticed that entering the settings command the cheat commands are always ON and I cannot use any of them (force_success for example).
Also I've noticed that because you're using readline if in the settings menu I send the EOT signal i.e CTRL+D it enters an infinite loop where I can't write anymore. To solve that, in every read and evaluate loop you should check for EOF on the cin stream and if you find it it's because a CTRL+D was pressed. Bellow I'll leave a MRE of the checks that should be on the read and evaluate loop.
if (cin.eof() == true) { cin.clear(); clearerr(stdin); }
The text was updated successfully, but these errors were encountered:
Kuninoto
changed the title
Cheat commands always (falsely) ON & Undefined behavior
Cheat commands always (falsely) ON & Undefined behavior if CTRL+D is pressed
Feb 21, 2023
Hello there!,
While trying to force grademe to give me do_op ex (in the ambience of trying to fix issue #61)
I've noticed that entering the settings command the cheat commands are always ON and I cannot use any of them (force_success for example).
Also I've noticed that because you're using readline if in the settings menu I send the EOT signal i.e CTRL+D it enters an infinite loop where I can't write anymore. To solve that, in every read and evaluate loop you should check for EOF on the cin stream and if you find it it's because a CTRL+D was pressed. Bellow I'll leave a MRE of the checks that should be on the read and evaluate loop.
if (cin.eof() == true) { cin.clear(); clearerr(stdin); }
The text was updated successfully, but these errors were encountered: