From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 44C967F89F for ; Mon, 24 Mar 2014 14:21:46 +0100 (CET) X-IronPort-AV: E=Sophos;i="4.97,720,1389740400"; d="scan'208";a="64446130" Received: from top-wifi.irisa.fr (HELO top-wifi) ([131.254.66.192]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA; 24 Mar 2014 14:21:36 +0100 From: Alan Schmitt To: OCaml Mailing List Date: Mon, 24 Mar 2014 14:17:56 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) MIME-Version: 1.0 Content-Type: text/plain Subject: [Caml-list] ocaml toplevel: is it possible to separate what is sent on stdout from the answers from the toplevel? Hello, I'm looking into extending the OCaml support in org-mode, and to do so I would like to distinguish what is printed out as replies from the toplevel from the data printed from the program. To give a precise example, I would like to split "foo" from "val x : int = 3" in the following interaction: --8<---------------cut here---------------start------------->8--- # let x = print_endline "foo"; 3;; foo val x : int = 3 --8<---------------cut here---------------end--------------->8--- Is there a way to do it? Thanks, Alan