Original Usenet thread from alt.ascii-art, started 25 Oct 2000.
ascii clocks
alt.ascii-art
· 35 messages · 25 Oct 2000 - 9 Nov 2000
i am in the process of designing a skinable ascii clock for the console writen in bash the clock its self as well as the time ( in 23:34 and 11:34 pm format ) will be skinable now the clocks size is erelavent as long as it fits on the screen and is large enough to fit the time inside of it so the first question is whats the standerd hight of a fixed font in ascii (some where between 7 and 8 lines me thinks) second with that in mind can some people here make some ascii clocks for me to experament with with that font size in mind? and maybe a link or two to some ascii fixed font's the app will basicly be skinable like winamp and fun like linux's dali clock and xclock for the console i should be able to add some fun featurs like an alarm clock ablity and a shuffel featur on the skins and time set to eather hour, ten minut, or one minut intervuls the clock will not have a seconds featur because of the refresh rate on most consoles sucks so keep that in mind TIA -- code for the people by the people -- ._______. ._______. | <> <> | GUI's are for slackers. | <> <> | \-|o|-/ ibpconf.sh 5 on freshmeat.net \-|o|-/ /___\ the easiest way to personalize /___\ (MMM) the command line. By Faux_Pseudo (MMM)
Fairly basic one for you here...
____________________________
/ Wednesday 25 October, 2000 \
/) ,-----------. o (\
(( | 1 : 00 pm | /_\ 4:00pm ))
\) '-----------' " (/
\____________________________/
____________________________
/ Wednesday 25 October, 2000 \
/) ,-----------. o (\
(( | 13 : 00 | /_\ 16:00 ))
\) '-----------' " (/
\____________________________/
____________________________
/ Sunday 8 April, 1979 \
/) ,-----------. (\
(( | 12 : 33 am | ))
\) '-----------' (/
\____________________________/
ringing bell animation....
o
/_\
'
o
/_)
'
o
/_\
'
o
(_\
'
if that's what you wanted...
best viewed in courier
AsH - Flookster
Faux_Pseudo <Fau...@home.com> wrote in message
news:slr...@faux.local.net...
i am in the process of designing a skinable ascii clock for the console
writen in bash
the clock its self as well as the time ( in 23:34 and 11:34 pm format )
will be skinable
now the clocks size is erelavent as long as it fits on the screen and is
large enough to fit the time inside of it
so the first question is whats the standerd hight of a fixed font in
ascii (some where between 7 and 8 lines me thinks)
second with that in mind can some people here make some ascii clocks
for me to experament with with that font size in mind?
and maybe a link or two to some ascii fixed font's
the app will basicly be skinable like winamp and fun like
linux's dali clock and xclock for the console
i should be able to add some fun featurs like an alarm clock ablity
and a shuffel featur on the skins and time set to eather hour, ten minut,
or one minut intervuls
the clock will not have a seconds featur because of the refresh rate on
most consoles sucks so keep that in mind
TIA
--
code for the people by the people
--
._______. ._______.
| <> <> | GUI's are for slackers. | <> <> |
\-|o|-/ ibpconf.sh 5 on freshmeat.net \-|o|-/
/___\ the easiest way to personalize /___\
(MMM) the command line. By Faux_Pseudo (MMM)
___________________________
/| (\ |
| | 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?
Nathan.
"Faux_Pseudo" <Fau...@home.com> wrote in message
news:slr...@faux.local.net...
> i am in the process of designing a skinable ascii clock for the console
> writen in bash
>
> the clock its self as well as the time ( in 23:34 and 11:34 pm format )
> will be skinable
>
> now the clocks size is erelavent as long as it fits on the screen and is
> large enough to fit the time inside of it
>
> so the first question is whats the standerd hight of a fixed font in
> ascii (some where between 7 and 8 lines me thinks)
>
> second with that in mind can some people here make some ascii clocks
> for me to experament with with that font size in mind?
> and maybe a link or two to some ascii fixed font's
>
> the app will basicly be skinable like winamp and fun like
> linux's dali clock and xclock for the console
>
> i should be able to add some fun featurs like an alarm clock ablity
> and a shuffel featur on the skins and time set to eather hour, ten minut,
> or one minut intervuls
>
> the clock will not have a seconds featur because of the refresh rate on
> most consoles sucks so keep that in mind
>
> TIA
>
>
>
>
> --
> code for the people by the people
>
> --
> ._______. ._______.
> | <> <> | GUI's are for slackers. | <> <> |
> \-|o|-/ ibpconf.sh 5 on freshmeat.net \-|o|-/
> /___\ the easiest way to personalize /___\
> (MMM) the command line. By Faux_Pseudo (MMM)
>
--(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)
Faux_Pseudo wrote: > --(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) Maybe from figlet : http://www.surfplaza.com/figlet/ Using lcd ___ _ ___ ___ ___ ___ ___ ___ ___ | /| | | | | | | | / | | | | | | + | + -+- -+- -+- -+- |-+- + -+- -+-| |/ | | | | | | | | / | | | | --- --- --- --- --- --- --- --- Mael
--(Once apon a time, in alt.ascii-art,)-- --(Mael said it like only they can.)-- >Maybe from figlet : http://www.surfplaza.com/figlet/ >Using lcd > ___ _ ___ ___ ___ ___ ___ ___ ___ >| /| | | | | | | | / | | | | | >| + | + -+- -+- -+- -+- |-+- + -+- -+-| >|/ | | | | | | | | / | | | | > --- --- --- --- --- --- --- --- > >Mael > well it looks like most of the good/readable fonts form there are from 5-8 in hight and 3-7 in length so if i go with a 6 wide 7 tall char standerd that i should be able to acomidate a fairly robust number of fonts while keeping readablity good if any one has any ideas on this let me know -- ._______. ._______. | <> <> | GUI's are for slackers. | <> <> | \-|o|-/ ibpconf.sh 5 on freshmeat.net \-|o|-/ /___\ the easiest way to personalize /___\ (MMM) the command line. By Faux_Pseudo (MMM)
Andrew Hood wrote: > ringing bell animation.... > > o > /_\ > ' > > o > /_) > ' > > o > /_\ > ' > > o > (_\ > ' You sure that's not a woman sauntering towards you? Or perhaps she's looking for a dance? Swing anyone? o o (B\ /_\ /\ " o o) (B\/_ " ` o/(o (B _\ /\ ' o/o) (B/_ /\ ` o/\o /B _\ /\ ` By the way, I'm new to this. What does "obascii" mean? andy
Andy C Yu wrote: > > Andrew Hood wrote: > > ringing bell animation.... > By the way, I'm new to this. What does "obascii" mean? Obascii means OBLIGATORY ascii... Obascii: The red carpet bieng rolled back up: O |\ /\@___ -- |"""""<`.THE PRINCE ,'>"""""""""""""""""""""""""""""""""""| | `.`/""""""\,',' my sig is too big, | |SEE HIS ( / \ \' SEE HIS but its really cool. | | FACE \/<> <>\/ SMILE | | / W \ Visit my ascii art site: | | ,'\_|||||_/`. http://www.gtcom.net/~krogg/ascii/ | | ,',' ||| `.`. kro...@gtcom.net | |____<,' TIME TO DIE `.>____Remove no.to.spam to reply____|
Krogg <kro...@gtcom.net> wrote: > Andy C Yu wrote: > > > > Andrew Hood wrote: > > > ringing bell animation.... > > > By the way, I'm new to this. What does "obascii" mean? > > Obascii means OBLIGATORY ascii... > > Obascii: > > The red carpet bieng rolled back up: > > O > |\ > /\@___ > couldn't it also mean "obvious ascii"? obascii: mowing the lawn O |\ ..../\@,,,,,, [ok ok, so it's more like a diddle ;] ++ christoph ++ berlin, germany -- mailto:zem(at)mailcc.com
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)
On Sat, 28 Oct 2000 00:40:35 -0700, Andy C Yu <yua...@cs.stanford.edu>
wrote:
>By the way, I'm new to this. What does "obascii" mean?
ObAnything means some part of an otherwise off-topic message that makes
the message on-topic.
--
Jan-Erik Finnberg whe...@saunalahti.fi ICQ:49316651
Visit http://www.saunalahti.fi/~wheany/FFVII/
for Final fantasy 7 midis and not much more!!
Todd Vargo wrote: > > 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 change this line to: DIM Display(7) AS SHARED STRING * 35 and it will compile fine in PB3.5 .... runs too. Obascii: screen shot: _______________________________________ /| (\ | | | A R M _\) S A F E | ___|_|_______________________________________|_____ /\ ___________________________________ \ .-==(* )::::/| 18:01:53 |::::::::)==-. / \/####| | -- -- -- -- -- |#######/ \ | /\ | | | | | | | | | | | \ | >--==(* ):::| | | | | o | | | o | | |::::::::)==--< | \/####| | -- -- -- |#######/ | \ /\ | | | | | | o | | | o | | | \ / `-.=(* ):::| | | | | | | | | | | |::::::::)=.-` | \/####| | -- -- -- -- -- |NDT####/ | \ \|___________________________________| / \ _ _ _ /\ _ _ _ _ _ / `._ ( ) ( ) ( ) ( ) ( ) / \ ( ) ( ) ( ) ( ) ( ) _.` `-`-.-`-.-`-.-`-.-`-' `.-`-.-`-.-`-.-`-.-`-' Press [B]link, [N]ornal... or [ESC] to exit. -- |"""""<`.THE PRINCE ,'>"""""""""""""""""""""""""""""""""""| | `.`/""""""\,',' my sig is too big, | |SEE HIS ( / \ \' SEE HIS but its really cool. | | FACE \/<> <>\/ SMILE | | / W \ Visit my ascii art site: | | ,'\_|||||_/`. http://www.gtcom.net/~krogg/ascii/ | | ,',' ||| `.`. kro...@gtcom.net | |____<,' TIME TO DIE `.>____Remove no.to.spam to reply____|
--(Once apon a time, in alt.ascii-art,)-- --(Todd Vargo said it like only they can.)-- very nice but i dont think there is a qbasic port to linux also i dont realy want to learn qb, its just not my gig now as far as what you could do to make it more flexable is have a stand alone file for a clock face and another for the fonts and one of the things i am trying to acomplish is that the font text will be formated in a way as to make it a peace if cake for novices to format #START1 11 1111 11 11 11 11 111111 #END1 etc etc and i work on a pent 133 lappy with a shity graphics card so it takes .27 seconds to refresh the screen with the clear comand thats why i am not going to go with a seconds function once i get some more experiance with C i will probaly rewrite it in a ncurses library or the aalib and add a seconds option -- ._______. ._______. | <> <> | GUI's are for slackers. | <> <> | \-|o|-/ ibpconf.sh 5 on freshmeat.net \-|o|-/ /___\ the easiest way to personalize /___\ (MMM) the command line. By Faux_Pseudo (MMM)
Faux_Pseudo <Fau...@home.com> wrote in message news:slr...@faux.local.net... > --(Once apon a time, in alt.ascii-art,)-- > --(Todd Vargo said it like only they can.)-- > very nice > but i dont think there is a qbasic port to linux > also i dont realy want to learn qb, its just not my gig > > now as far as what you could do to make it more flexable > is have a stand alone file for a clock face and another for the fonts > > and one of the things i am trying to acomplish is that the font text will > be formated in a way as to make it a peace if cake for novices to format > #START1 > 11 > 1111 > 11 > 11 > 11 > 11 > 111111 > #END1 > > etc etc > > and i work on a pent 133 lappy with a shity graphics card so > it takes .27 seconds to refresh the screen with the clear comand > thats why i am not going to go with a seconds function > once i get some more experiance with C i will probaly rewrite it > in a ncurses library or the aalib and add a seconds option That's the functionality I was referring to. You don't want to (shouldn't) clear the entire screen (unless the clock will be hovering like a screensaver clock, you didn't say). My qb code only changes the digit that actually changed in the array, then prints only the time again. Oh well, I tried helping. Sorry, I didn't know you don't have any BASIC experience, or that Bash was for Linux. If you know someone who does, maybe they could translate it into Bash for you, then you study the digit update routine. I didn't bother with any code to read the clock face or digits from a file, because I was just showing the seconds update functionality. Frankly, I thought you had the program working and was just looking to spruce it up. Good luck with your clock project. -- Todd Vargo (body of msg must contain my name to reply)
Faux_Pseudo wrote: > > --(Once apon a time, in alt.ascii-art,)-- > --(Todd Vargo said it like only they can.)-- > very nice > but i dont think there is a qbasic port to linux > also i dont realy want to learn qb, its just not my gig > > now as far as what you could do to make it more flexable > is have a stand alone file for a clock face and another for the fonts > > and one of the things i am trying to acomplish is that the font text will > be formated in a way as to make it a peace if cake for novices to format > #START1 > 11 > 1111 > 11 > 11 > 11 > 11 > 111111 > #END1 > > etc etc > > and i work on a pent 133 lappy with a shity graphics card so > it takes .27 seconds to refresh the screen with the clear comand > thats why i am not going to go with a seconds function > once i get some more experiance with C i will probaly rewrite it > in a ncurses library or the aalib and add a seconds option Why bother with clearing the screen...Just blit the text chars to the proper memory positions....LOTS faster... Obascii: Screenshot from the AA demo "BB" _.... ..;+]%:3XU=#_, ].:;;=+]]%:3XU=#0M]|_ +#:;===++]]x%%3XU=#0]]x%%_, .+Q0:;;====+]]xx%:3OU=#0M]x%%3n .+O#::;====++]]x%:%%:33XU=#0]x%%33, :xX#:;;=+++++]]xx%%%:::33OXUU=#0x%33_ :3W0:;==+]]]]]]]xxx%%%:%:33OXXU=#M]x%3n, 3W::;==+]]x]x]xxxxxxx%%%:::3OXXXU#M]x%%%, +Q::;==+]]]x]]x]]]]]]]xxxx%%:333OXU=0M]xxxm :O0;==++]]]]]x]]]xxxx%xx]xxxx%::33OX4=#0M]]]], u0;=++]]]]]xxx%%%%%::::::%x]]x%%::33XXU=#0MMM0, +W:==]]]]]xxxx]]]x%:::::33::%x]]x%%:33OXXU=#000# :O:;=+]]]]xxx]]+==++]x%::3OO33::x]x%%::3OOXXXU###i +#:==]]]]xx]]]+==;=;||%:33OXXX33:x]xx%::33OOOX===X, X:;=]]]]]+++==;::Ot N-||WXX3:%xxxx%:33333XUUX< +:;=+]]]x]=;;::Wx. ?"\XO3::%]xx%::3333XXX:, #:=+]]]]]+=:#WXx: ~XO::%x]]x%::33:3OO:; #;=]]]x]+=;0#Xx N3O:::%x]x::33:::3:]t 0=+]]]]]=;0#Q] 33:::x]]x:::::::%]= :=+]]]]==:#Xx+ ~3::%x]x%:::%x%x]=t :=+]]x]=:#QOxX +%xxxx]x%::%x]]]+; :=]x]x]=;0WOxQ xx]xx]]x::%x]++=; :=]]]]+=;:#XuW N]]]xx]x%%%x]++=: :=]x]]]=;:#Q3# |++]xx]x%xx]+==: :=]]]]]+=:0WX#t ]=+]xx]x%xx]+==0 N=]]]]]+=:::##N +==]]x]x%x]]==;# .=]x]]]+=;::::=; .:=+]]xxxx]]==:Q =]x]x]+==;;;==%< :#;=+xxxxx]+=;:X =]x]]]]+====++]X, :Q:=+]xxxx]+=;:O N]xx]]]]+=++]]:4m ]Q:=+]x]x]+=;:03. N]xx]xx]+++]x:OU#W, +W:=+]x]x]+=;:#+ N+]x]]xx]]]]:3U#0]W, :+#:=+]x]x]+=;:Q. |]%x]xx]]xx:O=0]x%#, =]u:;+]]]]x]+=:#+ |%:%]xx]x%:X=0]x3ux,,., =xOQ:=+]]]x]+=;:O +::x]xx%::3U#M]333%##=X3:__ .:3xOQW:=+]]]]]+=:#+ +:3]]x%:::OU#M%%%x]#UO%+;::QXOu3Q#:;=]]]]]+=;03 +3:]]x%::3OU##]]]]0U3x=;:###WQW#:=++]]]]]+;:W= ?3:]]x%%:3XXU=####UO:+=;::::#0;=+]]x]]]+=:#3: 3O:x]xx%:3OOXXXXX3:%]=;;;::;:;=+]xx]]]+;:Q+ 3X3:x]x%::333O3::%]+=========+]x]]]]==;0u NXO:x]x%%:::33:::%]+==+++]]]]]x]]]+=:u N3X3%]]]x%%:::::::x]]xx]xxxx]]]]=;0= 3X3::x]]]xx%%%%%%xxxxxx]]]]]+=:X NUO33:%x]]]]]]]]]]]]]]]]+++=:O: "3O3::%%x]]]]]]]]]]++==;::3: "~::%%x]]]]]]++==;::xt N~|x]+++===;;N3 -- |"""""<`.THE PRINCE ,'>"""""""""""""""""""""""""""""""""""| | `.`/""""""\,',' my sig is too big, | |SEE HIS ( / \ \' SEE HIS but its really cool. | | FACE \/<> <>\/ SMILE | | / W \ Visit my ascii art site: | | ,'\_|||||_/`. http://www.gtcom.net/~krogg/ascii/ | | ,',' ||| `.`. kro...@gtcom.net | |____<,' TIME TO DIE `.>____Remove no.to.spam to reply____|
Fau...@home.com (Faux_Pseudo) writes:
> but i dont think there is a qbasic port to linux
According to apt-cache:
yabasic - Yet Another BASIC interpreter
bwbasic - Bywater basic interpreter
Dunno what they're like though.
Hadn't noticed this thread till now, but can't resist a one liner:
$ while true; do date +%H:%M:%S | figlet; sleep 1; clear; done
--
(((( .' ) //=====e "Beneath the paving stones, the beach!"
))) \ )_//____________ -wall inscription Paris may '68
(((( J ) David Riley )===========O dav...@dmriley.demon.co.uk
))))______)_______________)===========O http://www.dmriley.demon.co.uk/
--(Once apon a time, in alt.ascii-art,)-- --(Todd Vargo said it like only they can.)-- > >That's the functionality I was referring to. You don't want to (shouldn't) >clear the entire screen (unless the clock will be hovering like a >screensaver clock, you didn't say). My qb code only changes the digit that >actually changed in the array, then prints only the time again. Oh well, I >tried helping. dont feel bad it was good code, just not the code i am working in and there is a way to use the trick you are talking about in bash but it would require a lot of code that would slow the whole thing down and also require some rather tedious tweeking of the clock's face parsing to make it truly skinable > >Sorry, I didn't know you don't have any BASIC experience, or that Bash was >for Linux. If you know someone who does, maybe they could translate it into >Bash for you, then you study the digit update routine. I didn't bother with >any code to read the clock face or digits from a file, because I was just >showing the seconds update functionality. Frankly, I thought you had the >program working and was just looking to spruce it up. > befor i started work on it i need the info on if there was a standerd font size for ascii style fonts and while i was at it i could in the pulling the hair out moments of coding get a few skins together for the release now the time function works right now but i need to rewrite part of it becase the time prints like 2222 22 22 22 22 222 222222 3333 33 33 33 33 33 33 3333 :: :: :: 555555 55 5555 55 55 55 5555 9999 99 99 9999 99 99 99 instead of the corect horazontal out put but one i get my 45 gig harddrive all set up and runing linux and windows i will be able to devote the code to fix it >Good luck with your clock project. > >-- >Todd Vargo (body of msg must contain my name to reply) > > > -- ._______. ._______. | <> <> | GUI's are for slackers. | <> <> | \-|o|-/ ibpconf.sh 5 on freshmeat.net \-|o|-/ /___\ the easiest way to personalize /___\ (MMM) the command line. By Faux_Pseudo (MMM)
Ummm .. are you doing Dali clocks? On Mon, 30 Oct 2000 18:55:33 -0500, Krogg <kro...@gtcom.net> wrote: > > _.... > ..;+]%:3XU=#_, > ].:;;=+]]%:3XU=#0M]|_ > +#:;===++]]x%%3XU=#0]]x%%_, > .+Q0:;;====+]]xx%:3OU=#0M]x%%3n > .+O#::;====++]]x%:%%:33XU=#0]x%%33, > :xX#:;;=+++++]]xx%%%:::33OXUU=#0x%33_ > :3W0:;==+]]]]]]]xxx%%%:%:33OXXU=#M]x%3n, > 3W::;==+]]x]x]xxxxxxx%%%:::3OXXXU#M]x%%%, > +Q::;==+]]]x]]x]]]]]]]xxxx%%:333OXU=0M]xxxm > :O0;==++]]]]]x]]]xxxx%xx]xxxx%::33OX4=#0M]]]], > u0;=++]]]]]xxx%%%%%::::::%x]]x%%::33XXU=#0MMM0, > +W:==]]]]]xxxx]]]x%:::::33::%x]]x%%:33OXXU=#000# > :O:;=+]]]]xxx]]+==++]x%::3OO33::x]x%%::3OOXXXU###i > +#:==]]]]xx]]]+==;=;||%:33OXXX33:x]xx%::33OOOX===X, > X:;=]]]]]+++==;::Ot N-||WXX3:%xxxx%:33333XUUX< > +:;=+]]]x]=;;::Wx. ?"\XO3::%]xx%::3333XXX:, > #:=+]]]]]+=:#WXx: ~XO::%x]]x%::33:3OO:; > #;=]]]x]+=;0#Xx N3O:::%x]x::33:::3:]t > 0=+]]]]]=;0#Q] 33:::x]]x:::::::%]= > :=+]]]]==:#Xx+ T ~3::%x]x%:::%x%x]=t > :=+]]x]=:#QOxX / +%xxxx]x%::%x]]]+; > :=]x]x]=;0WOxQ / xx]xx]]x::%x]++=; > :=]]]]+=;:#XuW / N]]]xx]x%%%x]++=: > :=]x]]]=;:#Q3# / |++]xx]x%xx]+==: > :=]]]]]+=:0WX#t o ]=+]xx]x%xx]+==0 > N=]]]]]+=:::##N \ +==]]x]x%x]]==;# > .=]x]]]+=;::::=; \ .:=+]]xxxx]]==:Q > =]x]x]+==;;;==%< \ :#;=+xxxxx]+=;:X > =]x]]]]+====++]X, J :Q:=+]xxxx]+=;:O > N]xx]]]]+=++]]:4m ]Q:=+]x]x]+=;:03. > N]xx]xx]+++]x:OU#W, +W:=+]x]x]+=;:#+ > N+]x]]xx]]]]:3U#0]W, :+#:=+]x]x]+=;:Q. > |]%x]xx]]xx:O=0]x%#, =]u:;+]]]]x]+=:#+ > |%:%]xx]x%:X=0]x3ux,,., =xOQ:=+]]]x]+=;:O > +::x]xx%::3U#M]333%##=X3:__ .:3xOQW:=+]]]]]+=:#+ > +:3]]x%:::OU#M%%%x]#UO%+;::QXOu3Q#:;=]]]]]+=;03 > +3:]]x%::3OU##]]]]0U3x=;:###WQW#:=++]]]]]+;:W= > ?3:]]x%%:3XXU=####UO:+=;::::#0;=+]]x]]]+=:#3: > 3O:x]xx%:3OOXXXXX3:%]=;;;::;:;=+]xx]]]+;:Q+ > 3X3:x]x%::333O3::%]+=========+]x]]]]==;0u > NXO:x]x%%:::33:::%]+==+++]]]]]x]]]+=:u > N3X3%]]]x%%:::::::x]]xx]xxxx]]]]=;0= > 3X3::x]]]xx%%%%%%xxxxxx]]]]]+=:X > NUO33:%x]]]]]]]]]]]]]]]]+++=:O: > "3O3::%%x]]]]]]]]]]++==;::3: > "~::%%x]]]]]]++==;::xt > N~|x]+++===;;N3 >
--(Once apon a time, in alt.ascii-art,)-- --(David Riley said it like only they can.)-- >Fau...@home.com (Faux_Pseudo) writes: > >> but i dont think there is a qbasic port to linux > >According to apt-cache: > >yabasic - Yet Another BASIC interpreter >bwbasic - Bywater basic interpreter > >Dunno what they're like though. > >Hadn't noticed this thread till now, but can't resist a one liner: > >$ while true; do date +%H:%M:%S | figlet; sleep 1; clear; done > thats a very nice oneliner but when posting with the names of non-standerd apps its nice if you post the name of the place to get them http://freshmeat.net/projects/figlet/?highlight=figlet >-- >(((( .' ) //=====e "Beneath the paving stones, the beach!" > ))) \ )_//____________ -wall inscription Paris may '68 >(((( J ) David Riley )===========O dav...@dmriley.demon.co.uk > ))))______)_______________)===========O http://www.dmriley.demon.co.uk/ -- ._______. ._______. | <> <> | GUI's are for slackers. | <> <> | \-|o|-/ ibpconf.sh 5 on freshmeat.net \-|o|-/ /___\ the easiest way to personalize /___\ (MMM) the command line. By Faux_Pseudo (MMM)
> On Mon, 30 Oct 2000 18:55:33 -0500, Krogg <kro...@gtcom.net> > wrote: > > > > _.... > > ..;+]%:3XU=#_, > > ].:;;=+]]%:3XU=#0M]|_ > > +#:;===++]]x%%3XU=#0]]x%%_, > > .+Q0:;;====+]]xx%:3OU=#0M]x%%3n > > .+O#::;====++]]x%:%%:33XU=#0]x%%33, > > :xX#:;;=+++++]]xx%%%:::33OXUU=#0x%33_ > > :3W0:;==+]]]]]]]xxx%%%:%:33OXXU=#M]x%3n, > > 3W::;==+]]x]x]xxxxxxx%%%:::3OXXXU#M]x%%%, > > +Q::;==+]]]x]]x]]]]]]]xxxx%%:333OXU=0M]xxxm > > :O0;==++]]]]]x]]]xxxx%xx]xxxx%::33OX4=#0M]]]], > > u0;=++]]]]]xxx%%%%%::::::%x]]x%%::33XXU=#0MMM0, > > +W:==]]]]]xxxx]]]x%:::::33::%x]]x%%:33OXXU=#000# > > :O:;=+]]]]xxx]]+==++]x%::3OO33::x]x%%::3OOXXXU###i > > +#:==]]]]xx]]]+==;=;||%:33OXXX33:x]xx%::33OOOX===X, > > X:;=]]]]]+++==;::Ot N-||WXX3:%xxxx%:33333XUUX< > > +:;=+]]]x]=;;::Wx. ?"\XO3::%]xx%::3333XXX:, > > #:=+]]]]]+=:#WXx: ~XO::%x]]x%::33:3OO:; > > #;=]]]x]+=;0#Xx N3O:::%x]x::33:::3:]t > > 0=+]]]]]=;0#Q] 33:::x]]x:::::::%]= > > :=+]]]]==:#Xx+ T ~3::%x]x%:::%x%x]=t > > :=+]]x]=:#QOxX / +%xxxx]x%::%x]]]+; > > :=]x]x]=;0WOxQ / xx]xx]]x::%x]++=; > > :=]]]]+=;:#XuW / N]]]xx]x%%%x]++=: > > :=]x]]]=;:#Q3# / |++]xx]x%xx]+==: > > :=]]]]]+=:0WX#t o ]=+]xx]x%xx]+==0 > > N=]]]]]+=:::##N \ +==]]x]x%x]]==;# > > .=]x]]]+=;::::=; \ .:=+]]xxxx]]==:Q > > =]x]x]+==;;;==%< \ :#;=+xxxxx]+=;:X > > =]x]]]]+====++]X, J :Q:=+]xxxx]+=;:O > > N]xx]]]]+=++]]:4m ]Q:=+]x]x]+=;:03. > > N]xx]xx]+++]x:OU#W, +W:=+]x]x]+=;:#+ > > N+]x]]xx]]]]:3U#0]W, :+#:=+]x]x]+=;:Q. > > |]%x]xx]]xx:O=0]x%#, =]u:;+]]]]x]+=:#+ > > |%:%]xx]x%:X=0]x3ux,,., =xOQ:=+]]]x]+=;:O > > +::x]xx%::3U#M]333%##=X3:__ .:3xOQW:=+]]]]]+=:#+ > > +:3]]x%:::OU#M%%%x]#UO%+;::QXOu3Q#:;=]]]]]+=;03 > > +3:]]x%::3OU##]]]]0U3x=;:###WQW#:=++]]]]]+;:W= > > ?3:]]x%%:3XXU=####UO:+=;::::#0;=+]]x]]]+=:#3: > > 3O:x]xx%:3OOXXXXX3:%]=;;;::;:;=+]xx]]]+;:Q+ > > 3X3:x]x%::333O3::%]+=========+]x]]]]==;0u > > NXO:x]x%%:::33:::%]+==+++]]]]]x]]]+=:u > > N3X3%]]]x%%:::::::x]]xx]xxxx]]]]=;0= > > 3X3::x]]]xx%%%%%%xxxxxx]]]]]+=:X > > NUO33:%x]]]]]]]]]]]]]]]]+++=:O: > > "3O3::%%x]]]]]]]]]]++==;::3: > > "~::%%x]]]]]]++==;::xt > > N~|x]+++===;;N3 > > ray...@number.net wrote: > > Ummm .. are you doing Dali clocks? > HAHA...clever diddle. -- |"""""<`.THE PRINCE ,'>"""""""""""""""""""""""""""""""""""| | `.`/""""""\,',' my sig is too big, | |SEE HIS ( / \ \' SEE HIS but its really cool. | | FACE \/<> <>\/ SMILE | | / W \ Visit my ascii art site: | | ,'\_|||||_/`. http://www.gtcom.net/~krogg/ascii/ | | ,',' ||| `.`. kro...@gtcom.net | |____<,' TIME TO DIE `.>____Remove no.to.spam to reply____|
Faux_Pseudo wrote: > > --(Once apon a time, in alt.ascii-art,)-- > --(David Riley said it like only they can.)-- > >Fau...@home.com (Faux_Pseudo) writes: > > > >> but i dont think there is a qbasic port to linux > > > >According to apt-cache: > > > >yabasic - Yet Another BASIC interpreter > >bwbasic - Bywater basic interpreter > > a basic to c converter that will allow you to compile basic programs on linux provided you have a c compiler installed: http://faust.irb.hr/~stipy/qb2c/qb2c.html Obascii: <><> \/ _.-( BOO !) /\/\/\ \/\/\/ `-(Now pull off your pants!!) -- |"""""<`.THE PRINCE ,'>"""""""""""""""""""""""""""""""""""| | `.`/""""""\,',' my sig is too big, | |SEE HIS ( / \ \' SEE HIS but its really cool. | | FACE \/<> <>\/ SMILE | | / W \ Visit my ascii art site: | | ,'\_|||||_/`. http://www.gtcom.net/~krogg/ascii/ | | ,',' ||| `.`. kro...@gtcom.net | |____<,' TIME TO DIE `.>____Remove no.to.spam to reply____|
--(Once apon a time, in alt.ascii-art,)-- --(Krogg said it like only they can.)-- >Faux_Pseudo wrote: >> >> --(Once apon a time, in alt.ascii-art,)-- >> --(David Riley said it like only they can.)-- >> >Fau...@home.com (Faux_Pseudo) writes: >> > >> >> but i dont think there is a qbasic port to linux >> > >> >According to apt-cache: >> > >> >yabasic - Yet Another BASIC interpreter >> >bwbasic - Bywater basic interpreter >> > > >a basic to c converter that will allow >you to compile basic programs on linux >provided you have a c compiler installed: > >http://faust.irb.hr/~stipy/qb2c/qb2c.html > thanks for the link i will keep it in mind if i ever need to port any basic just how common is basic these days? has vb whiped it of the face of the earth or are still a lot of new people learning basic? -- ._______. ._______. | <> <> | GUI's are for slackers. | <> <> | \-|o|-/ ibpconf.sh 5 on freshmeat.net \-|o|-/ /___\ the easiest way to personalize /___\ (MMM) the command line. By Faux_Pseudo (MMM)
Fau...@home.com (Faux_Pseudo) wrote: > --(Once apon a time, in alt.ascii-art,)-- > --(Todd Vargo said it like only they can.)-- > > > >That's the functionality I was referring to. You don't want to (shouldn't) > >clear the entire screen (unless the clock will be hovering like a > >screensaver clock, you didn't say). My qb code only changes the digit that > >actually changed in the array, then prints only the time again. Oh well, I > >tried helping. Perhaps an analogy would help - programming in bash is a little bit like writing DOS batch files, only bash is far more powerful and has proper programming language features (control structures and the like). Still, cursor movement is awkward in bash. > and there is a way to use the trick you are talking about in bash tput? > now the time function works right now but i need to rewrite part of it > becase the time prints like > 2222 > 22 22 > 22 > 22 > 222 > 222222 [vertically-printing one digit after another mostly cut] > 9999 > 99 99 > 9999 > 99 > 99 > 99 > > instead of the corect horazontal out put Probably the best thing to do if you insist on doing this in bash (and I have to say that's an amazingly perverse thing to do it in :-)) is to output the digits to separate temporary files (when you start up the clock program, preferably) and use `paste' to put them together. For example, with files `2' and `9' as above: rus@cartman:2147:/home/rus/tmp>paste 2 9 2222 9999 22 22 99 99 22 9999 22 99 222 99 222222 99 (You could also make a temp file containing the necessary cursor-positioning control codes, and list that first in the paste command-line.) You might also want to look into using `trap' to clean up any such temporary files on e.g. ^C. The basic idea would be to do something like this before writing any of the files: trap 'rm -f files_to_delete' 0 1 3 15 (Obviously wildcards and variables are ok in the `rm' too.) ObASCII: one I did a few years back for a ZX Spectrum manual transcription, which seems appropriately `techie' for this post... :-) | y-axis | cosine of a = COS a <-__ ___|_|_ --_ a __-- |_v_-+__ -_ _- | /| -_ \ / | / | \ \ / | / |<-+ \ | | |/ | | | | ----------+-----------+-------|---+----------- | | | |\ x-axis :\ sine of a = SIN a / \ : \_ | _/ \ : --__ | __-- \ : ----+---- starting : | position <-radius=1 -> | | -Rus.
Faux_Pseudo wrote: > > --(Once apon a time, in alt.ascii-art,)-- > --(Krogg said it like only they can.)-- > >Faux_Pseudo wrote: > >> > >> --(Once apon a time, in alt.ascii-art,)-- > >> --(David Riley said it like only they can.)-- > >> >Fau...@home.com (Faux_Pseudo) writes: > >> > > >> >> but i dont think there is a qbasic port to linux > >> > > >> >According to apt-cache: > >> > > >> >yabasic - Yet Another BASIC interpreter > >> >bwbasic - Bywater basic interpreter > >> > > > > >a basic to c converter that will allow > >you to compile basic programs on linux > >provided you have a c compiler installed: > > > >http://faust.irb.hr/~stipy/qb2c/qb2c.html > > > > thanks for the link i will keep it in mind if i ever need to port > any basic > just how common is basic these days? I still use it for Processing text files (Q-Basic, it's still on the Windows CD) > has vb whiped it of the face of the earth or are still a lot > of new people learning basic? > > -- > ._______. ._______. > | <> <> | GUI's are for slackers. | <> <> | > \-|o|-/ ibpconf.sh 5 on freshmeat.net \-|o|-/ > /___\ the easiest way to personalize /___\ > (MMM) the command line. By Faux_Pseudo (MMM)
Faux_Pseudo wrote: > > --(Once apon a time, in alt.ascii-art,)-- > --(Krogg said it like only they can.)-- > >Faux_Pseudo wrote: > >> > >> --(Once apon a time, in alt.ascii-art,)-- > >> --(David Riley said it like only they can.)-- > >> >Fau...@home.com (Faux_Pseudo) writes: > >> > > >> >> but i dont think there is a qbasic port to linux > >> > > >> >According to apt-cache: > >> > > >> >yabasic - Yet Another BASIC interpreter > >> >bwbasic - Bywater basic interpreter > >> > > > > >a basic to c converter that will allow > >you to compile basic programs on linux > >provided you have a c compiler installed: > > > >http://faust.irb.hr/~stipy/qb2c/qb2c.html > > > > thanks for the link i will keep it in mind if i ever need to port > any basic > just how common is basic these days? > has vb whiped it of the face of the earth or are still a lot > of new people learning basic? > PowerBasic seems to be going strong and qbasic and quick basic both have a very big scene....... When i was at work today i happened across a basic compiler that was native to lunix...I forgot what it was called though...wait.... RapidQ http://www.basicguru.com/abc/rapidq/index.html and xBasic http://www.maxreason.com/software/xbasic/xbasic.html If i read right they both have linux versions... For anyone interested..........Personally i dont have linux and most of my current coding is with PowerBasic 3.5,djgpp(c and c++), and Visual C++.... Obascii: 115 lbs ,. ,. || || [||]]==========[[||] || || `' `' -- |"""""<`.THE PRINCE ,'>"""""""""""""""""""""""""""""""""""| | `.`/""""""\,',' my sig is too big, | |SEE HIS ( / \ \' SEE HIS but its really cool. | | FACE \/<> <>\/ SMILE | | / W \ Visit my ascii art site: | | ,'\_|||||_/`. http://www.gtcom.net/~krogg/ascii/ | | ,',' ||| `.`. kro...@gtcom.net | |____<,' TIME TO DIE `.>____Remove no.to.spam to reply____|
--(Once apon a time, in alt.ascii-art,)-- --(Russell Marks said it like only they can.)-- while the ideas you have are workable for fixing the vertical output they are not effciant i was going to go with an array for this so that i dont need to check the disk as much as emacs. and avoid the need for the trap comand all together. But thanks for the ideas >Fau...@home.com (Faux_Pseudo) wrote: > >> --(Once apon a time, in alt.ascii-art,)-- >> --(Todd Vargo said it like only they can.)-- >> > >> now the time function works right now but i need to rewrite part of it >> becase the time prints like >> 2222 >> 22 22 >> 22 >> 22 >> 222 >> 222222 >[vertically-printing one digit after another mostly cut] >> 9999 >> 99 99 >> 9999 >> 99 >> 99 >> 99 >> >> instead of the corect horazontal out put > >Probably the best thing to do if you insist on doing this in bash (and >I have to say that's an amazingly perverse thing to do it in :-)) is >to output the digits to separate temporary files (when you start up >the clock program, preferably) and use `paste' to put them together. >For example, with files `2' and `9' as above: > >rus@cartman:2147:/home/rus/tmp>paste 2 9 > 2222 9999 >22 22 99 99 > 22 9999 > 22 99 > 222 99 >222222 99 > >(You could also make a temp file containing the necessary >cursor-positioning control codes, and list that first in the paste >command-line.) > >You might also want to look into using `trap' to clean up any such >temporary files on e.g. ^C. The basic idea would be to do something >like this before writing any of the files: > >trap 'rm -f files_to_delete' 0 1 3 15 > >(Obviously wildcards and variables are ok in the `rm' too.) > -- ._______. ._______. | <> <> | GUI's are for slackers. | <> <> | \-|o|-/ ibpconf.sh 5 on freshmeat.net \-|o|-/ /___\ the easiest way to personalize /___\ (MMM) the command line. By Faux_Pseudo (MMM)
On 2 Nov Krogg enlightened us by saying: >Faux_Pseudo wrote: >> >> --(Once apon a time, in alt.ascii-art,)-- >> --(Krogg said it like only they can.)-- >> thanks for the link i will keep it in mind if i ever need to port >> any basic >> just how common is basic these days? >> has vb whiped it of the face of the earth or are still a lot >> of new people learning basic? >> >PowerBasic seems to be going strong and qbasic and quick basic >both have a very big scene....... I think my brother, and a lot of RISC OS programmers, use BBC Basic quite a lot. Im having to learn VB @ college cos they cant afford to get in any other system! -- _______ _______ [_______\ angel /_______] [______\ * /______] [___\ /___] http://www.eggstravaganza.org
Russell Marks <russell.marks@spam^H^H^H^Hntlworld.com> wrote in message news:vMWL5.933$5j5...@news6-win.server.ntlworld.com... > Fau...@home.com (Faux_Pseudo) wrote: > > > --(Once apon a time, in alt.ascii-art,)-- > > --(Todd Vargo said it like only they can.)-- > > > > > >That's the functionality I was referring to. You don't want to (shouldn't) > > >clear the entire screen (unless the clock will be hovering like a > > >screensaver clock, you didn't say). My qb code only changes the digit that > > >actually changed in the array, then prints only the time again. Oh well, I > > >tried helping. > > Perhaps an analogy would help - programming in bash is a little bit > like writing DOS batch files, only bash is far more powerful and has > proper programming language features (control structures and the > like). Still, cursor movement is awkward in bash. Would you like to see this in a fully functioning batch file? Yep, I had to do it. Only took 2 days of spare time. The zip including a face and character set and the batch files is only 2KB. > > > and there is a way to use the trick you are talking about in bash > > tput? > > > now the time function works right now but i need to rewrite part of it > > becase the time prints like > > 2222 > > 22 22 > > 22 > > 22 > > 222 > > 222222 > [vertically-printing one digit after another mostly cut] > > 9999 > > 99 99 > > 9999 > > 99 > > 99 > > 99 > > > > instead of the corect horazontal out put > > Probably the best thing to do if you insist on doing this in bash (and > I have to say that's an amazingly perverse thing to do it in :-)) is > to output the digits to separate temporary files (when you start up > the clock program, preferably) and use `paste' to put them together. > For example, with files `2' and `9' as above: > > rus@cartman:2147:/home/rus/tmp>paste 2 9 > 2222 9999 > 22 22 99 99 > 22 9999 > 22 99 > 222 99 > 222222 99 Whoa, you can paste side by side? Oh well, the syntax don't help me any way. > > (You could also make a temp file containing the necessary > cursor-positioning control codes, and list that first in the paste > command-line.) > > You might also want to look into using `trap' to clean up any such > temporary files on e.g. ^C. The basic idea would be to do something > like this before writing any of the files: > > trap 'rm -f files_to_delete' 0 1 3 15 > > (Obviously wildcards and variables are ok in the `rm' too.) > > ObASCII: one I did a few years back for a ZX Spectrum manual > transcription, which seems appropriately `techie' for this post... :-) > > | y-axis > | > cosine of a = COS a <-__ > ___|_|_ --_ a > __-- |_v_-+__ -_ > _- | /| -_ \ > / | / | \ \ > / | / |<-+ \ | > | |/ | | | | > ----------+-----------+-------|---+----------- > | | | |\ x-axis > :\ sine of a = SIN a / \ > : \_ | _/ \ > : --__ | __-- \ > : ----+---- starting > : | position > <-radius=1 -> > | > | > -Rus. -- Todd Vargo (body of msg must contain my name to reply)
Fau...@home.com (Faux_Pseudo) wrote: > while the ideas you have are workable for > fixing the vertical output they are not effciant Um, you're using bash. Did I miss the part where efficiency came into the equation? ;-) > But thanks for the ideas Ok. Good luck with it. -Rus.
--(Once apon a time, in alt.ascii-art,)-- --(Russell Marks said it like only they can.)-- >Fau...@home.com (Faux_Pseudo) wrote: > >> while the ideas you have are workable for >> fixing the vertical output they are not effciant > >Um, you're using bash. Did I miss the part where efficiency came into >the equation? ;-) > >> But thanks for the ideas > >Ok. Good luck with it. > >-Rus. i hear what you are saying and here is what it comes down to i know bash i dont know enouph c to make even a small app that dosnt take at least a few edits to get it to compile so i am sticking with bash until i learn c better or perl and this is going to be a novelty item not a system critical app -- ._______. ._______. | <> <> | GUI's are for slackers. | <> <> | \-|o|-/ ibpconf.sh 5 on freshmeat.net \-|o|-/ /___\ the easiest way to personalize /___\ (MMM) the command line. By Faux_Pseudo (MMM)
--(Once apon a time, in alt.ascii-art,)-- --(Angel4rmMars said it like only they can.)-- >On 2 Nov Krogg enlightened us by saying: > >>Faux_Pseudo wrote: >>> >>> --(Once apon a time, in alt.ascii-art,)-- >>> --(Krogg said it like only they can.)-- >>> thanks for the link i will keep it in mind if i ever need to port >>> any basic >>> just how common is basic these days? >>> has vb whiped it of the face of the earth or are still a lot >>> of new people learning basic? >>> >>PowerBasic seems to be going strong and qbasic and quick basic >>both have a very big scene....... > >I think my brother, and a lot of RISC OS programmers, use BBC Basic >quite a lot. Im having to learn VB @ college cos they cant afford to get >in any other system! its time to tell them about the benis of a free os :) -- ._______. ._______. | <> <> | GUI's are for slackers. | <> <> | \-|o|-/ ibpconf.sh 5 on freshmeat.net \-|o|-/ /___\ the easiest way to personalize /___\ (MMM) the command line. By Faux_Pseudo (MMM)
"Todd Vargo" <t...@birdlover.com> wrote: > Russell Marks <russell.marks@spam^H^H^H^Hntlworld.com> wrote in message > news:vMWL5.933$5j5...@news6-win.server.ntlworld.com... [...] > > Perhaps an analogy would help - programming in bash is a little bit > > like writing DOS batch files, only bash is far more powerful and has > > proper programming language features (control structures and the > > like). Still, cursor movement is awkward in bash. > > Would you like to see this in a fully functioning batch file? Yep, I had to > do it. Only took 2 days of spare time. The zip including a face and > character set and the batch files is only 2KB. Ouch. You'll understand if I respectfully request that you keep this horror^H^H^H^H^H^Hmarvel to yourself for the good of mankind? :-) -Rus.
Russell Marks <russell.marks@spam^H^H^H^Hntlworld.com> wrote in message news:pkkN5.48636$hk2...@news6-win.server.ntlworld.com... > "Todd Vargo" <t...@birdlover.com> wrote: > > > Russell Marks <russell.marks@spam^H^H^H^Hntlworld.com> wrote in message > > news:vMWL5.933$5j5...@news6-win.server.ntlworld.com... > [...] > > > Perhaps an analogy would help - programming in bash is a little bit > > > like writing DOS batch files, only bash is far more powerful and has > > > proper programming language features (control structures and the > > > like). Still, cursor movement is awkward in bash. > > > > Would you like to see this in a fully functioning batch file? Yep, I had to > > do it. Only took 2 days of spare time. The zip including a face and > > character set and the batch files is only 2KB. > > Ouch. You'll understand if I respectfully request that you keep this > horror^H^H^H^H^H^Hmarvel to yourself for the good of mankind? :-) > > -Rus. Sorry, no can do. Hehh, the idea is only for demo purposes anyway really. No one would actually leave the thing running on screen permanently, would they? Besides, you made the analogy. This implied to me that the task would be too difficult to accomplish with a batch file (lack of control structures and the like). Note, there are still people trying to learn batch programming, so it makes a good learning tool for them, well, if I bother to document it someday. In case your afraid of the running speed, as long as you run it with disk caching or in a ramdrive, it runs quite efficiently. It will display your own skins too, which the qbasic routine lacked and was complained about. It only took me one day of spare time longer than the qbasic routine. How many other finished, *working* routines are available? Is there some other reason to not give it a look see? Please explain your comments, I feel offended now. -- Todd Vargo (body of message must contain my name to reply)
Russell Marks <russell.marks@spam^H^H^H^Hntlworld.com> wrote in message news:R3AO5.88617$hk2...@news6-win.server.ntlworld.com... > "Todd Vargo" <t...@birdlover.com> wrote: > > Please explain your comments, I feel offended now. > > As I said only a week ago on another group - "Oh well. I should know > better than to try subtle humour on Usenet. I remember when `merely' > labelling it with a smiley was enough." And this `humour' wasn't even > terribly subtle. :-) > > In other words, I was only kidding. A batch-file-based clock program > is kind of neat from a hack-value perspective, but slightly crazy in > much the same way that a COBOL C compiler would be. It. Is. Weird. > Hence my comment. Ok? *Of course* I don't mind you distributing it > (though I should say I'm not personally very interested since I use > Linux). > > If you're this easily offended, you must have some sort of death wish > to post to Usenet. :-) > > -Rus. Not easily offended really. A smiley don't show actual intention, that why I asked. It's just that many would not believe it to be at all possible through batch. Sorry for the misunderstanding. :( -- Todd Vargo (body of message must contain my name to reply)
"Todd Vargo" <t...@birdlover.com> wrote: > Russell Marks <russell.marks@spam^H^H^H^Hntlworld.com> wrote in message > news:pkkN5.48636$hk2...@news6-win.server.ntlworld.com... > > "Todd Vargo" <t...@birdlover.com> wrote: > > > > > Russell Marks <russell.marks@spam^H^H^H^Hntlworld.com> wrote in message > > > news:vMWL5.933$5j5...@news6-win.server.ntlworld.com... > > [...] > > > > Perhaps an analogy would help - programming in bash is a little bit > > > > like writing DOS batch files, only bash is far more powerful and has > > > > proper programming language features (control structures and the > > > > like). Still, cursor movement is awkward in bash. > > > > > > Would you like to see this in a fully functioning batch file? Yep, I had to > > > do it. Only took 2 days of spare time. The zip including a face and > > > character set and the batch files is only 2KB. > > > > Ouch. You'll understand if I respectfully request that you keep this > > horror^H^H^H^H^H^Hmarvel to yourself for the good of mankind? :-) > > > > -Rus. > [much unnecessary self-justification cut] > > Please explain your comments, I feel offended now. As I said only a week ago on another group - "Oh well. I should know better than to try subtle humour on Usenet. I remember when `merely' labelling it with a smiley was enough." And this `humour' wasn't even terribly subtle. :-) In other words, I was only kidding. A batch-file-based clock program is kind of neat from a hack-value perspective, but slightly crazy in much the same way that a COBOL C compiler would be. It. Is. Weird. Hence my comment. Ok? *Of course* I don't mind you distributing it (though I should say I'm not personally very interested since I use Linux). If you're this easily offended, you must have some sort of death wish to post to Usenet. :-) -Rus.
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this thread.
These messages were posted publicly to the newsgroup
alt.ascii-art
in 2000 and are 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 one of the authors? 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.