Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet thread from alt.ascii-art.animation, started 12 Mar 1994.
 _   _                     _        _             _     _           
| | | |___  ___ _ __   ___| |_     / \   _ __ ___| |__ (_)_   _____ 
| | | / __|/ _ \ '_ \ / _ \ __|   / _ \ | '__/ __| '_ \| \ \ / / _ \
| |_| \__ \  __/ | | |  __/ |_   / ___ \| | | (__| | | | |\ V /  __/
 \___/|___/\___|_| |_|\___|\__| /_/   \_\_|  \___|_| |_|_| \_/ \___|
How to enter <ESC> or Control Keys?

How to enter <ESC> or Control Keys?

alt.ascii-art.animation · 2 messages · 12 Mar 1994 - 13 Mar 1994
	I know this is a very basic question, but it keep haunting me
for a while now.  For example if I want to have my screen blank in a
vt100 terminal then I know the sequence '<ESC>[5m' will do, but how do I
enter that into a word processing or editing like 'vi' or 'pico' in
unix?  How do I enter it for DOS?  Thanks for any information.  I know
the ansi.sys driver, and know how to use 'prompt' command to do the
trick, but that's not what I want.  I want to just create the effect
into a file and then type 'type <filename>' or 'cat <filename>' and I
should be about to see the effect.

Xy

To enter an escape character in vi, while in insert mode (that is, after
you press i or a to start adding text) press CONTROL V, and that will enter
an ESC character.

For example, when I want to create a line that is in reverse, I need to
have a line like this:

^[[7m This is in reverse ^[[0m

To set the control characters, press control-v, then control-left bracket,
then press the left bracket by itself, them 7m, any text following this
code will be in reverse. Do the same for the end of the line, instead
place a 0m to turn off the attributes.
-- 
Mehrdad.       ,,,                                  | mka...@oswego.oswego.edu
              (o o)           "The Tazmanian Devil" | mka...@snyoswva.bitnet
 ---------oOO--(_)--OOo-----------------------------| snybcs!oswego!mkarjoo
Senior Operator, ICC, SUNY Oswego, Oswego, NY 13126 | ta...@oswego.oswego.edu

Related ASCII art in the Gallery

Explore these categories from our collection of 11,000+ artworks:

About this thread. These messages were posted publicly to the newsgroup alt.ascii-art.animation in 1994 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.

Help classify this post