Article View: gnu.gcc.help
Article #42127Re: cursor moving with the UNIX gcc
From: Richard Jones
Date: Sat, 13 Jan 1996 00:00
Date: Sat, 13 Jan 1996 00:00
24 lines
1381 bytes
1381 bytes
Roeder Martin (Martin.Roeder@mni.fh-giessen.de) wrote:
: I would like to have a function (like gotoXY in Pascal) in C to put the
: cursor on a defined place in the shell.
: Perhaps there are ESC-sequences for it.
: I already found out the ESC-seq. to Clear the window:
: char c[]={27,91,72,27,91,50,74};
: printf("%s",c);
: I use the Sun-Unix System.
: Perhaps there is a library for the sun gcc but I still didn't find it.
These things are not covered by the compiler in Unix systems. You
need to use a library like termcap or curses. Try `man termcap' or
`man curses' as a starter. There are good Gnu implementations of
termcap and curses for Linux and other unix systems.
Rich.
--
"The real tight interface is between the book and the reader - the world of
the book is plugged right into your brain, never mind the [virtual reality]
bodysuit"
-- from The Age of Missing Information, by Bill McKibben.
Technical Details
Message-ID:
<4d9c5e$ivo@frigate.doc.ic.ac.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<30F66B72.92A@mni.fh-giessen.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,ce52ed350bfe6976 X-Google-Attributes: gid11318c,public From: rwmj@doc.ic.ac.uk (Richard Jones) Subject: Re: cursor moving with the UNIX gcc Date: 1996/01/13 Message-ID: <4d9c5e$ivo@frigate.doc.ic.ac.uk> X-Deja-AN: 135481188 references: <30F66B72.92A@mni.fh-giessen.de> organization: Dept. of Computing, Imperial College, University of London, UK. newsgroups: gnu.gcc.help