Autocompletion First Stage

I decided to use the raw mode in order to be able to listen to characters entered in my terminal step by step and despite passing the test. My tester is saying that it received something while I obviously flushed my stdout.

This is my repository: Codecrafters-Shell/src/command.c at master · Dharld/Codecrafters-Shell · GitHub.

I think that it fails at the level of the switch - CMD_EXIT of executeCommand.

Hey @Dharld, looks like you’ve got past this stage. Do you happen to remember what was wrong? Would love to see if we can improve the tester / instructions.

Hey @andy1li. My main problem was that I had to clear the line after the exit 0 built-in. I found it counterintuitive at first and I had to debug for a long time so it might be good if we count it as valid even though we keep the command after executing it.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.