Simple Operating System
conio.h File Reference

Console input output control. More...

#include "types.h"
Include dependency graph for conio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Cursor
 Position of cursor. More...
 
union  Attributes
 Attributes of character on screen. More...
 

Typedefs

typedef struct Cursor Cursor
 Position of cursor.
 
typedef union Attributes Attributes
 Attributes of character on screen.
 

Enumerations

enum  Mode { TextMode = 2 , TextColorMode = 16 , ColorMode = 19 }
 Video modes, can be changed with void setVideoMode(Mode mode);.
 

Functions

void setVideoMode (Mode mode)
 Set the video mode of screen. More...
 
void setColorPalette (Byte color)
 
Cursor getCursorPosition (void)
 Get position of Cursor. More...
 
void setCursorPosition (Cursor cursor)
 Set position of cursor. More...
 
void cls (void)
 Clear screen.
 
void cputc (char c, Color color, Byte times)
 Color put character. More...
 
void cputs (int str, Color color)
 Color put string. More...
 

Detailed Description

Console input output control.

Something like https://www.programmingsimplified.com/c/conio.h

Definition in file conio.h.

Function Documentation

◆ cputc()

void cputc ( char  c,
Color  color,
Byte  times 
)

Color put character.

Parameters
ccharacter
color
timeshow many times put c

Definition at line 102 of file conio.h.

◆ cputs()

void cputs ( int  str,
Color  color 
)

Color put string.

Parameters
str
color

Definition at line 118 of file conio.h.

◆ getCursorPosition()

Cursor getCursorPosition ( void  )

Get position of Cursor.

DH = row DL = column

Returns
Cursor

Definition at line 58 of file conio.h.

◆ setCursorPosition()

void setCursorPosition ( Cursor  cursor)

Set position of cursor.

Parameters
cursor

Definition at line 71 of file conio.h.

◆ setVideoMode()

void setVideoMode ( Mode  mode)

Set the video mode of screen.

Parameters
mode

Definition at line 41 of file conio.h.