Put on_prompt() setting with its implementation