all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Is it possible to add a :results type for ob-shell to interpret it's some special characters?
@ 2018-03-24  1:14 stardiviner
  2018-03-24 15:42 ` stardiviner
  0 siblings, 1 reply; 2+ messages in thread
From: stardiviner @ 2018-03-24  1:14 UTC (permalink / raw)
  To: org-mode

[-- Attachment #1: Type: text/plain, Size: 391 bytes --]

When I have following src block

#+begin_src shell :dir /sudo::
sudo pacman -S --noconfirm lilypond
#+end_src

It will display result literately. include "^M".

I wish org-mode (or ob-shell) can add a result type like `:results term` 
(maybe other name) to replace those "^M" etc special characters and 
might convert some shell color highlight special sequences like [[45 
similar things.


[-- Attachment #2: Type: text/html, Size: 1502 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Is it possible to add a :results type for ob-shell to interpret it's some special characters?
  2018-03-24  1:14 Is it possible to add a :results type for ob-shell to interpret it's some special characters? stardiviner
@ 2018-03-24 15:42 ` stardiviner
  0 siblings, 0 replies; 2+ messages in thread
From: stardiviner @ 2018-03-24 15:42 UTC (permalink / raw)
  To: org-mode

[-- Attachment #1: Type: text/plain, Size: 791 bytes --]

I found new possible solution:

comint-based modes like shell-mode use functions in hook.

Like

- ansi-color-process-output

And I found similar project "xterm-color":

https://github.com/atomontage/xterm-color

I can't implement it on Org-moderesult processing.

But someone might be interested this and can take a try. Thanks.


On 03/24/2018 09:14 AM, stardiviner wrote:
>
> When I have following src block
>
> #+begin_src shell :dir /sudo::
> sudo pacman -S --noconfirm lilypond
> #+end_src
>
> It will display result literately. include "^M".
>
> I wish org-mode (or ob-shell) can add a result type like `:results 
> term` (maybe other name) to replace those "^M" etc special characters 
> and might convert some shell color highlight special sequences like 
> [[45 similar things.
>


[-- Attachment #2: Type: text/html, Size: 5460 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-24 15:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-24  1:14 Is it possible to add a :results type for ob-shell to interpret it's some special characters? stardiviner
2018-03-24 15:42 ` stardiviner

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.