Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
You can make a background program that counts a certain time between user interrupts, and when it reaches its target time it starts printing the rotating cube. I might just build that myself, thanks for inspiring me!
Might want to configure it to not print if there is a foreground program other than bash running though... -
@Linux @nmaggioni @rephiscorth @k0pernikus
Here is the repo as requested: https://github.com/Olverine/...
Sorry it took a while -
@NyxMC actually, I think you can just remove the input.h file and it should run on Linux. I'm not sure though
-
@Linux are you sure you pulled the right branch? It should be '#include "quaternion.hpp"'
-
Numinex10867y@Olverine I got the same error. I think it's something wrong on your side. Like a typo or something.
-
@Numinex maybe it's not merging correctly. Try copying the code from the branch on GitHub. It works for me!
-
@NyxMC it does not clear the screen unfortunately. Let me know if you find a good fix for this :)
-
Just make sure ypu reset the background color to black before printing the clearscreen character, or else it will fill the screen with whatever color was selected as background.
(that is assuming you're using ANSI escape sequences) -
@vanhoosr your solution didn't work for me but it lead to some interesting research. I finally found that by printing the ANSI code: "\033[1;1H", you can move the cursor to the beginning of the text and overwrite the previous frame! Now it works beautifully!
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
sam966911Hats off to this lady .... I would have just flipped the machine
When you have so much time on your hands that you create a rotating 3D cube console program...
undefined
3d
console application
c++