HPGCC3 Documentation 3.0 R003

conio.h File Reference

Header file for HP49 console I/O. More...

#include <stdlib.h>

Go to the source code of this file.

Data Structures

struct  _CONSOLE
struct  _CONSOLE_GLOBALS

Functions

int putchar (int)
 Writes a single character c to the screen and returns it's argument.
int puts (const char *)
 Writes a string pointed to by buf to the screen and returns the number of characters written.
int puts_nonl (const char *)
int getchar ()
 Reads a character from keyboard.
char * gets (char *buf)
 Reads a string from the keyboard.
void clreol ()
 Clear to End-Of-Line from current write mark position.
void clear_screen ()
 Clears the entire screen.
void gotoxy (int, int)
 Position write mark.
void wherexy (int *x, int *y)
int dummy_putchar (int)
int dummy_puts (const char *)
int dummy_puts_nonl (const char *)
int dummy_getchar ()
char * dummy_gets (char *buf)
void dummy_clreol ()
void dummy_clear_screen ()
void dummy_gotoxy (int, int)
void dummy_wherexy (int *x, int *y)
int putchar_orig (int)
int puts_orig (const char *)
int puts_nonl_orig (const char *)
int getchar_orig ()
char * gets_orig (char *buf)
void clreol_orig ()
void clear_screen_orig ()
void gotoxy_orig (int, int)
void wherexy_orig (int *x, int *y)
void home ()
 Positions the virtual write mark at screen position (0,0), i.e. 'home'.
int getx ()
 Returns the current write mark's x-component.
int gety ()
 Returns the current write mark's y-component.
int screen_width ()
int screen_height ()
int get_tabsize ()
 Returns current tab width in character units.
void set_tabsize (int)
 Sets current tab width in character units.
int get_decimal_digits ()
void set_decimal_digits (int v)
char * get_decimal_separator ()
void set_decimal_separator (char a)
void ShutDownConsole ()
void InitConsole ()
char * getsConsole (char *str)
int getcharConsole ()
int putsConsole (const char *text)
int puts_nonlConsole (const char *text)
int putcharConsole (char c)
void clearConsole ()
void clreolConsole ()
void gotoxyConsole (int x, int y)
void wherexyConsole (int *x, int *y)

Variables

const _CONSOLE __console [3]

Detailed Description

Header file for HP49 console I/O.

Definition in file conio.h.


Function Documentation

void clear_screen ( )

Clears the entire screen.

void clear_screen_orig ( )
void clearConsole ( )
void clreol ( )

Clear to End-Of-Line from current write mark position.

void clreol_orig ( )
void clreolConsole ( )
void dummy_clear_screen ( )
void dummy_clreol ( )
int dummy_getchar ( )
char* dummy_gets ( char *  buf)
void dummy_gotoxy ( int  ,
int   
)
int dummy_putchar ( int  )
int dummy_puts ( const char *  )
int dummy_puts_nonl ( const char *  )
void dummy_wherexy ( int *  x,
int *  y 
)
int get_decimal_digits ( )
char* get_decimal_separator ( )
int get_tabsize ( )

Returns current tab width in character units.

Return values:
Tabwidth
int getchar ( )

Reads a character from keyboard.

Return values:
ASCIIcode of entered character
int getchar_orig ( )
int getcharConsole ( )
char * gets ( char *  buf)

Reads a string from the keyboard.

Parameters:
bufPointer to buffer, large enough to hold the string.
Return values:
Theargument pointer
char* gets_orig ( char *  buf)
char* getsConsole ( char *  str)
int getx ( )

Returns the current write mark's x-component.

Return values:
Currentscreen position x
int gety ( )

Returns the current write mark's y-component.

Return values:
Currentscreen position y
void gotoxy ( int  x,
int  y 
)

Position write mark.

Parameters:
xx-position to go to
yy-position to go to
void gotoxy_orig ( int  ,
int   
)
void gotoxyConsole ( int  x,
int  y 
)
void home ( )

Positions the virtual write mark at screen position (0,0), i.e. 'home'.

void InitConsole ( )
int putchar ( int  c)

Writes a single character c to the screen and returns it's argument.

Parameters:
cCharacter to be written
Return values:
Unchangedargument or -1 if error
int putchar_orig ( int  )
int putcharConsole ( char  c)
int puts ( const char *  buf)

Writes a string pointed to by buf to the screen and returns the number of characters written.

Parameters:
bufPointer to zero delimited string
Return values:
Numberof characters written
int puts_nonl ( const char *  )
int puts_nonl_orig ( const char *  )
int puts_nonlConsole ( const char *  text)
int puts_orig ( const char *  )
int putsConsole ( const char *  text)
int screen_height ( )
int screen_width ( )
void set_decimal_digits ( int  v)
void set_decimal_separator ( char  a)
void set_tabsize ( int  width)

Sets current tab width in character units.

Parameters:
widthNew tab width
void ShutDownConsole ( )
void wherexy ( int *  x,
int *  y 
)
void wherexy_orig ( int *  x,
int *  y 
)
void wherexyConsole ( int *  x,
int *  y 
)

Variable Documentation

const _CONSOLE __console[3]