emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Benjamin Andresen <benny@in-ulm.de>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-babel: interactive terminal support
Date: Thu, 24 Sep 2009 01:46:49 +0200	[thread overview]
Message-ID: <87zl8lp6l2.fsf@in-ulm.de> (raw)
In-Reply-To: <m2sked6z95.fsf@gmail.com> (Eric Schulte's message of "Wed, 23 Sep 2009 17:02:30 -0600")

Hey Eric,

"Eric Schulte" <schulte.eric@gmail.com> writes:

> Benjamin Andresen <benny@in-ulm.de> writes:
>
> So if I understand the purpose is to evaluate source-code blocks in
> Org-mode files which will open terminals in new windows, send shell
> commands to those terminals, and either display information in the
> terminals and possible insert output from those terminals into Org-mode
> buffers?
The first part is correct. It will open different terminals depending on
the amount of sessions specified and run the code in the source-code
blocks.

It's only a one-way street at the moment though, the resulting output is
currently dismissed. (But possible to get, depending on what
shell/config is used. screen's hardcopy.)

> I like the idea, however I can't get it working on my Mac.  I am able to
> pop open new xterms, however nothing seems to make it into or out of
> screen (maybe this is because I all ways have screen running as my
> normal terminal emulator?).

Nope, that shouldn't have anything to do with it. I also have screen
running at all times. It's creating a new screen instance for every
session. The sockets are named org-babel-session-$SESSION.

The problem might be in line 49, because I hard-coded a one second sleep
timer in there to only send the resulting source code block afterward.
(To give xterm and screen a time to spawn.)

That's pretty dirty and I should fix that.

> I don't see where you have /bin/zsh hard-coded...

That's because my mail was sent before I had a look around how other
modes handle parameter. Now it's defaulting to "sh" but it can be
changed with :cmd

> Thanks! -- Eric
>

br,
benny

  reply	other threads:[~2009-09-23 23:47 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 [this message]
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

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=87zl8lp6l2.fsf@in-ulm.de \
    --to=benny@in-ulm.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /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).