home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!uniol!majestix.informatik.uni-kiel.dbp.de!news
- From: ca@informatik.uni-kiel.dbp.de (Claus Assmann)
- Newsgroups: comp.sys.hp
- Subject: HP700/92 terminal: how to get 'real' raw mode ?
- Date: 3 Jan 1993 14:49:20 +0100
- Organization: Dept. of Computer Science, University of Kiel, Germany
- Lines: 31
- Message-ID: <1i6qt0INNq4q@mine.informatik.uni-kiel.dbp.de>
- NNTP-Posting-Host: mine.informatik.uni-kiel.dbp.de
- Keywords: 700/92,terminal,raw,input
-
- I have a problem with HP700/92 terminals connected to an HP817
- (PA-RISC) running HP-UX 8.0.1 (?). I have a little program which
- switches the terminal to 'raw' mode to get directly every key (as vi(1)
- does). However, it doesn't work ! I get all keys except those for
- cursor control (up,down,left,right,home,clear,insert,delete etc).
- Instead the terminal performs the action directly without informing my
- program, so my program doesn't work (it has it's own input routine to
- control user input according to a specification, eg. field width, input
- type etc). I have tried system("stty raw -echo") and
-
- #include <sgtty.h>
- void switchterm(mode)
- int mode;
- {
- struct sgttyb tty;
-
- ioctl(0,TIOCGETP,&tty);
- if (mode) tty.sg_flags = (tty.sg_flags | RAW) & ~ECHO;
- else tty.sg_flags = old_flags;
- ioctl(0,TIOCSETP,&tty);
- }
-
- Does anybody know how to get full control over the terminal like
- vi(1) does ?
-
- Thanks for any help,
-
- Claus
- --
- ObX.400Joke: How do two X.400 users communicate? (answer: by telephone)
- --- Tom Limoncelli
-