gpt4 book ai didi

keyboard - 如何将 EOF 发送到 Cygwin 控制台?

转载 作者:行者123 更新时间:2023-12-03 06:41:46 26 4
gpt4 key购买 nike

在cygwin控制台中,我想通过键盘发送EOF。我尝试了 Ctrl + D、Ctrl + Z 等,但都出错了。

示例)

$ php
<?php
echo "test\n";
{ Push Ctrl + D, then nothing happens. }

$ php
<?php
echo "test\n";
{ Push Ctrl + Z, then "Stopped" appears and echo above doesn't invoked. }

有没有办法将 EOF 发送到 Cygwin 控制台?

最佳答案

Ctrl-D 发送 EOF。您的第一次尝试失败的原因是您的代码缺少右大括号。请尝试以下操作:

$ php
<?php
echo "test\n";
?>

然后Ctrl-D,您将看到test打印到控制台。

关于keyboard - 如何将 EOF 发送到 Cygwin 控制台?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17248572/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com