[clfswm-devel] Cannot display the result of clisp shell function ?
z_axis
z_axis at 163.com
Mon Oct 15 00:28:25 UTC 2012
I see now. thanks!
在 Sun, 14 Oct 2012 20:05:07 +0800,Philippe Brochard
<pbrochard at common-lisp.net> 写道:
> z. axis writes:
>
>> In the eval window, (shell "ls ~") will output nothing.
>>
> No, it output nothing because the command is passed to the underlying
> shell and is not captured by the lisp.
>
> What you want can be done by redirecting the shell output to a stream:
>
> (let ((output (run-shell-command "ls ~" :output :stream))) (loop for
> line = (read-line output nil nil) while line do (print line)))
>
> For what you want, you'd better use the present-clfswm-terminal function
> bound to Control+F12 by default. Or an external program like guake.
>
> But if you have often a use for this in lisp, we can add a function to
> do this. Just request.
>
>> Regards!
>>
> Regards,
>
> Philippe
>
> _______________________________________________
> clfswm-devel mailing list
> clfswm-devel at common-lisp.net
> http://lists.common-lisp.net/cgi-bin/mailman/listinfo/clfswm-devel
--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
More information about the clfswm-devel
mailing list