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: jshepher@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$af6@sunb.ocs.mq.edu.au> References: <2kv0ob$t10@rowan.coventry.ac.uk> Reply-To: jshepher@laurel.ocs.mq.edu.au NNTP-Posting-Host: laurel.ocs.mq.edu.au In a previous article, nmassey@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.