Re: Where can I find the control codes for VT100 terminal ?
From Jonathon <jsh...@laurel.ocs.mq.edu.au>
· alt.ascii-art
· 2 Mar 1994 05:50 · View full thread
· 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.
Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fd588,9d6cec2b5f6a609b X-Google-Attributes: gidfd588,public X-Google-Thread: f996b,9d6cec2b5f6a609b X-Google-Attributes: gidf996b,public X-Google-Thread: 110f55,9d6cec2b5f6a609b X-Google-Attributes: gid110f55,public X-Google-ArrivalTime: 1994-03-01 21:50:44 PST Path: gmd.de!newsserver.jvnc.net!netnews.upenn.edu!msuinfo!harbinger.cc.monash.edu.au!bruce.cs.monash.edu.au!merlin!mel.dit.csiro.au!its.csiro.au!dmssyd.syd.dms.CSIRO.AU!metro!sunb.ocs.mq.edu.au!laurel.ocs.mq.edu.au!jshepher From: jsh...@laurel.ocs.mq.edu.au (Jonathon) Newsgroups: alt.ascii-art,alt.binaries.pictures.ascii,alt.ascii-art.animation Subject: Re: Where can I find the control codes for VT100 terminal ? Date: 2 Mar 1994 05:50:44 GMT Organization: Macquarie University, Sydney. Lines: 29 Message-ID: <2l19fk$af...@sunb.ocs.mq.edu.au> References: <CLvKGr.M1r@eng_ser1.ie.cuhk.hk> <2kv0ob$t1...@rowan.coventry.ac.uk> Reply-To: jsh...@laurel.ocs.mq.edu.au NNTP-Posting-Host: laurel.ocs.mq.edu.au
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
__ . . __ (o.\ \/ /.o) \__\/\/__/ /O /==\ O\ (;O/ \/ \O;)
_______ |.-----.| || jgs || ||_ _|| `--)-(--` __[=== o]___ |:::::::::::|\ `-=========-`()
,sSSs ,SSSS_/ ,_ sS/`))\// sS//|_(_/ _, SS\\\ `""-.-'` / sSS` jgs-==-'`'-._\
___________ | _______ | | | | | | | | | | | | | | |_______| | |___________|
//O\\
|\/\/\/| | | | | | (o)(o) C _) | ,___| | / /____\
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this message.
This message was posted publicly to the newsgroup
alt.ascii-art
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.