在Clion IDE中将EOF发送到stdin [英] sending EOF to stdin in Clion IDE

查看:85
本文介绍了在Clion IDE中将EOF发送到stdin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Clion IDE中运行c程序时,是否可以将EOF发送到stdin?
我尝试了ctrl + D-它只是关闭了程序。
Ctrl + Z也不起作用。
有什么想法吗?

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-我在Windows 10操作系统上使用它。

BTW - I'm using it on a Windows 10 OS.

推荐答案

ctrl + D可以完成工作,但是存在一个已知的问题,为避免此问题,请禁用注册表中的选项 run.processes.with.pty (查找操作>注册表)。

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).

这篇关于在Clion IDE中将EOF发送到stdin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆