1#!/usr/bin/env python 2""" 3Example of `accept_default`, a way to automatically accept the input that the 4user typed without allowing him/her to edit it. 5 6This should display the prompt with all the formatting like usual, but not 7allow any editing. 8""" 9from prompt_toolkit import HTML, prompt 10 11if __name__ == "__main__": 12 answer = prompt( 13 HTML("<b>Type <u>some input</u>: </b>"), accept_default=True, default="test" 14 ) 15 16 print("You said: %s" % answer) 17