Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ preq_choice(3g) — PHIGS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

preq_choice(3g)  —  Subroutines

Name

preq_choice − Prompts for input using the choice-class logical input device specified. 

Operating States: PHOP, WSOP, ∗, ∗
PHIGS standard function

Syntax

void preq_choice (
  Pint         wsid,     /∗ (I) Workstation identifier ∗/
  Pint         dev_num,  /∗ (I) Choice device number ∗/
  Pin_status  ∗status,   /∗ (O) Choice status ∗/
  Pint        ∗choice    /∗ (O) Requested choice ∗/
)

Data Structures

typedef enum {
    PIN_STATUS_NONE,    /∗ user performed a break action ∗/
    PIN_STATUS_OK,      /∗ user made a valid choice ∗/
    PIN_STATUS_NO_IN    /∗ user did not make a valid choice ∗/
} Pin_status;

Description

preq_choice prompts you for input using the choice-class logical input device specified by the device number and the workstation identifier.  If the input status is PIN_STATUS_OK, this function returns your choice number (a positive integer). 

See Also

pget_choice
pinit_choice
psample_choice
pset_choice_mode

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026