hpconio.h File Reference

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

#include <hpstdlib.h>

Go to the source code of this file.

Defines

#define clear_screen   _clear_screen

Functions

EXTERN int puts (const char *)
 Writes a string pointed to by buf to the screen and returns the number of characters written.
EXTERN char * ints (int, int)
 Returns a pointer to a base base string representation of num.
EXTERN char * uints (unsigned, int)
 Returns a pointer to a base base string representation of num.
EXTERN int putchar (int)
 Writes a single character c to the screen and returns it's argument.
EXTERN void putint (int)
 Writes an integer num to the screen.
EXTERN void putintb (int, int)
 Writes a base base representation of num to the screen.
EXTERN unsigned randx ()
EXTERN int delta_seconds (int, int)
EXTERN void beep ()
 Beeps the speaker.
EXTERN void home ()
 Positions the virtual write mark at screen position (0,0), i.e. 'home'.
EXTERN int getx ()
 Returns the current write mark's x-component.
EXTERN int gety ()
 Returns the current write mark's y-component.
EXTERN void clreol ()
 Clear to End-Of-Line from current write mark position.
EXTERN void _clear_screen ()
 Clears the entire screen.
EXTERN void gotoxy (int, int)
 Position write mark.
EXTERN int screen_width ()
 Returns screen width in character units.
EXTERN int screen_height ()
 Returns screen height in character units.
EXTERN int get_tabsize ()
 Returns current tab width in character units.
EXTERN void set_tabsize (int)
 Sets current tab width in character units.
EXTERN int getchar ()
 Reads a character from keyboard.
EXTERN char * gets (char *buf)
 Reads a string from the keyboard.
int get_decimal_digits ()
void set_decimal_digits (int v)
char * get_decimal_separator ()
void set_decimal_separator (char a)


Detailed Description

Header file for HP49 console I/O.

Definition in file hpconio.h.


Define Documentation

#define clear_screen   _clear_screen

Definition at line 192 of file hpconio.h.


Function Documentation

void _clear_screen (  ) 

Clears the entire screen.

void beep (  ) 

Beeps the speaker.

void clreol (  ) 

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

EXTERN int delta_seconds ( int  ,
int   
)

int get_decimal_digits (  ) 

char* get_decimal_separator (  ) 

int get_tabsize (  ) 

Returns current tab width in character units.

Return values:
Tab width

int getchar (  ) 

Reads a character from keyboard.

Return values:
ASCII code of entered character

char * gets ( char *  buf  ) 

Reads a string from the keyboard.

Parameters:
buf Pointer to buffer, large enough to hold the string.
Return values:
The argument pointer

int getx (  ) 

Returns the current write mark's x-component.

Return values:
Current screen position x

int gety (  ) 

Returns the current write mark's y-component.

Return values:
Current screen position y

void gotoxy ( int  x,
int  y 
)

Position write mark.

Parameters:
x x-position to go to
y y-position to go to

void home (  ) 

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

char * ints ( int  num,
int  base 
)

Returns a pointer to a base base string representation of num.

Parameters:
num Number to be written
base The base, where 2 <= base <= 36
Return values:
Pointer to a zero delimited string
Warning:
The string pointed to is static and must therefore instantly be copied, if intended for later usage.

int putchar ( int  c  ) 

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

Parameters:
c Character to be written
Return values:
Unchanged argument or -1 if error

void putint ( int  num  ) 

Writes an integer num to the screen.

Parameters:
num Number to be written

void putintb ( int  num,
int  base 
)

Writes a base base representation of num to the screen.

Parameters:
num Number to be written
base The base, where 2 <= base <= 36

int puts ( const char *  buf  ) 

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

Parameters:
buf Pointer to zero delimited string
Return values:
Number of characters written

EXTERN unsigned randx (  ) 

int screen_height (  ) 

Returns screen height in character units.

Return values:
Screen height

int screen_width (  ) 

Returns screen width in character units.

Return values:
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:
width New tab width

char * uints ( unsigned  num,
int  base 
)

Returns a pointer to a base base string representation of num.

Parameters:
num Number to be written
base The base, where 2 <= base <= 36
Return values:
Pointer to a zero delimited string
Warning:
The string pointed to is static and must therefore instantly be copied, if intended for later usage.


Generated on Fri Feb 16 16:43:16 2007 for HP-GCCLibrary by  doxygen 1.5.0