[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Understanding the Diagnostic Subsystem for AIX

diag_read

Purpose

Reads user input.

Syntax

#include <diag/diag_screen.h>

#include <diag/diag.h>

long  diag_read ( screen_info, wait, buffer )

screen_info_t *screen_info;
int  wait;
char * buffer;

Description

The diag_read subroutine reads the keyboard buffer.

Parameters

Parameter Description
screen_info Screen Information. This structure defines the screen type and screen ID. Only the screen_type is used.
short screen_type Screen Type.
  • INFORMATIVE
  • TRANSITIONAL
  • DIALOG
  • SINGLE_SELECTION
  • MULTIPLE_SELECTION
wait If TRUE, causes this subroutine to wait until the user presses one of the keys allowed by the screen_type. If this parameter is FALSE, then this subroutine does not wait for the user input but processes anything typed ahead just as it would if the parameter were TRUE.
buffer Allocated by the application. It is used to return the values entered by the user. The buffer size must not be greater than 100 bytes. (Currently not implemented).

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]