Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from rec.arts.ascii, 15 Oct 1994.
Info: How to send Figlet output to a file

Info: How to send Figlet output to a file

bob...@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 ant...@cit.gu.edu.au for the basis
of how to do this).

Cheers
Tony
  _      ___   _  _                        _                               _
 (:)====/__/\=(:)(:)======================(:)=============================(:)
 |\|   _\_ \ \|\||=| Tony Nugent          |\| T.N...@sct.gu.edu.au      |=|
 |=|  /__/\_\ \=||\| Griffity University  |=| tnu...@gucis.cit.gu.edu.au |\|
 |\| /  /\  __/\|(:)======================(:)=============================(:)
 |=|/  / /\ \ |=||=|  "There are three kinds of lies: lies, damn lies,    |=|
 |\/__/  \_\/ |\||\|   and statistics."                                   |\|
 |=\__\/\ \   |=||=|                                - Mark Twain          |=|
 (:)==\__\/===(:)(:)======================================================(:)
  ~            ~  ~                                                        ~

Original message headers
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 <T.N...@sct.gu.edu.au>
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: bob...@wwa.com
Approved: bob...@wwa.com
Message-ID: <37p3d4$8r...@sashimi.wwa.com>
References: <CxC...@adl33cc.adelphi.edu> <37bbc9$mf...@ceylon.gte.com> <37ll66$65...@infa.central.susx.ac.uk> <37mlkb$m7...@gagme.wwa.com>
Reply-To: T.N...@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

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 rec.arts.ascii in 1994 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