Print color text in command line.

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, […]

Posted in clear, printf, read, Text Manipulation | Hits: 217575 | 19 Comments »

clear screen

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 […]

Posted in clear, Common, reset | Hits: 58089 | 3 Comments »