Thread View: mod.computers.vax
1 messages
1 total messages
Started by LEICHTER-JERRY
Sat, 11 Apr 1987 03:39
Re: terminal baud rate
Author: LEICHTER-JERRY
Date: Sat, 11 Apr 1987 03:39
Date: Sat, 11 Apr 1987 03:39
23 lines
1771 bytes
1771 bytes
[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
-------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads