Have you ever heard of dc? No, not Washington, DC! I'm talking about the RPN (reverse Polish notation) based calculator program for UNIX. It's open source, so therefore you can mod it. Well, I added a little extra feature into it: a clear-screen function. Whenever you type j as a command, it will clear the screen!
Download it at: http://www.paste-it.net/505/c
To use this mod, replace the contents of dc/eval.c in your bc (another calculator program that dc comes with) source directory with that code. Oh, and then recompile and move the new copy of dc created to your /usr/bin directory.
To adblock users