G:/ScriptBasic/source/extensions/cio/interface.c File Reference

#include "../../basext.h"

Go to the source code of this file.

Defines

#define GET_CONSOLE_HANDLE
#define GET_CSBI(PAR)
#define PERR(X, Y)   if( !X )return 0

Functions

static besEND HANDLE GetConsoleHandle ()
 besFUNCTION (gotoxy)
 besFUNCTION (sbsizx)
 besFUNCTION (sbcls)

Variables

besSUB_SHUTDOWN return
besEND besSUB_START return COMMAND_ERROR_SUCCESS


Define Documentation

#define GET_CONSOLE_HANDLE
 

Value:

hConsole = GetConsoleHandle();\
  if( hConsole == NULL )return 0;

Definition at line 65 of file interface.c.

#define GET_CSBI PAR   ) 
 

Value:

CONSOLE_SCREEN_BUFFER_INFO ConsoleScreenBufferInfo;\
  GetCSBI(&ConsoleScreenBufferInfo);\
  besALLOC_RETURN_LONG;\
  LONGVALUE(besRETURNVALUE) = ConsoleScreenBufferInfo.PAR;

Definition at line 265 of file interface.c.

#define PERR X,
 )     if( !X )return 0
 


Function Documentation

besFUNCTION sbcls   ) 
 

=section cls =H cio::Cls

Clear the console screen and set all character cells to the last color settings. See also R<color>.

Definition at line 592 of file interface.c.

besFUNCTION sbsizx   ) 
 

=section BufferSizeX =H cio::BufferSizeX

This function returns the console buffer horizontal size.

The console buffer is the character buffer that holds all characters that are visible on the console or that can be scrolled to the console using the scroll bar.

Definition at line 281 of file interface.c.

besFUNCTION gotoxy   ) 
 

=section gotoxy =H cio::GotoXY(x,y)

Position the console cursor at the coordinate (X,Y). The next PRINT statement sending characters to the screen will print to this position.

Definition at line 76 of file interface.c.

static besEND HANDLE GetConsoleHandle  )  [static]
 

Definition at line 54 of file interface.c.

References NULL.

Referenced by comm_Init(), comm_List(), and comm_WeAreAt().


Variable Documentation

besEND besSUB_START return COMMAND_ERROR_SUCCESS
 

Definition at line 51 of file interface.c.

besSUB_SHUTDOWN return
 

Console handling low level routines for Win32 environment.

This module implements routines that can handle the Windows character console on low level. This is like getting a character without echo, or checking that a key was pressed without stopping the program, disabling control-c and so on.

Definition at line 47 of file interface.c.


Generated on Sun Mar 12 23:56:35 2006 for ScriptBasic by  doxygen 1.4.6-NO