From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Andresen Subject: Re: org-babel: interactive terminal support Date: Thu, 24 Sep 2009 01:46:49 +0200 Message-ID: <87zl8lp6l2.fsf@in-ulm.de> 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 1MqbYR-0004IS-LN for emacs-orgmode@gnu.org; Wed, 23 Sep 2009 19:47:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqbYO-0004H1-2Q for emacs-orgmode@gnu.org; Wed, 23 Sep 2009 19:47:23 -0400 Received: from [199.232.76.173] (port=48925 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqbYN-0004Gw-Oz for emacs-orgmode@gnu.org; Wed, 23 Sep 2009 19:47:19 -0400 Received: from mail.in-ulm.de ([217.10.8.10]:37856) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MqbYM-0005Xk-1s for emacs-orgmode@gnu.org; Wed, 23 Sep 2009 19:47:19 -0400 In-Reply-To: (Eric Schulte's message of "Wed, 23 Sep 2009 17:02:30 -0600") 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: Eric Schulte Cc: emacs-orgmode@gnu.org Hey Eric, "Eric Schulte" writes: > Benjamin Andresen 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