Code review comment for ~ltrager/maas:emulate_terminal

Revision history for this message
Lee Trager (ltrager) wrote :

The carriage return and back slash are how you change the output on the screen. [1] is a spinner. It writes the character, sleeps, then moves the position back one space and writes over it. \b would be used to update a counter or any other character as well. MAAS now looks for the backspace and carriage return characters and seeks back as a terminal does. So previously if you ran [1] as a test script in MAAS you would get a file containing 'Processing... ' and '|/-\\' 10 times repeated, now you just get 'Processing... '

http://paste.ubuntu.com/25143239/

« Back to merge proposal