Interactive input in emacs is echoed progressively

Hi,
I’ve downloaded and compiled cling with the provided build script.
When I run it in emacs shell buffer, but also with then inferior-cling from https://github.com/brianqq/inferior-cling/blob/master/cling.el
the input is repeated progressively like so:

[cling]$ .printDebug 0
..p.pr.pri.prin.print.printD.printDe.printDeb.printDebu.printDebug.printDebug .printDebug 0.printDebug 0
[cling]$ #include <stdio.h>
##i#in#inc#incl#inclu#includ#include#include #include <#include <s#include <st#include <std#include <stdi#include <stdio#include <stdio.#include <stdio.h#include <stdio.h>#include <stdio.h>
[cling]$ printf("Hello World!\n");
pprpriprinprintprintfprintf(printf("printf("Hprintf("Heprintf("Helprintf("Hellprintf("Helloprintf("Hello printf("Hello Wprintf("Hello Woprintf("Hello Worprintf("Hello Worlprintf("Hello Worldprintf("Hello World!printf("Hello World!\printf("Hello World!\nprintf("Hello World!\n"printf("Hello World!\n")printf("Hello World!\n");printf("Hello World!\n");
Hello World!
[cling]$

I’m new to cling, what source file would I have to look and patch to correct this?

Hi,

That’s https://github.com/root-project/cling/pull/99 and https://sft.its.cern.ch/jira/browse/ROOT-4454

I.e. it’s in the works!

Axel.