Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet thread from alt.ascii-art, started 2 Mar 1994.
 _   _                     _        _             _     _           
| | | |___  ___ _ __   ___| |_     / \   _ __ ___| |__ (_)_   _____ 
| | | / __|/ _ \ '_ \ / _ \ __|   / _ \ | '__/ __| '_ \| \ \ / / _ \
| |_| \__ \  __/ | | |  __/ |_   / ___ \| | | (__| | | | |\ V /  __/
 \___/|___/\___|_| |_|\___|\__| /_/   \_\_|  \___|_| |_|_| \_/ \___|
Where can I find the control codes for VT100 terminal ?

Where can I find the control codes for VT100 terminal ?

alt.ascii-art · 1 message · 2 Mar 1994
Jonathon <jsh...@laurel.ocs.mq.edu.au> ASCII art 2 Mar 1994 05:50 · raw headers · report
In a previous article, nma...@rowan.coventry.ac.uk (Mad_Mas!) writes:
: well, all you realy need is...
: 
: (esc)[Y;Xm I think...
: 
: so the program will look like this... 
:
: printat (int X,int Y);
: {
: 	printf("%s%d%c%d%c%s","(esc)[",Y,';',X,'m',"String to print");
: }

The sequence is incorrect, you need a 'H', not an 'm'.

Try the following function which does the same thing:

	void place(st, rw, cl)
	char *st;
	int rw, cl;
	{
		printf("\033[%d;%dH%s", rw, cl, st);
	}

In the above, the \033 expands to the ESC character (no need to type it
explicitly), and you call the function by place("string", 3, 6) for example.

Cheers,

Jonathon.

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