From: Dan Davison <davison@stats.ox.ac.uk>
To: Benjamin Andresen <benny@in-ulm.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: org-babel: interactive terminal support
Date: Mon, 28 Sep 2009 15:55:04 -0400 [thread overview]
Message-ID: <87tyym9753.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <873a6aob6z.fsf@in-ulm.de> (Benjamin Andresen's message of "Sat, 26 Sep 2009 01:29:24 +0200")
Benjamin Andresen <benny@in-ulm.de> writes:
> Hey Dan,
>
> Dan Davison <davison@stats.ox.ac.uk> writes:
>
>> 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?
>
> All it currently does it show you a terminal which gets the source
> code block send to. Just like an inferior process.
Hi Benny,
Thanks a lot for that, it looks really promising. Do you want to create
a branch in a publicly accessible org-mode repo containing your
additions? I've created an org mode fork for org-babel development at
git://repo.or.cz/org-mode/babel.git
webpage
http://repo.or.cz/w/org-mode/babel.git
which you could use (I'll send you the admin password offline so you can
give yourself push rights).
Dan
>
> I've made a gif of the channels.org example from my first mail:
> http://github.com/bandresen/org-babel-screen/blob/master/channels.anim.gif
>
> The way I currently see it, it somehow works as an interactive makefile.
>
> An example of a use that I have is that want to extract several frames
> out of a video file and convert them to a gif animation.
>
> It's a commented org file with several steps such as:
>
> * find the part you want to extract
> #+begin_src screen :session create-gif
> mplayer -ao null -osdlevel 3 /tmp/videofile.avi
> #+end_src
> [...snip...]
> * convert selected frames to gif
> #+begin_src screen :session create-gif
> convert -delay 100 -loop 0 .qiv-select/* animation.gif
> #+end_src
>
> I don't know how useful it is to other people, but because it basically
> gives you the power over a terminal emulator you could do anything in it
> that you can do in a normal terminal. Except better controlled and
> documented.
>
> Or one could use a standardized notation for keypresses and let screen
> translate them for you. Example:
>
> #+begin_src screen :session vimtutorial
> vimtutor
> 85G
> fcx
> EEx
> llx
> ^Vjjjjlllx
> #+end_src
>
> Which might be useful in some way.
>
> Another thing that might be possible is to simulate an 'expect' like
> behavior by using screen's capability to dump the output of commands.
> It's certainly possible, but replacing an app like 'expect' is no small
> task. :-)
>
> br,
> 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
next prev parent reply other threads:[~2009-09-28 19:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2009-09-28 20:36 ` Benjamin Andresen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tyym9753.fsf@stats.ox.ac.uk \
--to=davison@stats.ox.ac.uk \
--cc=benny@in-ulm.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).