textinput - Python multi-line input -


Is there a way to input multi-line in Python? The solutions I have seen, do not allow you to edit the previous lines after entering and other problems are I am making a simple text editor in Python and I have to have a text input that can be multiplexed and left or By pressing the right button, the text will move the cursor. When some buttons are pressed, such as ctrl-s or ctrl-q, it would be good to have a method of obtaining text input after these rules, which will specify that when the input is finished, The button was pressed. For example, a function that will press a button and return a tuple with the text.
I am doing this with the console.

You want to take a look at the curses module that gives you access to console input and Allows to control various aspects of the output. Start with official HOWTO:


Comments