Re: Where can I find the control codes for VT100 terminal ?
From David Lindes <lin...@training.asd.sgi.com>
· alt.ascii-art.animation
· 1 Mar 1994 05:50 · View full thread
· report
In <2kr05v$11...@darkstar.UCSC.EDU>, ia...@cse.ucsc.edu (ian barland (boy wander)) writes: >skw...@cuse1.se.cuhk.hk (Wong Sai Kee (Graduate Assistant)) writes: >| Since the program need to >| place the char at random position on screen and then erase the char; I need >| to printf() some control codes. I don't have information on the control >| chars for terminal (I guess the vt100 is the most common one). >| >This may be overkill for what you want, but the "curses" library >provides for term-type-independent code, instead of restricting yourself >to (say) vt100. "man 3v curses". (Never used it myself, don't know how >much is involved in figuring out what's needed.) the curses man page i've looked through is pretty huge... but VERY nice to learn. it's very flexible, etc, once you find your way around it... as for the ANSI escape codes, you can do movement with: ^[[x;yH where '^[' is the ESCAPE charachter... (ascii 27?) 'x' and 'y' are integer coordinates on the screen, and '[' and 'H' are constants another way to do it would be to use \r in your printf. that SHOULD take you to the beginning of the line, as i recall... (though i got used to that on a system that's far from standard, so i could be wrong) enjoy... good luck. david lindes lin...@asd.sgi.com #include <std_disclaimer.h>
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-02-28 21:50:35 PST Newsgroups: alt.ascii-art,alt.binaries.pictures.ascii,alt.ascii-art.animation Path: gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!swrinde!sgiblab!sgigate.sgi.com!odin!training!lindes From: lin...@training.asd.sgi.com (David Lindes) Subject: Re: Where can I find the control codes for VT100 terminal ? Message-ID: <CLz...@odin.corp.sgi.com> Sender: new...@odin.corp.sgi.com (Net News) Nntp-Posting-Host: training.asd.sgi.com Organization: Silicon Graphics, Inc. Mountain View, CA References: <CLvKGr.M1r@eng_ser1.ie.cuhk.hk> <2kr05v$11...@darkstar.UCSC.EDU> Date: Tue, 1 Mar 1994 05:50:35 GMT Lines: 36
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
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.animation
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.