![]() Chapter Contents |
![]() Previous |
![]() Next |
| TTCONTRL |
| Language element: | function |
| Category: | terminal-access |
| OpenVMS specifics: | All aspects are host-specific |
| Syntax | |
| Details | |
| Example | |
| See Also |
Syntax |
| TTCONTRL(control-specification,channel) |
| Details |
If the TTCONTRL function executes successfully, the return value is 0. Otherwise, the return value is the OpenVMS error code that indicates why it failed.
| Example |
The following example prompts the user for the password, reads the password (without echoing it to the terminal), and then writes out the password. The last step closes the channel:
length string $ 80;
input=' ';
chan=0;
rc=ttopen("device=tt echo",chan);
rc=ttwrite(chan,"0D0A"X||"Enter password: ");
rc=ttcontrl("noecho",chan);
rc=ttread(chan,input);
rc=ttcontrl("echo",chan);
rc=ttwrite(chan,"0D0A"X11"Password was: "||input);
rc=ttclose(chan);
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.