Path: utzoo!attcan!uunet!wuarchive!usc!julius.cs.uiuc.edu!rpi!uupsi!jpradley!jpr From: jpr@jpradley.jpr.com (Jean-Pierre Radley) Newsgroups: comp.lang.c Subject: Re: Unix Routines Message-ID: <1991Jan13.163326.8246@jpradley.jpr.com> Date: 13 Jan 91 16:33:26 GMT References: <26284@uflorida.cis.ufl.EDU> Reply-To: jpr@jpradley.UUCP (Jean-Pierre Radley) Distribution: comp.lang.c Organization: NYC Public Unix Lines: 21 In article <26284@uflorida.cis.ufl.EDU> pm0@springs.cis.ufl.edu (Patrick Martin) writes: >Could someone tell me how to do the following on a Unix System: > >Up() {will move the Cursor up 1 position} >Down() { ... down ...} >Left() { ... left ...} >Right() { ... right ...} > The required code is highly dependent on your hardware. Check out termcap, terminfo, tgetent, tput, and other such entries in your manual. In fact, just browing through /etc/termcap, or /usr/lib/terminfo/*src, will show you that the code sequences you seek are quite variable. Your system's C libraries give you tools to find the codes for any given terminal; you then incorporate them into your code so as to be device-independent. -- Jean-Pierre Radley NYC Public Unix jpr@jpr.com CIS: 72160,1341