root-project / cling

The cling C++ interpreter
Other
3.41k stars 267 forks source link

Customize readline #494

Open Freed-Wu opened 1 year ago

Freed-Wu commented 1 year ago

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

Axel-Naumann commented 1 year ago

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