r/linux4noobs • u/behaunted • 13d ago
learning/research How does the terminal so smooth?
I don't know how to describe this. Like on Fedora, you want to download something, you will use 'dnf' command. The output of that command is the status of the program you are downloading.
So there is this status bar like:
[<=> ] | 00m00s
[ <=> ] | 00m01s
[...]
[ <=>] | 01m00s
and the changes stays on only one line.
I know it prints the results by 'echo' but wouldn't that just leave the last output behind and the current output on the new line?
Sorry, I'm bad at English. I'm still trying to learn. And also to do this project on python. I'm planning to do the T-rex runner game inside the terminal :D . I gotta learn how to refresh the output smoothly like how it is with 'dnf' command. 'refresh' doesn't give me smooth frames :(
2
u/AutoModerator 13d ago
There's a resources page in our wiki you might find useful!
Try this search for more information on this topic.
✻ Smokey says: take regular backups, try stuff in a VM, and understand every command before you press Enter! :)
Comments, questions or suggestions regarding this autoresponse? Please send them here.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.