From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: Is it possible to add a :results type for ob-shell to interpret it's some special characters? Date: Sat, 24 Mar 2018 09:14:43 +0800 Message-ID: <80a60d0c-4aa0-3220-0506-c42a27c722e6@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------51758A7E88A7F7C96B5C676C" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ezXln-00050b-AF for emacs-orgmode@gnu.org; Fri, 23 Mar 2018 21:14:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ezXli-0006Gc-Bb for emacs-orgmode@gnu.org; Fri, 23 Mar 2018 21:14:55 -0400 Received: from mail-pl0-x236.google.com ([2607:f8b0:400e:c01::236]:43213) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ezXli-0006GB-4H for emacs-orgmode@gnu.org; Fri, 23 Mar 2018 21:14:50 -0400 Received: by mail-pl0-x236.google.com with SMTP id f23-v6so8458092plr.10 for ; Fri, 23 Mar 2018 18:14:49 -0700 (PDT) Received: from [0.0.0.0] ([119.28.89.243]) by smtp.gmail.com with ESMTPSA id f64sm820114pfa.154.2018.03.23.18.14.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Mar 2018 18:14:47 -0700 (PDT) Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: org-mode This is a multi-part message in MIME format. --------------51758A7E88A7F7C96B5C676C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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. --------------51758A7E88A7F7C96B5C676C Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

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.

--------------51758A7E88A7F7C96B5C676C--