Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usage of the system() function is not recommended. #3

Open
felipesanches opened this issue Nov 10, 2014 · 1 comment
Open

usage of the system() function is not recommended. #3

felipesanches opened this issue Nov 10, 2014 · 1 comment
Labels

Comments

@felipesanches
Copy link
Contributor

"There are serious security concerns (what if a maalicious user replaces the clear program?)."

More insight here:
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1031963460&id=1043284385

I tend to think it would be good to use the Curses library.

@vampirefrog
Copy link

Can you please implement the code to load libcurses with dlopen, and call its clear function? Keep libcurses open for the duration of the program. if libcurses is not found, use system("clear") as a fallback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants