HP3000-L Archives

June 1995, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
James Bennett <[log in to unmask]>
Reply To:
Date:
Wed, 7 Jun 1995 16:26:00 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
>  I am writing a C program that uses gets to read a password.
>
> The intrinsic FCONTROL with an item number of 13 should work,
> but I don't know where to find the file number of the keyboard.
>
> Help
 
> Marilyn
 
This is from some old C code that I haven't tried in a while, but
it _should_ work..
 
#pragma intrinsic FCONTROL hp_fcontrol
#define HP_FILENO(x)   _mpe_fileno(fileno(x))
 
 void TermEchoOff()
 {
 
 /*  Local Variables */
 
    short old_echo;
 
 /*  Code */
 
    hp_fcontrol(HP_FILENO(stdin),13,&old_echo);
 
 }
 
**-------------------------+---------------------------**
|James Bennett             | Phone: 916.891.5281        |
|Bi-Tech Software, Inc     | Fax  : 916.891.5011        |
|1072 Marauder, Suite A    | EMail: [log in to unmask]   |
|Chico, CA 95926           | "If it was easy, anyone    |
|                          |  could do it."             |
**-------------------------+---------------------------**

ATOM RSS1 RSS2