Comments (8)
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.
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.
Hmm, interesting case. The icon is a two byte unicode character. Does your terminal support that correctly?
from tmux-battery.
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.
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.
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.
I think it's a duplicate of #31.
from tmux-battery.
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)
- unable to showdischarge status in new WSL
- No indication at powerline HOT 1
- No indication at all HOT 1
- [feature] Support Android HOT 3
- Add colour for battery_status when charging HOT 1
- I'm seeing time remaining as a decimal not time HOT 3
- Support for custom background colors HOT 2
- Separate custom background and foreground colors
- Contributor name fix HOT 2
- Unable to see battery_percentage in status-right HOT 2
- Status line print the decimal points of the percentage of the remaining battery
- Can I use this on WSL? HOT 1
- [Solved] battery percentage wrong when I have a second battery
- UPS support
- Feature: Suggest to charge/remove charging at 20% or 80%
- Is there a way to make the background "transparent" or at least consistently one color? HOT 2
- Battery status not showing in Termux HOT 1
- batt_icon_status_charged /_charging, .._discharching: HOT 3
- battery status does not work with acpi (but with upower)
- Two Battery Laptop (Lenovo Thinkpad T70s) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmux-battery.