PrinterOriented Banner

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Emulate 'banner' command in *BSD.

This 'banner' command is NOT terminal-oriented but printer-oriented.

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

banner golf

Sample output:

            ##########                                     ###########
         ################                              ###################
       ####################                          #######################
      #######          #####    ######             ###########################
    #######              ################         #############################
   ######                  ################      ###############################
  ######                    ################    #################################
 ######                    ##################  ###################################
 ######                    ###############################             ############
 #####                    ###############   ##########                     ########
 #####                   ##############      #######                         #######
 #####                   #############       #####                             #####
 #####                  ##############       ####                               ####
 #####                  #############        ####                               ####
 #####                 ##############        ####                               ####
 #####                 #############         ####                               ####
 ######               #############          #####                             #####
 ######              ##############          #######                         #######
 #######             #############            ########                     ########
 ########           #############             ############             ############
 ##########       ###############              ###################################
  ##############################                #################################
   #############################                 ################################
    ###########################                   ###############################
     #########################                     ###########################  ##    ####
       #####################                         #######################    ###  ######
         #################                             ###################      ############
            ############                                   ###########           ###########
                                                                                  ##########
                                                                                    #######
                                                                                      ####

                                                ##################
                                           ############################
                                         ################################
                                       ####################################
                                     ########################################
                                   ############################################
                                  ##############################################
                                 #############                      #############
                                #########                                #########
                                #######                                    #######
                               ######                                        ######
                               #####                                          #####
                              #####                                            #####
                              ####                                              ####
                              ####                                              ####
                              ####                                              ####
                              ####                                              ####
                              #####                                            #####
                              #####                                            #####
                               #####                                          #####
                               ######                                        ######
                                #######                                    #######
                                #########                                #########
                                 #############                      #############
                                  ##############################################
                                   ############################################
                                     ########################################
                                       ####################################
                                         ################################
                                           ############################
                                                ##################

                              ####                                                                                   ####
                              ####                                                                                   ####
                              ###########################################################################################
                              ###########################################################################################
                              ###########################################################################################
                              ###########################################################################################
                              ###########################################################################################
                              ###########################################################################################
                              ###########################################################################################
                              ###########################################################################################
                              ####
                              ####

                                                                                ####
                              ####                                              ####
                              ####                                              ####
                              ##############################################################################
                              ##################################################################################
                              #####################################################################################
                              #######################################################################################
                              ########################################################################################
                              #########################################################################################
                              ##########################################################################################
                              ##########################################################################################
                              ####                                              ####                               ######
                              ####                                              ####                                 ####
                                                                                ####                     ######      ####
                                                                                ####                   ##########   #####
                                                                                ####                  ###################
                                                                                ####                 ###################
                                                                                                     ###################
                                                                                                     ##################
                                                                                                      ################
                                                                                                       ############
                                                                                                         ######

Sample input:_

banner -w 64 shinh

Sample output:

               ######           ###
               ######        #########
                ####        ###########
                ###        #############
                ##        #######      ##
               ##         ######       ##
               ##         ######       ##
               ##        #######       ##
               ##        ######       ###
                #       #######      ###
                ##     #######      ####
                ##############     ######
                 ############      ######
                   ########

               ##                                        ##
               ############################################
               ############################################
               ############################################
               ############################################
               ##                  ###
                                     ##
                                     ###
                                      ###
                                      ###
               ##                    ####
               ##########################
               ##########################
               #########################
               ######################
               ##
               ##                      ##
               ##########################       #####
               ##########################      #######
               ##########################      #######
               ##########################       #####
               ##

               ##                      ##
               ##########################
               ##########################
               ##########################
               ##########################
               ##                  ###
                                     ##
                                     ###
                                      ###
                                      ###
               ##                    ####
               ##########################
               ##########################
               #########################
               ######################
               ##
               ##                                        ##
               ############################################
               ############################################
               ############################################
               ############################################
               ##                  ###
                                     ##
                                     ###
                                      ###
                                      ###
               ##                    ####
               ##########################
               ##########################
               #########################
               ######################
               ##

Sample input:_

banner -w 48 ":-)"

Sample output:

             ##            ###
            ####          #####
           #####          #####
             ##            ###
                      ##
                      ##
                      ##
                      ##
                      ##
                      ##
                      ##
                      ##
                      ##

           #
           ####                          ###
            ########               #########
              ############################
                #######################
                   #################

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1yvl6640.00042010/04/20 19:30:25362B / 199B / 92B
2shinh7550.01642010/04/14 12:56:28391B / 178B / 167B

Perl _

RankUserSizeTimeDateStatistics
1dcutter7120.22522010/04/21 23:04:00397B / 190B / 115B

Python _

RankUserSizeTimeDateStatistics
1hallvabo6380.00452010/04/26 09:11:56326B / 191B / 116B
2betaveros9880.00462010/04/25 23:22:247B / 266B / 505B

Perl6 _

RankUserSizeTimeDateStatistics
1dcutter125143.23992010/04/21 18:14:210B / 42B / 4896B

C _

RankUserSizeTimeDateStatistics
1nn3960.00132010/04/25 23:38:573B / 210B / 181B

Haskell _

RankUserSizeTimeDateStatistics
1rst767920.00402010/04/15 22:07:430B / 495B / 217B

Bash _

RankUserSizeTimeDateStatistics
1zzo38250.04822010/04/15 07:43:270B / 14B / 9B
2msk330.08452010/04/14 08:36:340B / 11B / 18B
3eban360.04342010/04/13 19:45:260B / 21B / 12B

Zsh _

RankUserSizeTimeDateStatistics
1zzo38250.18952010/04/15 07:43:450B / 14B / 9B

Fish _

RankUserSizeTimeDateStatistics
1zzo38380.14052010/04/15 12:39:560B / 20B / 15B

Vim _

RankUserSizeTimeDateStatistics
1zzo38200.11912010/04/15 12:30:091B / 7B / 9B
2nn220.10552010/04/16 00:06:511B / 5B / 14B
3udioica190.12372017/05/22 11:09:451B / 7B / 8B

Language Ranking_

RankLangUserSizeScore
1Vimudioica1910000
2Bashzzo38257600
3Zshzzo38257600
4Fishzzo38385000
5Cnn396479
6Pythonhallvabo638297
7Rubyyvl664286
8Perldcutter712266
9Haskellrst76792239
10Perl6dcutter1251415

return to the top page