Live Chat!

Print color text in command line.

* * * *   1 votos

December 24th, 2006 mysurface

Sometimes echo is not enough, if you need to print more advanced format of text. Lucky, we have printf. printf is a common function call in c programming language, if you learn c before, you should very familiar with this function.
Simply illustrate the power of printf, do as follow:
printf ‘\n\t\thello\tworld\n’
Besides readable character, printf can accept [...]

Posted in Text Manipulation, clear, printf, read | Hits: 25056 | 7 Comments »

clear screen

          0 votos

September 11th, 2006 mysurface

If you do clear screen by type
clear
Try to scroll ur mouse up, you will figure out that, your previous typed command and result is still there. I does what you asked, clear the screen. It feed couple of blank lines instead of cleaning everything.
In order to make the perfect clean, type this instead
reset
Usually people type [...]

Posted in Common, clear, reset | Hits: 4857 | 1 Comment »