linux的系统(“PAUSE”)? [英] system("PAUSE") for linux?

查看:194
本文介绍了linux的系统(“PAUSE”)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有类似Linux的系统(PAUSE)?

解决方案

文章< di ******* ***@news.net.uni-c.dk> ;, Paminu< ja ****** @ asd.com>写道:

:是否有类似linux的系统(PAUSE)?


就这个新闻组而言,确切的替换是< br $> b $ b系统(PAUSE);


这是因为就这个新闻组而言,PAUSE已经

一个未识别的系统相关函数。如果要描述

PAUSE的功能,那么Unix或Linux新闻组将能够告诉你最接近的Linux等价物是什么。

在某些系统上,PAUSE意味着暂停系统上的CPU活动,直到

存在中断。在其他情况下,它意味着暂停活动过程

1秒。在其他情况下,它意味着刷新任何待处理的输出和

等待按下一个键然后继续(不等待

a换行符。)在其他情况下,换行符是需要。在其他情况下,这意味着

打印与未找到命名程序相关的错误消息

或命令。在其他情况下,它意味着寻找一个可执行程序

在当前目录中命名为PAUSE并执行它,具有任何

后果。其他人则意味着在当前定义的

程序位置列表中查找名为PAUSE的

可执行程序,并执行它,不管有什么后果。 ;


可能最常见的意思是播放录音

你的声音告诉狗狗把它的爪子从家具上取下来。

如果那是你要找的那个,请参阅

Linux常见问题解答的第93.11节,其中讨论了获得高保真度的各种方法
/>
在各种声卡上播放他的主人的声音

和Midi Synthesizers。

-

一切都是虚荣。 - 传道书


Paminu< ja ****** @ asd.com>写道:

是否有类似Linux的系统(PAUSE)?




我们不知道。尝试Linux或Unix组。 comp.unix.programmer可能会问这个问题 - 但首先要解释一下

系统(PAUSE)的含义。


但首先,请尝试阅读系统附带的文档。


-

Keith Thompson(The_Other_Keith) ks *** @ mib.org < http://www.ghoti.net/~kst>

圣地亚哥超级计算机中心< *> < http://users.sdsc.edu/~kst>

我们必须做点什么。这是事情。因此,我们必须这样做。


Paminu写道:

是否有类似Linux的系统(PAUSE)?



这是comp.lang.c的主题,你应该发布到

comp.unix.programmer。但是,我已经为Linux编写了一个MS-DOS

pause命令的克隆,我可以在这里给你一个链接。

http://members.optushome.com.au/sbiber/pause-1.0。 tar.gz


它也适用于其他类Unix系统。解压缩,转到

目录pause-1.0,然后输入

make

来构建,你可以输入

sudo make install

将可执行文件复制到/ usr / local / bin

-

Simon。


Is there something like system("PAUSE") for linux?

解决方案

In article <di**********@news.net.uni-c.dk>, Paminu <ja******@asd.com> wrote:
:Is there something like system("PAUSE") for linux?

As far as this newsgroup is concerned, the exact replacement is

system("PAUSE");

That''s because as far as this newsgroup is concerned, PAUSE has
an unidentified system-dependant function. If the functionality of
PAUSE were to be described, then a Unix or Linux newsgroup would be
able to tell you what the nearest Linux equivilent would be.
On some systems, PAUSE means "suspend CPU activity on the system until
there is an interrupt". On others, it means "suspend the active process
for 1 second". On others, it means "flush any pending output and
wait until a key is pressed and then continue (without waiting for
a newline.) On others, the newline is required. On others, it means
"print the error message associated with not finding a named program
or command". On others it means "look for an executable program
named PAUSE in the current directory and execute it, with whatever
consequences that has." Others yet it would mean "look for an
executable program named PAUSE in the currently defined list of
program locations, and execute it, with whatever condequences that has."

Possibly the most common meaning, though, is "Play a recording
of your voice telling the dog to get his paws off of the furniture."
If that''s the one you were looking for, see section 93.11 of the
Linux FAQ, which discusses the various ways of getting high-fidelity
playback of His Master''s Voice on various kinds of sound cards
and Midi Synthesizers.
--
All is vanity. -- Ecclesiastes


Paminu <ja******@asd.com> writes:

Is there something like system("PAUSE") for linux?



We don''t know. Try a Linux or Unix group. comp.unix.programmer is a
likely place to ask about this -- but first explain what
system("PAUSE") means.

But first, try reading the documentation that comes with the system.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.


Paminu wrote:

Is there something like system("PAUSE") for linux?



This is off-topic for comp.lang.c, you should have posted to
comp.unix.programmer. However, I have written a clone of the MS-DOS
pause command for Linux, and I can give you a link to it here.

http://members.optushome.com.au/sbiber/pause-1.0.tar.gz

It should work on other Unix-like systems too. Extract it, change to the
directory pause-1.0, and type
make
to build, and you can type
sudo make install
to copy the executable to /usr/local/bin

--
Simon.


这篇关于linux的系统(“PAUSE”)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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