root-project / cling

The cling C++ interpreter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

^C shouldn't occur in history

Freed-Wu opened this issue · comments

commented

To Reproduce

  1. Enter cling
  2. Press #include <string.h>, then type <C-C>
  3. type <C-D> to exit cling
  4. Enter cling again
  5. type <C-P><C-P> to get the last input history

Expected behavior

#include <string.h>

Acctual behavior

#include <string.h>^C

$ cling
[cling]$ #include <string.h>^C
[cling]$ .q
$ cling
[cling]$ <C-P><C-P>
[cling]$ #include <string.h>^C

Setup

  1. Cling version 0.9
  2. Operating system 6.2.7-arch1-1
  3. How you obtained Cling, such as with cpt.py (also mention flags) / you built it yourself.
    pacman

Additional context