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

Technical Reference: Base Operating System and Extensions, Volume 2

raw or noraw Subroutine

Purpose

Places the terminal into or out of raw mode.

Library

Curses Library (libcurses.a)

Syntax

#include <curses.h>
raw( )
noraw( )

Description

The raw or noraw subroutine places the terminal into or out of raw mode, respectively. RAW mode is similar to CBREAK mode (cbreak or nocbreak (cbreak, nocbreak, noraw, or raw Subroutine) subroutine). In RAW mode, the system immediately passes typed characters to the user program. The interrupt, quit, and suspend characters are passed uninterrupted, instead of generating a signal. RAW mode also causes 8-bit input and output.

To get character-at-a-time input without echoing, call the cbreak and noecho subroutines. Most interactive screen-oriented programs require this sort of input.

Return Values

OK Indicates the subroutine completed. The raw and noraw routines always return this value.

Examples

  1. To place the terminal into raw mode, use:

    raw();
  2. To place the terminal out of raw mode, use:

    noraw();

Related Information

The getch (getch, mvgetch, mvwgetch, or wgetch Subroutine) subroutine, cbreak or nocbreak (cbreak, nocbreak, noraw, or raw Subroutine) subroutine

Curses Overview for Programming, List of Curses Subroutines, Understanding Terminals with Curses in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.

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