Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!tut.cis.ohio-state.edu!dsac.dla.mil!dsacg3.dsac.dla.mil!nto0302 From: nto0302@dsacg3.dsac.dla.mil (Bob Fisher) Newsgroups: comp.lang.c Subject: Re: Unix Routines Message-ID: <2871@dsacg3.dsac.dla.mil> Date: 14 Jan 91 12:51:22 GMT References: <1991Jan13.163326.8246@jpradley.jpr.com] Distribution: comp.lang.c Organization: Defense Logistics Agency Systems Automation Center, Columbus Lines: 26 From article <1991Jan13.163326.8246@jpradley.jpr.com], by jpr@jpradley.jpr.com (Jean-Pierre Radley): ] 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. Also check out the curses(3) library functions. The reference to hardware dependency refers to terminals, not just the CPU. Different brands of terminals on the same system may require different command sequences. -- Bob Fisher US Defense Logistics Agency Systems Automation Center DSAC-TOL, Box 1605, Columbus, OH 43216-5002 614-238-9071 (AV 850-9071) bfisher@dsac.dla.mil osu-cis!dsacg1!bfisher