Entire Class Index | Main Class Index | Cross Index | Global Index

# Class CL_ConsoleWindow

Text console window.
Contained in: global
Derived from: none
Derived by: none
Group: Core (System)

#include <ClanLib/core.h>

### public function member index:

### Construction:

`` | `CL_ConsoleWindow` | `(`const` `std::string`& `title`, `int` `width` = 80, `int` `height` = 25)`;
`` | `~CL_ConsoleWindow` | `()`;

### Operations:

``void`` | `redirect_stdio` | `()`;
``void`` | `redirect_stdio` | `(`const` `std::string`& `filename`)`;
``void`` | `wait_for_key` | `()`;
``void`` | `display_close_message` | `()`;

## Description:

Note: This class has no effect under Linux.

## Function Member Descriptions:

CL_ConsoleWindow::CL_ConsoleWindow - Console Window Constructor
`` `CL_ConsoleWindow` `(`const` `std::string`& `title`, `int` `width` = 80, `int` `height` = 25)`;

CL_ConsoleWindow::display_close_message - Displays 'press any key to close this console window',
and waits until user hits a key.
``void`` `display_close_message` `()`;

CL_ConsoleWindow::redirect_stdio - Redirects stdout, stdin and stderr to the console window.
``void`` `redirect_stdio` `()`;

CL_ConsoleWindow::redirect_stdio - Redirects stdout and stderr to filename.
``void`` `redirect_stdio` `(`const` `std::string`& `filename`)`;

CL_ConsoleWindow::wait_for_key - Waits until user hits a key.
``void`` `wait_for_key` `()`;

CL_ConsoleWindow::~CL_ConsoleWindow - Console Window Destructor
`` `~CL_ConsoleWindow` `()`;

## Variable Member Descriptions: