how to use #readline thingy in python, but not for #python.

I want to write a TUI command, and would be great to attach some history feature to it

I want to scroll the history of sub-commands i wrote inside my command

@thefeditest I don't know how this is implemented in different tools that support REPL, but I've seen many of them to store the user's history to something like .<toolname>_history in the user's home folder.

I guess your tool could store those commands into said file and then capture the arrow up key and then show some sort of menu based on this history file.

In case you are not familiar with the acronym, REPL = Read Eval Print Loop

@erick i'm looking how ranger is doing it, as i'm inspired by this tool a lot.
@thefeditest I am not familiar with ranger, but I think that is an excellent approach, start with something you are familiar and then customize it to your project/users needs 👍