Comments (2)
I'm not sure whether it's possible to prevent flickering when redrawing the same image in the same spot. TUI libraries like tcell
typically maintain an internal buffer which stores the contents of the screen before flushing them to the actual terminal. As only changes in the internal buffer are flushed, this makes the actual updates appear more smooth.
The problem is that terminals don't truly have a concept of displaying images, and hacky standards like Sixel graphics are only made possible by bypassing the internal buffer and writing directly to the terminal. When you consider the steps that lf
uses to draw the UI, it makes sense that there is a flicker:
lf
clears the screen (really the internal buffer) to draw everything from scratch- Various components (pane, prompt, status bar, etc.) are drawn to the internal buffer. This includes previews that are text-based and not images
- The internal buffer is flushed to the terminal (this will wipe the existing image preview)
- If
sixel
is enabled, the sixel image is drawn by writing it to the terminal
That being said, specifically for the period
timer, I think there is no need to redraw the UI since the purpose is to just check if any files have been modified, which essentially happens in the background.
from lf.
I have submitted #1666 to address this, hopefully it fixes the issue for you.
from lf.
Related Issues (20)
- Integrate lf with tmux? HOT 1
- Dialing to send server error HOT 14
- Is Redefining the `cd` cmd Possible? HOT 2
- lf makes cursor blink after entering commandline then quitting HOT 2
- Search-back command doesnt work HOT 2
- <C-o> - like functionality. [ Enhancement ] [ Willing to help ] HOT 5
- Slow reaction when start lf? HOT 2
- lfcd quits shell on exiting LF, when lfcd is defined in another sourced file HOT 5
- enhancement: LF_CONFIG_HOME to ~/.config/lf HOT 6
- Ueberzug previews don't work without python distutils HOT 2
- unset setlocal HOT 2
- Operations performed on sshfs mount no longer reloads HOT 2
- Sort_by function not work very well with hungarian letters HOT 2
- Chafa symbol preview error HOT 9
- lf image preview flickering HOT 5
- Duplicate icon
- Mouse buttons don't work
- Preview window colors HOT 14
- Yank path w/filename, filename, and file (As in Ranger) in Powershell HOT 6
- [QUESTION] Paste with overwrite for multiple files HOT 5
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 lf.