노트

Clion IDE Stdin 에 EOF 보내기

tose33 2023. 10. 9. 12:40

https://stackoverflow.com/questions/36405577/sending-eof-to-stdin-in-clion-ide

 

sending EOF to stdin in Clion IDE

Is there a way to send EOF to stdin when running a c program in Clion IDE? I tried ctrl+D - it simply shuts the program down. Ctrl+Z doesn't work either. Any ideas? BTW - I'm using it on a Windows...

stackoverflow.com

 

clion ide 에 eof 를 보내는 방법은 원래는 맥 기준 cmd+d, window 기준 ctrl+z 이다. 

 

그런데 clion 에 eof 를 보낼시 출력 없이 종료되버리는 버그가 있다고 한다.

 

해결 방법은 Help-Find Action 에서 Registry 입력 

 

run.process.with.pty 를 disable 해주면 된다.