Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flashing black box in corner of output #24

Closed
hellocatfood opened this issue Aug 7, 2019 · 2 comments
Closed

Flashing black box in corner of output #24

hellocatfood opened this issue Aug 7, 2019 · 2 comments

Comments

@hellocatfood
Copy link

@hellocatfood hellocatfood commented Aug 7, 2019

I've used FBpyGIF with a gif and the color test mode and on each occasion there is a blinking black box in the bottom-left of the screen. This appears to be the terminal input cursor. Here's a video I recorded with my phone:

new

Tested on a Raspberry Pi 2 B+ and Raspberry pi 3

@chidea

This comment has been minimized.

Copy link
Owner

@chidea chidea commented Aug 8, 2019

It's because your console has a blinking cursor.

echo -e "\e[?1c" if you're on it's physical terminal
sudo bash -c 'echo -e "\e[?1c" > /dev/tty0' if you're on ssh
will fix it. Putting the first one in .bashrc will make it persistent.

The full information behind is in page below.
https://linuxgazette.net/137/anonymous.html

On Raspberry Pi, it can instead be fixed by adding below line to the file /boot/cmdline.txt
vt.global_cursor_default=0

Only one line of print function in this program would have fixed this issue but I'm not touching this library right now.
There is a much fast and efficient rust version of this program planned to be written soon and this issue is going to be fixed there.

@hellocatfood

This comment has been minimized.

Copy link
Author

@hellocatfood hellocatfood commented Aug 8, 2019

Thanks, that fixed it! Looking forward to the new version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.