Giter Club home page Giter Club logo

Comments (8)

martinbeentjes avatar martinbeentjes commented on August 28, 2024

Do you use the most recent version of the plugin? What other plugins are you using? Is this issue possibly caused by some other plugin?

from tmux-battery.

oblitum avatar oblitum commented on August 28, 2024

OK, just after reporting, it seems I have found the cause... it seems when the battery charging unicode character is 🔋 , which in my font is like the one in the screenshot, the issue happens. I'm wondering whether this happens because the character is tall.

If I replace the character with another normal one, the issue doesn't happen.

from tmux-battery.

martinbeentjes avatar martinbeentjes commented on August 28, 2024

Hmm, interesting case. The icon is a two byte unicode character. Does your terminal support that correctly?

from tmux-battery.

oblitum avatar oblitum commented on August 28, 2024

I think yes, I have no issue with unicode, and the other battery-full character, which is an unicode one too, doesn't provide the issue.

Answering previous questions, all plugins updates recently and I have bisect that the issue is with the tmux-battery.

from tmux-battery.

martinbeentjes avatar martinbeentjes commented on August 28, 2024

Well, I know that in #31 we discovered that two byte unicode characters can have some buggy behavior all the way into libc. I am wondering if the height of an character (more the height of an icon in this case) is the cause of this issue.

So the character you are using, is causing the terminal (or tmux?) to do a carriage return randomly?

from tmux-battery.

oblitum avatar oblitum commented on August 28, 2024

Yes. I'm sorry, I guess it's just an unicode issue now, I have done some more tests and it seems the behavior happens anytime an unicode character gets involved in any of the state changes. What I find strange though is that I've been using this plugin for quite a long time in the same xfce4 terminal emulator and it always worked fine, then one day after an update this stopped behaving well.

from tmux-battery.

oblitum avatar oblitum commented on August 28, 2024

I think it's a duplicate of #31.

from tmux-battery.

oblitum avatar oblitum commented on August 28, 2024

I think this and #31 should be fixed by now at least on ArchLinux, glibc was just upgraded to 2.26, supporting Unicode 10: tmux/tmux#1057 (comment).

from tmux-battery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.