Skip to content

Run cling with no terminal niceties #555

@rusimody

Description

@rusimody

I want to run cling (for teaching a programming course) under emacs

But terminal niceties seem to come in the way (color? readline?)

Is there an option to run cling "dumb"?

Emacs demo session:

[cling]$ int foo(int x) { return x + 1;}
iinintint int fint foint fooint foo(int foo(iint foo(inint foo(intint foo(int int foo(int xint foo(int x)int foo(int x) int foo(int x) {int foo(int x) { int foo(int x) { rint foo(int x) { reint foo(int x) { retint foo(int x) { retuint foo(int x) { returint foo(int x) { returnint foo(int x) { return int foo(int x) { return xint foo(int x) { return x int foo(int x) { return x +int foo(int x) { return x + int foo(int x) { return x + 1int foo(int x) { return x + 1;int foo(int x) { return x + 1;}int foo(int x) { return x + 1;}
[cling]$ foo
ffofoofoo
(int (*)(int)) Function @0x79f84a9a6000
  at input_line_3:1:
int foo(int x) { return x + 1;}

Same in bash

[cling]$ int foo(int x) { return x + 1;}
[cling]$ foo
(int (*)(int)) Function @0x7f5bae62b000
  at input_line_3:1:
int foo(int x) { return x + 1;}

[cling]$ 

cling version 1.1
clang version 16.0.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions