Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 12 Feb 1996.
working with the escape character

working with the escape character

Greetings all...

I have had a couple of requests for info on how to use ascii value 027 (escape) into vi, pico, etc. What follows is an EXTREMELY ugly hack to at least enable for use the escape character in vi and pico.

the below assumes you're on a UNIX platform (I can come up with VMS instructions as well)

1. use this command to dump an escape character into a file named ec (you can name it anything you like):

echo (esc) > ec

note that (esc) means the escape key, not the ^ character followed by the the bracket [.

you can then use this small file as a convienient way to pull an escape character into an editor.

this gives you a file named ec with 3 characters in it: the escape character, and ascii newline, and an eof character. You can then edit out the newline (if you really want) and just leave the escape character and the eof (can't get rid of the eof). In fact, you can dump as many escape characters in a file as you wish (I personally have a file named ec with two escape characters separated by a space for greater convienience).

that's it,

2a (vi)
in vi, while working on your art, go to command mode, enter a : (appears at the bottom of the screen), then type a lower case r (to retrieve a file) followed by a space and then the actual name of the file (in this case, the file with your ascii escapes), e.g.

~
~
~
~
:r ec

that will put the escape on the line below the current position of the cursor before you went into command mode. 

2b(pico)
in pico, use ^R (ctrl+r) to retrieve the escape.

I don't know how to retieve in emacs...

please refer to the VT100 escape sequence list I posted here a little while ago. I also have the wyse 50 set (not nearly as interesting as the VT100)

Allen

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,e69f319f8c8ea97a,start
X-Google-Attributes: gidf996b,public
From: ALLEN T. SANTORA (ELEN) <asantora@phosphorus>
Subject: working with the escape character
Date: 1996/02/12
Message-ID: <4fo7ns$3u...@portal.gmu.edu>#1/1
X-Deja-AN: 139336073
content-type: text/plain; charset=US-ASCII
organization: George Mason University, Fairfax, Virginia, USA
mime-version: 1.0
newsgroups: alt.ascii-art

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 1996 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