X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,3a59c8977aee9a2a,start X-Google-Attributes: gidf996b,public X-Google-Thread: fbb9d,3a59c8977aee9a2a,start X-Google-Attributes: gidfbb9d,public X-Google-Thread: 110f55,3a59c8977aee9a2a,start X-Google-Attributes: gid110f55,public X-Google-ArrivalTime: 1994-10-15 10:29:51 PST Path: bga.com!news.sprintlink.net!sashimi.wwa.com!not-for-mail From: Tony Nugent Newsgroups: rec.arts.ascii,alt.ascii-art,alt.binaries.pictures.ascii Subject: Info: How to send Figlet output to a file Date: 15 Oct 1994 12:27:00 -0500 Organization: Griffith University, Brisbane, Australia Lines: 60 Sender: boba@wwa.com Approved: boba@wwa.com Message-ID: <37p3d4$8r1@sashimi.wwa.com> References: <37bbc9$mfc@ceylon.gte.com> <37ll66$65t@infa.central.susx.ac.uk> <37mlkb$m7g@gagme.wwa.com> Reply-To: T.Nugent@sct.gu.edu.au NNTP-Posting-Host: sashimi.wwa.com Xref: bga.com rec.arts.ascii:2102 alt.ascii-art:12999 alt.binaries.pictures.ascii:1332 boba@wwa.com (Bob Allison) writes: >>: If I want to say "Hello, World" in script font I: >>: echo "Hello, World" | figlet -f script >>This does work, but it's a little difficult to get multi-line in one >>file. >>Try >>figlet -f script >>Hello World >>^D >>Then, to save to a file, >>figlet -f script > text.file >>This Text >>Will be >>figlitized >>in >>text.file >>^D >>It's really up to you, whichever method you find easier. > Interesting, I'll have to put that in the longer FAQs. Here's a vi macro that will figletise a line... " @F Expand Current Line with `Figlet' :map @F !!figlet -c -f When you run this macro (with @F in command mode - note that this is a "two-key" macro!), you can specify the font name on the command line (or else the default one will be used). The current line will be figletised (and centered) when you press return. Add this to your EXINIT variable, or to your ~/.exrc file (but beware that vi will ignore ~/.exrc if EXINIT is set). You could add a series of macros to vi like this, with different fonts, justification, smush modes and so on. Automatic execution is possible by finishing the macro with a ^M (done in vi by a control-V followed by Enter to produce a "hard" control-M). (Thanks to Anthony Thysson anthony@cit.gu.edu.au for the basis of how to do this). Cheers Tony _ ___ _ _ _ _ (:)====/__/\=(:)(:)======================(:)=============================(:) |\| _\_ \ \|\||=| Tony Nugent |\| T.Nugent@sct.gu.edu.au |=| |=| /__/\_\ \=||\| Griffity University |=| tnugent@gucis.cit.gu.edu.au |\| |\| / /\ __/\|(:)======================(:)=============================(:) |=|/ / /\ \ |=||=| "There are three kinds of lies: lies, damn lies, |=| |\/__/ \_\/ |\||\| and statistics." |\| |=\__\/\ \ |=||=| - Mark Twain |=| (:)==\__\/===(:)(:)======================================================(:) ~ ~ ~ ~