CONIO2 introduction

What is the CONIO2 library good for?

The library is designed for simple output in text console. Imagine that you want to write to console window at position (10, 10) text "Hello" in a yellow color on a blue background. With CONIO2 you can do this with the C++ code:

cout << setxy(10, 10) << setclr(YELLOW) << setbk(BLUE) << "Hello";

CONIO2 Example

Conio comes bundled with MingW, but does not support C++. Quincy includes the additional "conio2" library with console I/O using streams.

The constream_test.cpp example uses conio2. Examine it and build it with Quincy.

 

Linking conio2 programs with Quincy
In order to link with the conio2 library in Quincy, you need to add the flag -l conio in the "Linker Options" field of the [Tools]->[Options]->[Build] screen.

 

conio2 Programmer's Reference:

It is available from Quincy in the [Help]->[Programmer's Help]->[ C and C++ Libraries] section.