[Info-vax] Getting state of Control-T from a C program.

John E. Malmberg wb8tyw at qsl.network
Sat Sep 26 17:06:59 EDT 2009


Paul Raulerson wrote:
> Do a man on "stty" - you can view and set all the terminal line control 
> information from there.  Some terminal capabilities are defined in the 
> terminfo/termcap
> database for those terminals, but the line controls are by session, and 
> controlled with stty. There is also a programatic interface to these 
> settings.

I want to know how to get that information from a VMS system so that 
stty on VMS will return a accurate report.  I have found out how to get 
most of the information but not all yet.

I am not trying to get that information on a UNIX OR Linux session.

> 
> On Sep 26, 2009, at 3:35 PM, John E. Malmberg wrote:
> 
>> In order to get a termios library implemented on VMS, I need to be 
>> able to determine a few things.
>>
>> 1. BSD Unix and apparently LINUX has an option to do what VMS does 
>> with ^T, and there is a terminal attribute that corresponds to this 
>> being active.
>>
>> I have not been able to find a SYS$GETJPI or terminal sense mode to 
>> obtain if the DCL SET CONTROL=T is active to accurately report this.
>>
>> 2. BSD Unix can return a status to tell if Control-O is actively 
>> causing  output to be discarded.  I have not found a way to find this 
>> yet.
>>
>> For at least the Control-T state, the termios library should also be 
>> able to turn it on.
>>
>> Any suggestions?
>>
-John
wb8tyw at qsl.network
Personal Opinion Only



More information about the Info-vax mailing list