[program-l] Re: Command line interface editing using python.

  • From: ntsiklauri2@xxxxxxxxx
  • To: program-l@xxxxxxxxxxxxx
  • Date: Sat, 1 Jun 2019 10:49:43 +0400

Once you have the value, you can add it to the list normaly. In command line, 
there is no out of the box command that lets you do that. you'll have to do it 
manually.

Sent from my iPhone

On Jun 1, 2019, at 07:22, <mhysnm1964@xxxxxxxxx> <mhysnm1964@xxxxxxxxx> wrote:

All,
I have a list (array) with pre-populated. I want to modify some of the 
elements via console using python. I have found the input() command  for 
python 3.7. But function does not allow me to insert a variable to be edited.
 
For example:
 
A = ‘test of text’
B = Input (‘Modify:’)
 
The above function does not allow you to show the following and modify:
 
 
Modify: test of text
 
Then I want to use the backspace, arrow keys, etc to change the “test of 
text” to something else and on pressing enter the new value is saved in a 
variable. This I want to do in the console. Not GUI.
 
 
 
 

Other related posts: