Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cling behaving poorly in emacs eshell and comint (or when TERM=dumb?) #481

Open
1 task done
Inc0n opened this issue Dec 9, 2022 · 2 comments
Open
1 task done
Labels

Comments

@Inc0n
Copy link

Inc0n commented Dec 9, 2022

  • Checked for duplicates

Describe the bug

cling running in emacs eshell and comint will result in input string to be repeated severals times before the output is printed.

[cling]$ 1
11
(int) 1
[cling]$ 2
22
(int) 2
[cling]$ apple
aapappapplappleapple
input_line_6:2:2: error: use of undeclared identifier 'apple'
 apple
 ^
[cling]$ 

Expected behavior

Using cling in emacs term or in terminal.app, cling behaves normally:

[cling]$ 1
(int) 1
[cling]$ 2
(int) 2
[cling]$ apple
input_line_6:2:2: error: use of undeclared identifier 'apple'
 apple
 ^
[cling]$ 

To Reproduce

  1. fire emacs
  2. open eshell
  3. start cling
  4. type any input and press enter
  5. the input string is repeated several times.

Setup

cling version: stable 0.9
OS: mac 12.3
Installed via brew

Additional context

@Inc0n Inc0n added the bug label Dec 9, 2022
@Inc0n
Copy link
Author

Inc0n commented Dec 9, 2022

Here is some additional information (raw output inside emacs comint cling ):

[cling]$ 1
1^[[D1
(int) 1
[cling]$ 12
1^[[D12^[[D^[[D12
(int) 12
[cling]$ 123
1^[[D12^[[D^[[D123^[[D^[[D^[[D123
(int) 123

@SimeonEhrig
Copy link
Contributor

I can confirm the behavior but I have no idea why. I switched to another terminal like term.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants