root-project / cling

The cling C++ interpreter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Customize readline

Freed-Wu opened this issue · comments

commented

Describe the solution you'd like

Like readline, user can define its behavior by ~/.inputrc: prompt string, hotkeys, cursor shape.

Additional context

  1. Press <C-L> to clear screen
  2. Press .<TAB> to complete .q, .help, ...
  3. Display man printf when user input printf( like the following figure display help(os.path.dirname) when user input os.path.dirname(.

screen-2023-03-27-21-05-27

I'd like us to switch to llvm::LineEditor - would that address that?