conio.h is a C header file used mostly by MS-DOS compilers to provide console input/output.[1] It is not part of the C standard library or ISO C, nor it is defined by POSIX.
This header declares several useful library functions for performing 'console input and output' from a program. Most C compilers that target DOS, Windows 3.x, Phar Lap, DOSX, OS/2, or Win32[2] have this header and supply the associated library functions in the default C library. Most C compilers that target UNIX and Linux do not have this header and do not supply the library functions. Some embedded systems or cc65 use a conio-compatible library.[3]
The library functions declared by conio.h vary somewhat from compiler to compiler. As originally implemented in Lattice C, the various functions mapped directly to the first few DOSINT 21H functions. The library supplied with Borland's Turbo C did not use the DOS API but instead accessed video RAM directly for output and used BIOS interrupt calls. This library also has additional functions inspired from the successful Turbo Pascal one.
Compilers that target non-DOS operating systems, such as Linux or OS/2, provide similar solutions; the unix-related curses library is very common here. Another example is SyncTERM's ciolib. The version of conio.h done by DJ Delorie for the GO32 extender is particularly extensive.[4]
Member functions[edit]
kbhit | Determines if a keyboard key was pressed |
cgets | Reads a string directly from the console |
cscanf | Reads formatted values directly from the console |
putch | Writes a character directly to the console |
cputs | Writes a string directly to the console |
cprintf | Formats values and writes them directly to the console |
clrscr | Clears the screen |
getch | Get char entry from the console |
Include/conio.h Go to the documentation of this file. 6 /. 00027. The contents of this file are subject to the Mozilla Public License 00028. Version 1.0 (the 'License'); you may not use this file except in 00029. compliance with the License. The conio.h header file used in C programming language contains functions for console input/output. Some of its most commonly used functions are clrscr, getch, getche, kbhit etc. They can be used to clear screen, change color of text and background, move text, check whether a key is pressed or not and to perform other tasks. Apr 30, 2011 General C Programming; How to use conio.h? How to use conio.h? Blueeyedlion I'm interested in using conio.h, but I have no idea how to use it, and google has not been helpful. The whole reason that I am looking into conio.h is that I tried to get pdcurses working for about a week with no success. Do you know an easy way to get pdcurses.
Jul 18, 2017 ‘conio.h' is included in MSDOS compilers but not in gcc/g. Hence, you cannot include conio.h in DevC. But still there are certain substitute which may be considered in place of conio.h. For further information you may refer the following post: CONIO.H alternative for Dev-C IDE Users. But in my opinion you should not use conio.h or it's alternatives. It may create portability problems.
Cassper nyovest twitter. Commercial performance The album was first released on 31 October 2015 at Nyovest's show at the in Johannesburg, whereby the purchase of each ticket by each concert goer, resulted in each one of them receiving an accompanying copy of his second studio album. Track listing From Connect.All lyrics were written and composed by Refiloe Maele Phoolo;co-writers are listedNo.TitleWriter(s)ProducerLength1.' This resulted in sales of over 20,000 copies of the album in a few hours of its first day.Refiloe debuted a few days later on 6 November 2015 on iTunes. Within 30 minutes of being made available for download, the album peaked at top of the South African iTunes chart across all genres.As of 13 January 2016, Refiloe was certified Platinum for shipments in excess of 40,000 copies domestically.
Jan 18, 2003 Dev-C uses GCC, the GNU Compiler Collection, as it's compiler. GCC is originally a UNIX compiler, and aims for portability and standards-compliance. If really can't live without them, you can use Borland functions this way. Dec 07, 2013 Borland-style CONIO (COnsole Input Output) implementation for Win32 MinGW/Dev-C.
Include Conio.h Definition
References[edit]
- ^Schildt, Herbert (1995). C: The Complete Reference (3rd ed.). Berkeley, Calif.: Osborne McGraw-Hill. p. 288. ISBN0-07-882101-0.
For DOS-compatible compilers, the direct console I/O functions generally use the CONIO.H header file.
- ^'Console and Port I/O in MSDN'.
- ^'MicroVGA conio Text User Interface Library'.
- ^'DJGPP C Library Reference – conio'.
External links[edit]
- IO FAQ - explanation and suggestions for non-standard console IO
Retrieved from 'https://en.wikipedia.org/w/index.php?title=Conio.h&oldid=948634838'