<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://code-reference.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://code-reference.com/feed.php">
        <title>Programming | Library | Reference - Code-Reference.com c:conio.h</title>
        <description></description>
        <link>https://code-reference.com/</link>
        <image rdf:resource="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-05-18T16:11:55+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/cgets?rev=1359922865&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/clreol?rev=1708041902&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/clrscr?rev=1708041902&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/cprintf?rev=1439031039&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/cputs?rev=1359922049&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/cscanf?rev=1359922510&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/delline?rev=1708041903&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/getch?rev=1404548655&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/getche?rev=1360348080&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/getpass?rev=1360368631&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/gettext?rev=1360369313&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/gettextinfo?rev=1360428068&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/gotoxy?rev=1439192715&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/highvideo?rev=1360428653&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/insline?rev=1708041901&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/kbhit?rev=1708041900&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/lowvideo?rev=1708041901&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/movetext?rev=1708041901&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/normvideo?rev=1708041901&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/putch?rev=1359922245&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/puttext?rev=1708041901&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/textbackground?rev=1414779984&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/textcolor?rev=1360428990&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/textmode?rev=1424206921&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/ungetch?rev=1360707830&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/wherex?rev=1360707656&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/wherey?rev=1360707525&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/window?rev=1360707212&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <link>https://code-reference.com/</link>
        <url>https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://code-reference.com/c/conio.h/cgets?rev=1359922865&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-03T21:21:05+02:00</dc:date>
        <title>cgets</title>
        <link>https://code-reference.com/c/conio.h/cgets?rev=1359922865&amp;do=diff</link>
        <description>char *cgets(char *str);


description of cgets

Reads a string from the console.



cgets reads a string of characters from the console and stores the string (and the string length) in the location pointed to by str.



cgets reads as long as a sign to mark the combination carriage return / line feed (CR / LF) occurs or the maximum number of characters has been read. When reading cgets the CR / LF combination is replaced by the combination of characters \ 0 (null terminator) before the string is…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/clreol?rev=1708041902&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:02+02:00</dc:date>
        <title>clreol</title>
        <link>https://code-reference.com/c/conio.h/clreol?rev=1708041902&amp;do=diff</link>
        <description>description of clreol

clreol is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of clreol c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/clrscr?rev=1708041902&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:02+02:00</dc:date>
        <title>clrscr</title>
        <link>https://code-reference.com/c/conio.h/clrscr?rev=1708041902&amp;do=diff</link>
        <description>void clrscr (void);


description of clrscr

clears the screen and move the cursor to upper left corner of the screen.


#include&lt;stdio.h&gt;
#include&lt;conio.h&gt;

int main(void)
{
   printf(&quot;press any key to start this clrscr example\n&quot;);
   getch();
   clrscr();
   printf(&quot;Jeah i have overwritten the last content.\n&quot;);
   printf(&quot;to exit... press a key\n&quot;);
   getch();
   return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/cprintf?rev=1439031039&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-08-08T12:50:39+02:00</dc:date>
        <title>cprintf</title>
        <link>https://code-reference.com/c/conio.h/cprintf?rev=1439031039&amp;do=diff</link>
        <description>int cprintf(const char *format[, argument, ...]);


description of cprintf

prints formatted output to the screen.



cprintf takes multiple arguments, applies to each of the format specifier contained in the format string, pointed to by
format, and prints the formatted data directly to the current text window on the screen. The number of available format
must match the number of arguments.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/cputs?rev=1359922049&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-03T21:07:29+02:00</dc:date>
        <title>cputs</title>
        <link>https://code-reference.com/c/conio.h/cputs?rev=1359922049&amp;do=diff</link>
        <description>int cputs(const char *str);


description of cputs

Returns a string to the screen.



cputs is the null-terminated string from str in the current text window. The newline character is not here appended to the string.



Depending _directvideo of the global variable, the string is written either directly or through a BIOS call to screen memory.
To contrast to fprintf and printf, not translated cputs line character (\ n) in the combination of characters carriage return / line feed (\ r \ n).</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/cscanf?rev=1359922510&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-03T21:15:10+02:00</dc:date>
        <title>cscanf</title>
        <link>https://code-reference.com/c/conio.h/cscanf?rev=1359922510&amp;do=diff</link>
        <description>int cscanf(char *format[, address, ...]); 


description of cscanf

reads input from the console and reformat it.



cscanf reads directly from the console of a series of input fields one character at. 

Then each field is formatted according to the format specifier is passed cscanf in the format designated by the pointer format string.
Finally stores cscanf formatted input to the direction indicated by the argument address memory address and shows the input on the screen.
There must be as many …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/delline?rev=1708041903&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:03+02:00</dc:date>
        <title>delline</title>
        <link>https://code-reference.com/c/conio.h/delline?rev=1708041903&amp;do=diff</link>
        <description>void delline (void);


description of delline

delete the line containing the cursor and move all lines below it one line up.


#include&lt;stdio.h&gt;
#include&lt;conio.h&gt;

int main(void)
{

   printf(&quot;This line will be deleted ... press a key.&quot;);
   getch();
   delline();
   printf(&quot;Line deleted successfully.&quot;);
   getch();
   return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/getch?rev=1404548655&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-07-05T10:24:15+02:00</dc:date>
        <title>getch</title>
        <link>https://code-reference.com/c/conio.h/getch?rev=1404548655&amp;do=diff</link>
        <description>int getch();


description of getch

prompts the user to press a character and that character is not printed on screen


#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main (void) 
{

   int c;
   printf(&quot;type in a letter on your keyboard :&quot;);
   c = getch();
   putch(c);
   return 0;

}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/getche?rev=1360348080&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-08T19:28:00+02:00</dc:date>
        <title>getche</title>
        <link>https://code-reference.com/c/conio.h/getche?rev=1360348080&amp;do=diff</link>
        <description>char getche();


description of getche

Reads a character from the keyboard and display it on the screen.

reads a single character from the keyboard, and there are direct or via a BIOS call made ​​in the current text window.


#include&lt;stdio.h&gt;
#include&lt;conio.h&gt;

int main( void )
{
   printf(&quot;Enter a character : &quot;); 
 
   char ch;
   ch = getche();
   
   printf(&quot;The character was %c&quot;,ch);
   return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/getpass?rev=1360368631&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-09T01:10:31+02:00</dc:date>
        <title>getpass</title>
        <link>https://code-reference.com/c/conio.h/getpass?rev=1360368631&amp;do=diff</link>
        <description>char *getpass(const char *ptr);


description of getpass

reads a password

getpass reads a password from the system console, after the user is prompted for a password to a null-terminated string and display the password has been disabled. A pointer to a null-terminated string of up to eight characters (not counting null terminator) is returned.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/gettext?rev=1360369313&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-09T01:21:53+02:00</dc:date>
        <title>gettext</title>
        <link>https://code-reference.com/c/conio.h/gettext?rev=1360369313&amp;do=diff</link>
        <description>int gettext(int left, int top, int right, int bottom, void *dst)


description of gettext

copy text from a text mode window in memory.

stores the text content of the rectangular area of ​​the screen, which is defined by left, top, right and bottom, and also stores it in the storage area pointed to by dst.
all coordinates are absolute screen coordinates, not window-based. The top left corner has coordinates (1,1). sequentially reads the contents of the rectangle from the left to right and from …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/gettextinfo?rev=1360428068&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-09T17:41:08+02:00</dc:date>
        <title>gettextinfo</title>
        <link>https://code-reference.com/c/conio.h/gettextinfo?rev=1360428068&amp;do=diff</link>
        <description>void gettextinfo(struct text_info *r);


description of gettextinfo

Retrieves information from text-mode.

transfers the current text mode video information into the structure text_info pointed to by r.

available is
wintop, winleft, winright, winbottom, attribute, normattr, currmode, screenheight, screenwidth, curx, cury</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/gotoxy?rev=1439192715&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-08-10T09:45:15+02:00</dc:date>
        <title>gotoxy</title>
        <link>https://code-reference.com/c/conio.h/gotoxy?rev=1439192715&amp;do=diff</link>
        <description>void gotoxy( int x, int y);


description of gotoxy

 places cursor at a desired location on screen.


#include&lt;stdio.h&gt;
#include&lt;conio.h&gt;

int main( void )
{
   int x, y;
   x = 42;
   y = 42;
   clrscr();
   gotoxy(x, y);

   printf(&quot;gotoxy jumps to cursor position x42 y42.&quot;);

   getch();
   return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/highvideo?rev=1360428653&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-09T17:50:53+02:00</dc:date>
        <title>highvideo</title>
        <link>https://code-reference.com/c/conio.h/highvideo?rev=1360428653&amp;do=diff</link>
        <description>void highvideo(void);


description of highvideo

Used to select the highlighted character.

selects highlighted character by setting Intensity bits the current foreground color.
This function has no effect on the characters that are currently displayed on the screen.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/insline?rev=1708041901&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:01+02:00</dc:date>
        <title>insline</title>
        <link>https://code-reference.com/c/conio.h/insline?rev=1708041901&amp;do=diff</link>
        <description>description of insline

insline is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of insline c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/kbhit?rev=1708041900&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:00+02:00</dc:date>
        <title>kbhit</title>
        <link>https://code-reference.com/c/conio.h/kbhit?rev=1708041900&amp;do=diff</link>
        <description>int kbhit();


description of kbhit

used to find ou if a key has been pressed or not


#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main( void )
{
   while (kbhit())
      printf(&quot;you have touched key.\n&quot;);
     
   return 0;
}


output of kbhit c example
  you have touched a key</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/lowvideo?rev=1708041901&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:01+02:00</dc:date>
        <title>lowvideo</title>
        <link>https://code-reference.com/c/conio.h/lowvideo?rev=1708041901&amp;do=diff</link>
        <description>description of lowvideo

lowvideo is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of lowvideo c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/movetext?rev=1708041901&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:01+02:00</dc:date>
        <title>movetext</title>
        <link>https://code-reference.com/c/conio.h/movetext?rev=1708041901&amp;do=diff</link>
        <description>description of movetext

movetext is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of movetext c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/normvideo?rev=1708041901&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:01+02:00</dc:date>
        <title>normvideo</title>
        <link>https://code-reference.com/c/conio.h/normvideo?rev=1708041901&amp;do=diff</link>
        <description>description of normvideo

normvideo is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of normvideo c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/putch?rev=1359922245&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-03T21:10:45+02:00</dc:date>
        <title>putch</title>
        <link>https://code-reference.com/c/conio.h/putch?rev=1359922245&amp;do=diff</link>
        <description>int putch(int c);


description of putch

prints characters on the screen.



putch gives the character c to the current text window. It is a text-mode function that displays output directly to the console.
putch replaces the newline character (\ n) characters are not merchandise return / line feed.



Depending _directvideo of the global variable, the string is written either directly or through a BIOS call to screen memory.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/puttext?rev=1708041901&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:01+02:00</dc:date>
        <title>puttext</title>
        <link>https://code-reference.com/c/conio.h/puttext?rev=1708041901&amp;do=diff</link>
        <description>description of puttext

puttext is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of puttext c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/textbackground?rev=1414779984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-31T19:26:24+02:00</dc:date>
        <title>textbackground</title>
        <link>https://code-reference.com/c/conio.h/textbackground?rev=1414779984&amp;do=diff</link>
        <description>void textbackground(int color);


description of textbackground

change of current background color in text mode
 Color                 Value             BLACK       	0BLUE        	1GREEN       	2CYAN        	3RED         	4MAGENTA     	5BROWN       	6LIGHTGRAY   	7DARKGRAY    	8LIGHTBLUE   	9LIGHTGREEN  	10LIGHTCYAN   	11LIGHTRED    	12LIGHTMAGENTA 	13YELLOW      	14WHITE       	15

#include&lt;stdio.h&gt;
#include&lt;conio.h&gt;

int main( void )
{
   textbackground(RED);

   cprintf(&quot;and the answer is 42…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/textcolor?rev=1360428990&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-09T17:56:30+02:00</dc:date>
        <title>textcolor</title>
        <link>https://code-reference.com/c/conio.h/textcolor?rev=1360428990&amp;do=diff</link>
        <description>void textcolor(int color);


description of textcolor

change the color of drawing text  where color is a integer variable
 Color                 Value             BLACK       	0BLUE        	1GREEN       	2CYAN        	3RED         	4MAGENTA     	5BROWN       	6LIGHTGRAY   	7DARKGRAY    	8LIGHTBLUE   	9LIGHTGREEN  	10LIGHTCYAN   	11LIGHTRED    	12LIGHTMAGENTA 	13YELLOW      	14WHITE       	15

#include&lt;stdio.h&gt;
#include&lt;conio.h&gt;

int main( void )
{
   textcolor(BLUE+BLINK);
   cprintf(&quot;textcolor…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/textmode?rev=1424206921&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-02-17T22:02:01+02:00</dc:date>
        <title>textmode</title>
        <link>https://code-reference.com/c/conio.h/textmode?rev=1424206921&amp;do=diff</link>
        <description>Changes screen mode (in text mode)

Declaration: void textmode(int newmode);

Remarks:
textmode selects a specific text mode.

You can give the text mode (the argument
newmode) by using a symbolic constant from the
enumeration type text_modes (defined in
CONIO.H).</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/ungetch?rev=1360707830&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-12T23:23:50+02:00</dc:date>
        <title>ungetch</title>
        <link>https://code-reference.com/c/conio.h/ungetch?rev=1360707830&amp;do=diff</link>
        <description>int ungetch(int ch);


description of ungetch

Pushes a character back into the keyboard buffer.



return

Successful execution ungetch returns the character ch.

If an error occurs, the function returns EOF.



#include &lt;stdio.h&gt;
#include &lt;ctype.h&gt;
#include &lt;conio.h&gt;

int main(void)
{
   int i=0;
   char ch;
   puts(&quot;Input an integer followed by a char:&quot;);

   while((ch = getche()) != EOF &amp;&amp; isdigit(ch))
      i = 10 * i + ch - 48; 

   if (ch != EOF)
      ungetch(ch);
  printf(&quot;\n\ni = %d, n…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/wherex?rev=1360707656&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-12T23:20:56+02:00</dc:date>
        <title>wherex</title>
        <link>https://code-reference.com/c/conio.h/wherex?rev=1360707656&amp;do=diff</link>
        <description>int wherex();


description of wherex

return current horizontal cursor position


#include&lt;stdio.h&gt;
#include&lt;conio.h&gt;

int main( void )
{
   int x;
   printf(&quot;The answer is almost 42\n&quot;);
   x = wherex();
   printf(&quot;horizontal cursor position from where this text appears = %d\n&quot;,x);
   return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/wherey?rev=1360707525&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-12T23:18:45+02:00</dc:date>
        <title>wherey</title>
        <link>https://code-reference.com/c/conio.h/wherey?rev=1360707525&amp;do=diff</link>
        <description>int wherey();


description of wherey

return current vertival cursor position


#include&lt;stdio.h&gt;
#include&lt;conio.h&gt;

int main( void )
{
   int y;
   printf(&quot;The answer is almost 42\n&quot;);
   y = wherey();
   printf(&quot;vertical cursor position from where this text appears = %d\n&quot;,y);
   return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/window?rev=1360707212&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-12T23:13:32+02:00</dc:date>
        <title>window</title>
        <link>https://code-reference.com/c/conio.h/window?rev=1360707212&amp;do=diff</link>
        <description>void window(int left, int top, int right, int bottom);


description of window

Defines the active text mode window.

window defines a text window on the screen. If the coordinates are invalid, the call window is ignored.
left and top are the screen coordinates of the upper left corner of the window.
right, and bottom are the screen coordinates of the lower right corner of the window.</description>
    </item>
</rdf:RDF>
