all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-babel: interactive terminal support
@ 2009-09-23  1:11 Benjamin Andresen
  2009-09-23 23:02 ` Eric Schulte
  2009-09-25 23:02 ` Dan Davison
  0 siblings, 2 replies; 7+ messages in thread
From: Benjamin Andresen @ 2009-09-23  1:11 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

after seeing org-babel I immediately thought of the eev project by
Eduardo Ochs (http://angg.twu.net/)

Basically I wanted to do what he does in this video:
http://angg.twu.net/eev-current/anim/channels.anim.html

So I wrote a small org-babel gnu screen interface.
Eev does the same with "expect" but is very line-centric. And GNU Screen
can slurp in whole files. (I guess one could support several backends if
this proves useful)

The translated org-babel syntax looks like this:

* Listen on port 1234
  #+begin_src screen :session receiver :results silent
    netcat -l -p 1234
  #+end_src

* Send things to port 1234
  #+begin_src screen :session sender :results silent
    {   
     echo hi
     sleep 1
     echo bye 
     sleep 1
    } | netcat -c localhost 1234
  #+end_src

I've put the code on github if anyone is interested in this:
http://github.com/bandresen/org-babel-screen

A few things are still hardcoded, like the use of /bin/zsh. If you guys
think this is a worthwhile addition to org-babel, let me know what the
right parameter would be.

HTH,
benny

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-09-28 20:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-23  1:11 org-babel: interactive terminal support Benjamin Andresen
2009-09-23 23:02 ` Eric Schulte
2009-09-23 23:46   ` Benjamin Andresen
2009-09-25 23:02 ` Dan Davison
2009-09-25 23:29   ` Benjamin Andresen
2009-09-28 19:55     ` Dan Davison
2009-09-28 20:36       ` Benjamin Andresen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.