sqlifinder icon indicating copy to clipboard operation
sqlifinder copied to clipboard

System Commands

Open TotallyNotAHaxxer opened this issue 3 years ago • 0 comments

So I’m not going to really “ complain “ about this more than I am helping out, I notice you use the if system == to use a clear command, well there is a very simple solution to this, this works for all platforms and systems but instead of taking up extra lines you could always do this

‘’’python

if name == “main”: print(“ \x1b[H\x1b[2J\x1b[3J”) banner() main() ‘’’

It took me a special someone to come along and teach me this but this is a very simple thing to both understand while optimizing code for cross platform applications, it will do the same thing clear and CLs will do but instead chomp down say the 7-8 lines the if system == whatever os, and this also works in any language and platform, it’s highly suggested to use it cause even I have found out in other languages when executing OS commands, windows will usually error out and say “ cls “ or “ CLS “ is not an executable path, so it just prevents a lot of heard ache working with cross platform applications

Happy coding! :D

TotallyNotAHaxxer avatar Jan 07 '22 22:01 TotallyNotAHaxxer