S
S
Sergey2016-02-19 09:25:13
Python
Sergey, 2016-02-19 09:25:13

How to make cursor move keys work in python console?

When typing commands in the python console, I cannot use the arrow keys to move the cursor left and right along the line and move through the command history.
When pressing the left arrow key in the terminal, ^[[D is entered , with the right arrow ^[[C , etc.

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Alexey P, 2016-02-19
@ruddy22

Use the combinations C - a ---> move to the beginning of the line, C - e ---> move to the end of the line. c=ctrl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question