Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!uunet!mcsun!ukc!stl!robobar!ronald From: ronald@robobar.co.uk (Ronald S H Khoo) Newsgroups: comp.lang.c Subject: Re: Curses Message-ID: <1991May13.065808.24532@robobar.co.uk> Date: 13 May 91 06:58:08 GMT Article-I.D.: robobar.1991May13.065808.24532 References: <4@bodedo.UUCP> Organization: Robobar Ltd., Perivale, Middx., ENGLAND. Lines: 17 bo@bodedo.UUCP (Bo Sheffield) writes: > I noticed > in the terminfo header file it has backtab defined (#define KEY_BTAB 0541) but > I can't get getch() to return that. You need to ensure that the key sequence returned by the bactab key is defined in the terminfo entry. For example, on the Xenix console, backtab is [Z, so you need to a) extract the entry for "ansi" from /usr/lib/terminfo/terminfo.src b) add cbt=\E[Z, to it. c) recompile it with tic. Oh, and of course, you need to be using terminfo cursesand not termcap curses. -- Ronald Khoo +44 81 991 1142 (O) +44 71 229 7741 (H)