trogdoro / xiki

A shell console with GUI features
http://xiki.org
Other
3.76k stars 207 forks source link

Blocking commands #22

Closed Spoygg closed 11 years ago

Spoygg commented 11 years ago

Entering command like: tail -f /var/log/apache2/error.log

will freeze Emacs. Is there a way to "kill" command? I am not an Emacs user, so maybe there is a simple solution :)

P.S.: fantastic concept, I was pondering why there is nothing like Xiki but now there is :)

trogdoro commented 11 years ago

In xiki you can run the command starting with % instead of $ to run async commands.

$ ls # For commands that return quickly % ls # Will run in an async shell

Behind the scenes, "%" uses the amazing "(shell)" emacs feature that runs an embedded shell in a new view. You can then search in the view and grab text from it etc.

For editors like vim that can't do async shells, sending commands out to other shell apps is a decent work-around. In the mac you can do this with applescript. On other platforms I'm guessing there are console apps that you can send commands to at runtime for them to run.

Spoygg commented 11 years ago

Thank you very much :)