Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ll-xn!mit-eddie!husc6!uwvax!tbricker From: tbricker@rsch.WISC.EDU (Thomas J. A. Bricker) Newsgroups: comp.windows.x Subject: xterm and ioctl question Message-ID: <3318@rsch.WISC.EDU> Date: Fri, 6-Mar-87 00:45:58 EST Article-I.D.: rsch.3318 Posted: Fri Mar 6 00:45:58 1987 Date-Received: Sun, 8-Mar-87 00:42:17 EST Distribution: comp Organization: U of Wisconsin CS Dept Lines: 14 There is an ioctl call that simulates terminal input which looks like: ioctl( d, TIOCSTI, &ch ) where d is an open descriptor, and ch is the character to stuff into the terminal as if it were typed at the keyboard. The X package seems to "know" how to focus keyboard input to xterm windows based on the location of the mouse cursor. My question is: What tty name can be used to specify that the character should go the the xterm window in which the mouse cursor is located? /dev/ttyp? and /dev/ttyv0 obviously focus the input to a specific window regardless of the mouse cursor location.