Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
Index: sysvbanner.c
===================================================================
--- sysvbanner.c	(nonexistent)
+++ sysvbanner.c	(revision 5)
@@ -0,0 +1,153 @@
+/*****************************************************************
+ * 
+ * SYSVbanner.c
+ * 
+ * This is a PD version of the SYS V banner program (at least I think 
+ * it is compatible to SYS V) which I wrote to use with the clock 
+ * program written by:
+ **     DCF, Inc.
+ **     14623 North 49th Place
+ **     Scottsdale, AZ 85254
+ * and published in the net comp.sources.misc newsgroup in early July 
+ * since the BSD banner program works quite differently.
+ * 
+ * There is no copyright or responsibility accepted for the use
+ * of this software.
+ * 
+ * Brian Wallis, brw@jim.odr.oz, 4 July 1988
+ *
+ *****************************************************************/
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+
+char *glyphs[] = {
+"         ###  ### ###  # #   ##### ###   #  ##     ###  ",
+"         ###  ### ###  # #  #  #  ## #  #  #  #    ###  ",
+"         ###   #   # ########  #   ### #    ##      #   ",
+"          #            # #   #####    #    ###     #    ",
+"                     #######   #  #  # ####   # #       ",
+"         ###           # #  #  #  # #  # ##    #        ",
+"         ###           # #   ##### #   ### #### #       ",
+
+"   ##    ##                                            #",
+"  #        #   #   #    #                             # ",
+" #          #   # #     #                            #  ",
+" #          # ####### #####   ###   #####           #   ",
+" #          #   # #     #     ###           ###    #    ",
+"  #        #   #   #    #      #            ###   #     ",
+"   ##    ##                   #             ###  #      ",
+
+"  ###     #    #####  ##### #      ####### ##### #######",
+" #   #   ##   #     ##     ##    # #      #     ##    # ",
+"#     # # #         #      ##    # #      #          #  ",
+"#     #   #    #####  ##### #    # ###### ######    #   ",
+"#     #   #   #            ########      ##     #  #    ",
+" #   #    #   #      #     #     # #     ##     #  #    ",
+"  ###   ##### ####### #####      #  #####  #####   #    ",
+
+" #####  #####    #     ###      #           #     ##### ",
+"#     ##     #  ###    ###     #             #   #     #",
+"#     ##     #   #            #     #####     #        #",
+" #####  ######         ###   #                 #     ## ",
+"#     #      #   #     ###    #     #####     #     #   ",
+"#     ##     #  ###     #      #             #          ",
+" #####  #####    #     #        #           #       #   ",
+
+" #####    #   ######  ##### ###### ############## ##### ",
+"#     #  # #  #     ##     ##     ##      #      #     #",
+"# ### # #   # #     ##      #     ##      #      #      ",
+"# # # ##     ####### #      #     ######  #####  #  ####",
+"# #### ########     ##      #     ##      #      #     #",
+"#      #     ##     ##     ##     ##      #      #     #",
+" ##### #     #######  ##### ###### ########       ##### ",
+
+"#     #  ###        ##    # #      #     ##     ########",
+"#     #   #         ##   #  #      ##   ####    ##     #",
+"#     #   #         ##  #   #      # # # ## #   ##     #",
+"#######   #         ####    #      #  #  ##  #  ##     #",
+"#     #   #   #     ##  #   #      #     ##   # ##     #",
+"#     #   #   #     ##   #  #      #     ##    ###     #",
+"#     #  ###   ##### #    # ########     ##     ########",
+
+"######  ##### ######  ##### ########     ##     ##     #",
+"#     ##     ##     ##     #   #   #     ##     ##  #  #",
+"#     ##     ##     ##         #   #     ##     ##  #  #",
+"###### #     #######  #####    #   #     ##     ##  #  #",
+"#      #   # ##   #        #   #   #     # #   # #  #  #",
+"#      #    # #    # #     #   #   #     #  # #  #  #  #",
+"#       #### ##     # #####    #    #####    #    ## ## ",
+
+"#     ##     ######## ##### #       #####    #          ",
+" #   #  #   #      #  #      #          #   # #         ",
+"  # #    # #      #   #       #         #  #   #        ",
+"   #      #      #    #        #        #               ",
+"  # #     #     #     #         #       #               ",
+" #   #    #    #      #          #      #               ",
+"#     #   #   ####### #####       # #####        #######",
+
+"  ###                                                   ",
+"  ###     ##   #####   ####  #####  ###### ######  #### ",
+"   #     #  #  #    # #    # #    # #      #      #    #",
+"    #   #    # #####  #      #    # #####  #####  #     ",
+"        ###### #    # #      #    # #      #      #  ###",
+"        #    # #    # #    # #    # #      #      #    #",
+"        #    # #####   ####  #####  ###### #       #### ",
+
+"                                                        ",
+" #    #    #        # #    # #      #    # #    #  #### ",
+" #    #    #        # #   #  #      ##  ## ##   # #    #",
+" ######    #        # ####   #      # ## # # #  # #    #",
+" #    #    #        # #  #   #      #    # #  # # #    #",
+" #    #    #   #    # #   #  #      #    # #   ## #    #",
+" #    #    #    ####  #    # ###### #    # #    #  #### ",
+
+"                                                        ",
+" #####   ####  #####   ####   ##### #    # #    # #    #",
+" #    # #    # #    # #         #   #    # #    # #    #",
+" #    # #    # #    #  ####     #   #    # #    # #    #",
+" #####  #  # # #####       #    #   #    # #    # # ## #",
+" #      #   #  #   #  #    #    #   #    #  #  #  ##  ##",
+" #       ### # #    #  ####     #    ####    ##   #    #",
+
+"                       ###     #     ###   ##    # # # #",
+" #    #  #   # ###### #        #        # #  #  # # # # ",
+"  #  #    # #      #  #        #        #     ## # # # #",
+"   ##      #      #  ##                 ##        # # # ",
+"   ##      #     #    #        #        #        # # # #",
+"  #  #     #    #     #        #        #         # # # ",
+" #    #    #   ######  ###     #     ###         # # # #"};
+
+
+int main(argc,argv)
+     int argc;
+     unsigned char *argv[];
+{
+  int a,b,c,len,ind;
+  char line[80];
+
+  for(argv++;--argc;argv++){
+    len=strlen((const char *) *argv);
+    if(len>10)
+      len=10;
+    for(a=0;a<7;a++){
+      for(b=0;b<len;b++){
+	if((ind=(*argv)[b]-' ') < 0 || ind > 95)
+          ind=0;
+        for(c=0;c<7;c++){
+          line[b*8+c] = glyphs[(ind/8*7)+a][(ind%8*7)+c];
+        }
+        line[b*8+7] = ' ';
+      }
+      for(b=len*8-1;b>=0;b--){
+        if(line[b]!=' ')
+          break;
+        line[b]='\0';
+      }
+      puts(line);
+    }
+    puts("");
+  }
+  return(0);
+}