Unix Routines

Bob Fisher nto0302 at dsacg3.dsac.dla.mil
Mon Jan 14 23:51:22 AEST 1991


>From article <1991Jan13.163326.8246 at jpradley.jpr.com], by jpr at jpradley.jpr.com (Jean-Pierre Radley):
] In article <26284 at uflorida.cis.ufl.EDU] pm0 at 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 at dsac.dla.mil		osu-cis!dsacg1!bfisher



More information about the Comp.lang.c mailing list