modify prompt to use readline and add_history apis to allow editing inputs and navigating through past inputs