Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 2 Nov 2000.
Re: ascii clocks

Re: ascii clocks

--(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)

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,dd72bd170144bb61
X-Google-Attributes: gidf996b,public
X-Google-ArrivalTime: 2000-11-01 23:39:28 PST
Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!howland.erols.net!news-out.worldnet.att.net.MISMATCH!wn3feed!worldnet.att.net!wnmasters2!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail
From: Fau...@home.com (Faux_Pseudo)
Newsgroups: alt.ascii-art
Subject: Re: ascii clocks
References: <slr...@faux.local.net> <8taab1$guv$1...@neptunium.btinternet.com> <slr...@cx743464-a.fed1.sdca.home.com> <8tgvn4$n61r9$1...@ID-25025.news.dfncis.de> <slr...@faux.local.net> <8tk3u3$n4hgo$1...@ID-25025.news.dfncis.de> <slr...@faux.local.net> <vMWL5.933$5j5...@news6-win.server.ntlworld.com>
Reply-To: Fau...@yahoo.com
Message-ID: <slr...@faux.local.net>
User-Agent: slrn/0.9.5.7 (UNIX)
Lines: 67
Date: Thu, 02 Nov 2000 07:39:26 GMT
NNTP-Posting-Host: 12.72.23.36
X-Complaints-To: abu...@worldnet.att.net
X-Trace: bgtnsc05-news.ops.worldnet.att.net 973150766 12.72.23.36 (Thu, 02 Nov 2000 07:39:26 GMT)
NNTP-Posting-Date: Thu, 02 Nov 2000 07:39:26 GMT
Organization: AT&T Worldnet
Xref: supernews.google.com alt.ascii-art:2546

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