sending EOF to stdin in Clion IDE

天涯浪子 提交于 2019-11-28 09:05:40

ctrl+D does the job, however there is a known problem, to avoid it disable option run.processes.with.pty in Registry (Find Action > Registry).

Another option is to run the program from command line, and attach to it from CLion. In that case, you'll have your native shell.

It's detailed at https://blog.jetbrains.com/clion/2016/01/attach-to-local-process/

The process is very simple - after running the program from command line, choose Run->Attach to Local Process...

And choose your program from the list. You can type in the search field.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!