Indentation in REPL

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
PhilG1300
Posts: 5
Joined: Tue Aug 30, 2016 7:15 pm

Indentation in REPL

Post by PhilG1300 » Sat Jul 08, 2017 10:52 am

Hi
When I am using the reply interface to upython I press TAB key to indent on a function link 'if' and I get the indented '>>>' . My question is how do I terminate the set of statements under the 'if' and get back to a non indented set of '>>>' ?
Regards
Phil

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: Indentation in REPL

Post by pfalcon » Sat Jul 08, 2017 11:26 am

Backspace?
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

PhilG1300
Posts: 5
Joined: Tue Aug 30, 2016 7:15 pm

Re: Indentation in REPL

Post by PhilG1300 » Sat Jul 08, 2017 11:50 am

Forgot to say that I'm using a Mac.
Yes you are correct if I use the 'screen' command, however I am using Coolterm program. This must be sending the wrong character to the upython board. In fact I see ^K on the screen when I press my backspace key when using Coolterm.
Will investigate further.
Thanks
Phil

Post Reply