stav> swipl
Welcome to SWI-Prolog (threaded, 64 bits, version 8.0.3)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.
For online help and background, visit http://www.swi-prolog.org
For built-in help, use ?- help(Topic). or ?- apropos
我是按照
关于如何启动how服务器。
$ python manage.py runserver
Validating models...
0 errors found
September 21, 2013 - 06:12:41
Django version 1.5.4, using settings 'tango_with_django_project.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
但是为了阻止一个But服务
我有以下问题。我想在Linux终端中执行一些特定的操作,直到调用键组合CTRL+D为止。我已经找到了一个用于C++的库函数,它可以做到这一点,但对于Linux却不是一个简单的解决方案。代码框架如下所示:
while(!invoked){ //Until CTRL+D is pressed
//Do something
}
//Continue when CTRL+D is invoked
这个是可能的吗?