Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!sri-spam!ames!ucbcad!ucbvax!YALE.ARPA!LEICHTER-JERRY From: LEICHTER-JERRY@YALE.ARPA.UUCP Newsgroups: mod.computers.vax Subject: Re: terminal baud rate Message-ID: <8704110338.AA01687@ucbvax.Berkeley.EDU> Date: Fri, 10-Apr-87 22:39:07 EST Article-I.D.: ucbvax.8704110338.AA01687 Posted: Fri Apr 10 22:39:07 1987 Date-Received: Sat, 11-Apr-87 21:36:17 EST Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Distribution: world Organization: The ARPA Internet Lines: 23 Approved: info-vax@sri-kl.arpa [To determine the baud rate of a terminal...] 1. Assign a channel to the terminal. 2. Issue a QIO to the terminal using IO$_SENSECHAR or IO$_SENSEMODE. 3. Baud rate is in the second word of the IOSB. Reference VAX/VMS I/O User's Reference Manual: Part I, AA-Z600C-TE, April 1986, page 8-49. 4. If TT2$M_AUTOBAUD is set then the baud rate in 3 is the default baud rate unless a user is logged in. The above only works if you can assign a channel to the terminal. If you want something that works all the time then you will have to write some kernel mode code to access the UCB of the terminal.... A program with SHARE privilege can assign a channel to the terminal even if someone else is using it. That's how SHOW TERM is able to get information about terminals that are in use. It's interesting that SHOW TERM does NOT display to baud rate for other ter- minals, although it displays everything else. As far as I know - I've never tried this - the speed information is returned, it's just that SHOW TERM chooses not to display it. -- Jerry -------