CONIO introduction

What is CONIO 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 CONIO you can do this with the C code:

gotoxy(10, 10);
textcolor(YELLOW);
textbackground(BLUE);
cputs("Hello");

getch() is a handy function that allows input without having the user hit [Enter]:

#include <stdio.h>
#include <conio.h>

int main()
{
   int ch;
   puts ("Press any key, q to quit");

   while ((ch = getch()) != EOF && ch != 'q')
      printf ("%c\n", ch);

   return 0;
}

CONIO2 Example

Conio comes bundled with MingW. Quincy also includes the additional "conio2" library with a few more facilities.

The more complete conio_test.c 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.