Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 29 Oct 2000.
Re: ascii clocks

Re: ascii clocks

Faux_Pseudo <Fau...@home.com> wrote in message
news:slr...@cx743464-a.fed1.sdca.home.com...
> --(Once apon a time, in alt.ascii-art,)--
> --(Nathan said it like only they can.)--
> >                ___________________________
> >              /|           (\              |
> >             | | A R M     _\)     S A F E |
> >          ___|_|___________________________|_____
> >         /\       _______________________        \
> >    .-==(* )::::/|                       |::::::::)==-.
> >   /     \/####| |  --   --     --   --  |#######/     \
> >  |      /\    | | |  | |  |   |  | |  | |       \      |
> >   >--==(* ):::| | |  | |  | o |  | |  | |::::::::)==--<
> >  |      \/####| |  --   --     --   --  |#######/      |
> >   \     /\    | | |  | |  | o |  | |  | |       \     /
> >    `-.=(* ):::| | |  | |  |   |  | |  | |::::::::)=.-`
> >      |  \/####| |  --   --     --   --  |NDT####/  |
> >       \        \|_______________________|         /
> >        \     _   _   _     / \     _   _   _     /
> >         `._ ( ) ( ) ( )   /   \   ( ) ( ) ( ) _.`
> >            `-`-.-`-.-`-.-`     `-.-`-.-`-.-`-`
> >  --        --   --        --   --   __   --   --
> > |  |    |    |    | |  | |    |    |  | |  | |  |
> > |  |    |    |    | |  | |    |       | |  | |  |
> >            --   --   --   --   --        --   --
> > |  |    | |       |    |    | |  |    | |  |    |
> > |  |    | |       |    |    | |  |    | |  |    |
> >  --        --   --        --   --        --   --
> >Hope this helps you?
> >I guess you wanted the clock numbers to be around 7 - 8 lines but the clock
> >could be bigger?
>
> this is about what i am looking for
> and the clock as i said can be any size as long as its big enough
> for the the text
>
> but i remember seeing fonts in this group befor and i didnt pay much attention
> to to them.
> what i need to know is what is the proper size for a ascii font?
> i went to ascipr0n.com and looked at the fonts there and noticed
> that most fonts are about 5 lines in hight, is this corect?
>
> it would be nice if one could just point the app to a dir of standerd sized
> fonts that are already in exsistance.
> am i asking to much or is there a real standerd?
>
> just for pourpuses of geting the code done i am working with a 5 line font
> but i will be able to change that once i get a solid answer.
>
> and the clock is sweet
> that is exactly what i want to see.
> after formating for the app it would be in a file called something like
> asciiclock/arm_safe
> and look something like this
>                 ___________________________
>               /|           (\              |
>              | | A R M     _\)     S A F E |
>           ___|_|___________________________|_____
>          /\       _______________________        \
>     .-==(* )::::/|                       |::::::::)==-.
>    /     \/####| | $ASCIILINE1 |#######/     \
>   |      /\    | | $ASCIILINE2 |       \      |
>    >--==(* ):::| | $ASCIILINE3 |::::::::)==--<
>   |      \/####| | $ASCIILINE4 |#######/      |
>    \     /\    | | $ASCIILINE5 |       \     /
>     `-.=(* ):::| | $ASCIILINE6 |::::::::)=.-`
>       |  \/####| | $ASCIILINE7 |NDT####/  |
>        \        \|_______________________|         /
>         \     _   _   _     / \     _   _   _     /
>          `._ ( ) ( ) ( )   /   \   ( ) ( ) ( ) _.`
>             `-`-.-`-.-`-.-`     `-.-`-.-`-.-`-`
>
> so that the app can just spit the numbers out into it but i need
> standerd hight and width ascii font letters so that all the skins
> and letters will be compatable with each other and the app's formating
> techniqu
>
>
> --
>  ._______.                                         ._______.
>  | <> <> |  To all who say evolution is to slow to | <> <> |
>   \-|o|-/  make a race as advanced as ours I have   \-|o|-/
>    /___\  only one thing to say. Have you ever seen  /___\
>    (MMM)  the Jerry Springer Show?    UIN=66618055   (MMM)

I don't know bash, but I have no problem with the seconds refresh in QBasic. Hint, only
update the digit that actually changes and when it changes. All lines are indented 2
spaces. Lines beginning in the first column have wrapped in transit and need to be fixed
before you try this. I only did this example to show there is no reason you can't display
seconds. As for other skins, I'm not very ASCII artistic, but maybe my code's
functionality can spark some ideas for your bash code.


  DECLARE SUB InitializeColon ()
  DECLARE SUB GetDigit (Number AS INTEGER, Digit AS INTEGER)

  COLOR 14, 3
  CLS
  DIM Count AS INTEGER
  DIM SHARED Display(7) AS STRING * 35
  InitializeColon             'Initialize colon in display array

  LOCATE 5, 7: PRINT "              _______________________________________"
  LOCATE , 7: PRINT "            /|                 (\                    |"
  LOCATE , 7: PRINT "           | |       A R M     _\)     S A F E       |"
  LOCATE , 7: PRINT "        ___|_|_______________________________________|_____"
  LOCATE , 7: PRINT "       /\       ___________________________________        \"
  LOCATE , 7: PRINT "  .-==(* )::::/|                                   |::::::::)==-."
  LOCATE , 7: PRINT " /     \/####| |  --   --     --   --     --   --  |#######/     \"
  LOCATE , 7: PRINT "|      /\    | | |  | |  |   |  | |  |   |  | |  | |       \      |"
  LOCATE , 7: PRINT " >--==(* ):::| | |  | |  | o |  | |  | o |  | |  | |::::::::)==--<"
  LOCATE , 7: PRINT "|      \/####| |  --   --     --   --     --   --  |#######/      |"
  LOCATE , 7: PRINT " \     /\    | | |  | |  | o |  | |  | o |  | |  | |       \     /"
  LOCATE , 7: PRINT "  `-.=(* ):::| | |  | |  |   |  | |  |   |  | |  | |::::::::)=.-`"
  LOCATE , 7: PRINT "    |  \/####| |  --   --     --   --     --   --  |NDT####/  |"
  LOCATE , 7: PRINT "     \        \|___________________________________|         /"
  LOCATE , 7: PRINT "      \     _   _   _           /\    _   _   _   _   _     /"
  LOCATE , 7: PRINT "       `._ ( ) ( ) ( ) ( ) ( ) /  \  ( ) ( ) ( ) ( ) ( ) _.`"
  LOCATE , 7: PRINT "          `-`-.-`-.-`-.-`-.-`-'    `.-`-.-`-.-`-.-`-.-`-'"
  LOCATE 25, 19: PRINT "Press ";
  COLOR 4: PRINT "[B]"; : COLOR 14: PRINT "link, ";
  COLOR 4: PRINT "[N]"; : COLOR 14: PRINT "ornal... or ";
  COLOR 4: PRINT "[ESC]"; : COLOR 14: PRINT " to exit.";

  DO
    COLOR 7, 0                'Reset standard (white on black) colors
    K$ = INKEY$               'Check for ESC keypress
    IF K$ = CHR$(27) THEN EXIT DO
    IF UCASE$(K$) = "B" THEN Blink = 1
    IF UCASE$(K$) = "N" THEN
      Blink = 0: t1$ = "": t2$ = "": t3$ = "": t4$ = "": t5$ = "": t6$ = ""
    END IF

    T$ = TIME$                'Get time (24 hour)
    LOCATE 10, 36: PRINT T$   'Print small clock

    IF VAL(T$) = 0 THEN       'Convert 24 hour time to 12 hour time
      MID$(T$, 1, 2) = "12"
    ELSEIF VAL(T$) > 12 THEN
      MID$(T$, 1, 2) = RIGHT$(STR$(VAL(T$) - 12), 2)
    END IF

    COLOR 11, 1               'Set Forground=BriteCyan Background=Blue
    LOCATE 11                 'Show the large display
    FOR Count = 0 TO 6
      LOCATE , 23: PRINT Display(Count)
    NEXT Count

    'Blink = 0                'Set to 1 to blink display 88:88:88
    IF Blink THEN
      IF VAL(t6$) MOD 2 = -0 THEN
        FOR Count = 0 TO 6
          Display(Count) = SPACE$(36) 'Blank out display
          InitializeColon     'Initialize colon in display array
        NEXT Count
      ELSE
        FOR Count = 1 TO 6
          GetDigit 8, Count           'Fill the display with all eights
        NEXT Count
      END IF
    END IF

    IF NOT t6$ = MID$(T$, 8, 1) THEN  'Update place holder every second
      t6$ = MID$(T$, 8, 1)
      GetDigit VAL(t6$), 6
      IF NOT t5$ = MID$(T$, 7, 1) THEN
        t5$ = MID$(T$, 7, 1)
        GetDigit VAL(t5$), 5
        IF NOT t4$ = MID$(T$, 5, 1) THEN
          t4$ = MID$(T$, 5, 1)
          GetDigit VAL(t4$), 4
          IF NOT t3$ = MID$(T$, 4, 1) THEN
            t3$ = MID$(T$, 4, 1)
            GetDigit VAL(t3$), 3
            IF NOT t2$ = MID$(T$, 2, 1) THEN
              t2$ = MID$(T$, 2, 1)
              GetDigit VAL(t2$), 2
              IF NOT t1$ = MID$(T$, 1, 1) THEN
                t1$ = MID$(T$, 1, 1)
                GetDigit VAL(t1$), 1
              END IF
            END IF
          END IF
        END IF
      END IF
    END IF
  LOOP

  CLS
  SYSTEM 'End the program and exit back to DOS if /RUN switch was used.

  SUB GetDigit (Number AS INTEGER, Digit AS INTEGER)
    DIM Place AS INTEGER

    SELECT CASE Digit    'Set digit placement in Display() array
      CASE 1: Place = 2
      CASE 2: Place = 7
      CASE 3: Place = 14
      CASE 4: Place = 19
      CASE 5: Place = 26
      CASE 6: Place = 31
      'CASE 7: EXIT SUB
    END SELECT

    SELECT CASE Number   'Put the specific digit in the array
      CASE 0
        MID$(Display(0), Place, 4) = " -- "
        MID$(Display(1), Place, 4) = "|  |"
        MID$(Display(2), Place, 4) = "|  |"
        MID$(Display(3), Place, 4) = "    "
        MID$(Display(4), Place, 4) = "|  |"
        MID$(Display(5), Place, 4) = "|  |"
        MID$(Display(6), Place, 4) = " -- "
      CASE 1
        MID$(Display(0), Place, 4) = "    "
        MID$(Display(1), Place, 4) = "   |"
        MID$(Display(2), Place, 4) = "   |"
        MID$(Display(3), Place, 4) = "    "
        MID$(Display(4), Place, 4) = "   |"
        MID$(Display(5), Place, 4) = "   |"
        MID$(Display(6), Place, 4) = "    "
      CASE 2
        MID$(Display(0), Place, 4) = " -- "
        MID$(Display(1), Place, 4) = "   |"
        MID$(Display(2), Place, 4) = "   |"
        MID$(Display(3), Place, 4) = " -- "
        MID$(Display(4), Place, 4) = "|   "
        MID$(Display(5), Place, 4) = "|   "
        MID$(Display(6), Place, 4) = " -- "
      CASE 3
        MID$(Display(0), Place, 4) = " -- "
        MID$(Display(1), Place, 4) = "   |"
        MID$(Display(2), Place, 4) = "   |"
        MID$(Display(3), Place, 4) = " -- "
        MID$(Display(4), Place, 4) = "   |"
        MID$(Display(5), Place, 4) = "   |"
        MID$(Display(6), Place, 4) = " -- "
      CASE 4
        MID$(Display(0), Place, 4) = "    "
        MID$(Display(1), Place, 4) = "|  |"
        MID$(Display(2), Place, 4) = "|  |"
        MID$(Display(3), Place, 4) = " -- "
        MID$(Display(4), Place, 4) = "   |"
        MID$(Display(5), Place, 4) = "   |"
        MID$(Display(6), Place, 4) = "    "
      CASE 5
        MID$(Display(0), Place, 4) = " -- "
        MID$(Display(1), Place, 4) = "|   "
        MID$(Display(2), Place, 4) = "|   "
        MID$(Display(3), Place, 4) = " -- "
        MID$(Display(4), Place, 4) = "   |"
        MID$(Display(5), Place, 4) = "   |"
        MID$(Display(6), Place, 4) = " -- "
      CASE 6
        MID$(Display(0), Place, 4) = " -- "
        MID$(Display(1), Place, 4) = "|   "
        MID$(Display(2), Place, 4) = "|   "
        MID$(Display(3), Place, 4) = " -- "
        MID$(Display(4), Place, 4) = "|  |"
        MID$(Display(5), Place, 4) = "|  |"
        MID$(Display(6), Place, 4) = " -- "
      CASE 7
        MID$(Display(0), Place, 4) = " -- "
        MID$(Display(1), Place, 4) = "   |"
        MID$(Display(2), Place, 4) = "   |"
        MID$(Display(3), Place, 4) = "    "
        MID$(Display(4), Place, 4) = "   |"
        MID$(Display(5), Place, 4) = "   |"
        MID$(Display(6), Place, 4) = "    "
      CASE 8
        MID$(Display(0), Place, 4) = " -- "
        MID$(Display(1), Place, 4) = "|  |"
        MID$(Display(2), Place, 4) = "|  |"
        MID$(Display(3), Place, 4) = " -- "
        MID$(Display(4), Place, 4) = "|  |"
        MID$(Display(5), Place, 4) = "|  |"
        MID$(Display(6), Place, 4) = " -- "
      CASE 9
        MID$(Display(0), Place, 4) = " -- "
        MID$(Display(1), Place, 4) = "|  |"
        MID$(Display(2), Place, 4) = "|  |"
        MID$(Display(3), Place, 4) = " -- "
        MID$(Display(4), Place, 4) = "   |"
        MID$(Display(5), Place, 4) = "   |"
        MID$(Display(6), Place, 4) = " -- "
    END SELECT
  END SUB

  SUB InitializeColon               'Initialize colon in display array
    MID$(Display(2), 12, 1) = "o"
    MID$(Display(2), 24, 1) = "o"
    MID$(Display(4), 12, 1) = "o"
    MID$(Display(4), 24, 1) = "o"
  END SUB


--
Todd Vargo (body of msg must contain my name to reply)

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,dd72bd170144bb61
X-Google-Attributes: gidf996b,public
X-Google-ArrivalTime: 2000-10-29 02:55:37 PST
Path: supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!feeder.qis.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!fu-berlin.de!uni-berlin.de!pppa5-resaleclevelandoh2-1r7226.saturn.bbn.COM!not-for-mail
From: "Todd Vargo" <t...@birdlover.com>
Newsgroups: alt.ascii-art
Subject: Re: ascii clocks
Date: Sun, 29 Oct 2000 05:41:50 -0500
Lines: 301
Message-ID: <8tgvn4$n61r9$1...@ID-25025.news.dfncis.de>
References: <slr...@faux.local.net> <8taab1$guv$1...@neptunium.btinternet.com> <slr...@cx743464-a.fed1.sdca.home.com>
NNTP-Posting-Host: pppa5-resaleclevelandoh2-1r7226.saturn.bbn.com (4.54.196.66)
X-Trace: fu-berlin.de 972816934 24315753 4.54.196.66 (16 [25025])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Xref: supernews.google.com alt.ascii-art:2390

Related ASCII art in the Gallery

Explore these categories from our collection of 11,000+ artworks:

About this message. This message was posted publicly to the newsgroup alt.ascii-art in 2000 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post