Create nice text banner in HPUX

Have you ever wondered those ASCII text banner you see when you login to server, how people create them? Today we will see one of the method to design ASCII banner made out of # symbols!

This process uses  HPUX native commands but there are other ways to do it in Linux server as well. One can be found here on this blog.

In HPUX we have command banner native with OS. This command should be supplied with words. It will echo out supplied arguments typed in # marks which is 6 rows high. See below example :

There is limitation to this. Banner only takes first 10 letters . It ignores all further characters. So basically it writes 10 characters using # symbol with 6 row height!

See below example where is counts only 10 characters to be shown.

Minor design observations:

When you use CAPS and SMALL letters, it shows all CAPS letters with 7 row height and SMALL with 6 row height.

When you spaces in between, it will convert them to cartridge returns. So every character after space starts on new line.

When you use only alphabates, there is always one blank row above output. If you use numbers, output starts immediately on next line of command. You can observe above outputs.

These text banners can be used to show on user login session or in /etc/motd. They can flash important messages to user without getting ignored.

Any thoughts?