Ctrl + D后如何重新启动stdin? [英] How to restart stdin after Ctrl+D?

查看:95
本文介绍了Ctrl + D后如何重新启动stdin?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行需要终端I输入的程序,可以通过Ctrl + D关闭" stdin.之后有什么办法可以重新打开标准输入?

Running a program expecting input from terminal I can "close" stdin by Ctrl+D. Is there any way to reopen stdin after that?

推荐答案

man 3 clearerr 手册页.

This is described in the very first sentence in the Description section of the man 3 clearerr man page.

这篇关于Ctrl + D后如何重新启动stdin?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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