question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't work properly on Ubuntu

See original GitHub issue

Tried this on Ubuntu 16.04 x64 with Python 3.5.2 in both the default terminal and Terminator and the output doesn’t always print over the top of itself, instead printing on new lines as with regular print().

When I run the example from the README, none of the lines seem to reprint. I’ve also tried this other example and only the Total Progress line stays in the same spot (the Moving File line always prints on a new line).

Not sure if it matters, but I’m using zsh. I tried both of the above on OSX using Terminal.app (also using zsh) and it worked fine.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
Wulfrecommented, Jul 24, 2017

Not working on Windows 10 using Cmder – which is a wrapper for ConEmu. My case is probably a really niche one, but it is still a problem that you might want to know about. Python 3 if that makes any difference.

Horse

Files

EDIT:

It’s actually worse on the regular Command Line for Windows 10.

cmd

EDIT 2:

I fixed the problem by changing the magic character to \x1b[1A and changing the origin position (line 162) to print(magic_char * (max(last_output_lines, lines)), end=""). The escape code will not work on windows without using colorama though, so that would become a dependency and would require the line colorama.init() to be somewhere in the code (I have it on line 121).

1reaction
bobvdveldecommented, Jul 10, 2017

Looks good!

It reproduces nicely on my machine.

Thank for the update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ubuntu Linux PC Won't Boot? 5 Common Issues and Fixes
Ubuntu Not Booting? Try These 5 Tips · Check for bootable devices · Is the GRUB bootloader working? · Repair the bootloader menu...
Read more >
How to Fix Broken Ubuntu 20.04 without Reinstalling It
How to Fix Broken Ubuntu 20.04 without Reinstalling It · Step 1: Login from Live CD or bootable USB · Step 2: Remove...
Read more >
How to Fix an Ubuntu System When It Won't Boot - How-To Geek
How to Fix an Ubuntu System When It Won't Boot · Check if You Can Access the GRUB Boot Loader · Repair GRUB...
Read more >
Fixing a Broken Ubuntu GUI. Lessons learned from bad driver…
If your driver Installation failed and GUI broke down. If your GUI hung up for some reason, or the process didn't finish successfully,...
Read more >
Ubuntu Software Center Not Working? Here Are the Fixes
One of the oddest fixes for the Ubuntu Software Center not working problem is simply changing the language. You can even reselect your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found