[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] babel: fancy prompt messes up results of shell block
From: |
Grant Rettke |
Subject: |
Re: [O] babel: fancy prompt messes up results of shell block |
Date: |
Fri, 11 Sep 2015 12:59:40 -0500 |
On Fri, Sep 11, 2015 at 3:29 AM, Loris Bennett
<address@hidden> wrote:
> Hi,
>
> I have a bit of a fancy bash prompt and so the output of evaluating a
> block of shell script ends up a little messy:
>
> #+BEGIN_SRC sh :session install :results output
> echo blah
> #+END_SRC
>
> #+RESULTS:
> : blah
> : ]2;address@hidden [35m[10:21:45] address@hidden [36m(1058)
> [33m/home/loris/tmp[34m[0m
>
> Is there any way to avoid this short of resetting PS1 within the babel
> session?
It looks like `org-babel-sh-strip-weird-long-prompt' removed the
prompt from the output. Your prompt doesn't match that regex? Maybe
redefine it there.