Term
 
 
 Bean Term
 
ANSI Terminal

Methods are user callable functions/subroutines that are means of controlling the bean functions.

Methods:

  • CRLF - Send CRLF to terminal.

      ANSIC prototype: void CRLF(void)

  • SendStr - Send string to terminal.

      ANSIC prototype: void SendStr(char *str)
    • str: Pointer to char - Pointer to a string variable

  • SendNum - Send number to terminal.

      ANSIC prototype: void SendNum(long number)
    • number:long - Long number

  • SendFloatNum - Send a float number to the terminal.

      ANSIC prototype: void SendFloatNum(float number)
    • number:float - Float variable

  • SendChar - Send char to terminal.

      ANSIC prototype: void SendChar(byte Val)
    • Val:byte - Char to send

  • Cls - Clear the terminal window.

      ANSIC prototype: void Cls(void)

  • CursorUp - Move cursor up.

      ANSIC prototype: void CursorUp(byte lines)
    • lines:byte - Number of rows for shift cursor up.

  • CursorDown - Move cursor down.

      ANSIC prototype: void CursorDown(byte lines)
    • lines:byte - Number of rows for shift cursor down..

  • CursorLeft - Move cursor left.

      ANSIC prototype: void CursorLeft(byte columns)
    • columns:byte - Number of columns for shift cursor left

  • CursorRight - Move cursor right.

      ANSIC prototype: void CursorRight(byte columns)
    • columns:byte - Number of columns for shift cursor right

  • MoveTo - Move cursor to position x,y.

      ANSIC prototype: void MoveTo(byte x,byte y)
    • x:byte - Column number
    • y:byte - Row number

  • SetColor - Set foreground and background color.

      ANSIC prototype: void SetColor(byte foreground,byte background)
    • foreground:byte - Foreground color.
    • background:byte - Background color.

  • EraseLine - Erase a line at cursor position.

      ANSIC prototype: void EraseLine(void)

  • ReadChar - Read char from terminal.

      ANSIC prototype: void ReadChar(byte *c)
    • c: Pointer to byte - Pointer to a char variable

  • KeyPressed - Test if char was received from the terminal.

      ANSIC prototype: bool KeyPressed(void)
    • Return value:bool - Return TRUE if user pressed some key

  • ReadLine - Read string from the terminal. Waits until whole string is read.

      ANSIC prototype: void ReadLine(char *str)
    • str: Pointer to char - Pointer to an user string buffer.


Note: Some methods can be implemented as macros.



Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.