From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: org-babel: interactive terminal support Date: Fri, 25 Sep 2009 19:02:54 -0400 Message-ID: <87hbuq631d.fsf@stats.ox.ac.uk> References: <87vdjabh2w.fsf@in-ulm.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MrJoj-0008N3-LL for emacs-orgmode@gnu.org; Fri, 25 Sep 2009 19:03:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MrJoc-0008LF-Lu for emacs-orgmode@gnu.org; Fri, 25 Sep 2009 19:03:06 -0400 Received: from [199.232.76.173] (port=58398 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MrJoc-0008LC-IZ for emacs-orgmode@gnu.org; Fri, 25 Sep 2009 19:03:02 -0400 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:59855) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MrJob-0003c3-Oq for emacs-orgmode@gnu.org; Fri, 25 Sep 2009 19:03:02 -0400 In-Reply-To: <87vdjabh2w.fsf@in-ulm.de> (Benjamin Andresen's message of "Wed, 23 Sep 2009 03:11:35 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Benjamin Andresen Cc: emacs-orgmode@gnu.org Benjamin Andresen writes: > 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) Hi Benny, This looks very interesting and I think it's extremely likely that we'll want to include your code -- thanks very much. Having said that, I'm being a bit dense: would you mind expanding a bit on what this currently does, and what it has the potential to do? Dan > > 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 > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode