Seed7 - The extensible programming language
Seed7 FAQ Manual Screenshots Examples Libraries Algorithms Download Links
Libraries AES ARC4 Array ASN.1 Bigfile Bigint Bigrat Bin32 Bin64 Bitdata Bitmapfont Bitset Bitsetof Boolean Browser Bstring Bytedata Cards Category CC config Cgi Cgi dialog Char Charsets Cipher Clib_file Color CLI Commands Complex Console Crc32 Deflate DES Dialog Dir Draw Duration Echo Editline Enable_input Enable_io Enable_output Encoding Environment External_file File File system Float Font Forloop Ftp Getf Gethttp Gethttps Graph Graph_file Gzip Hash Hashsetof Hmac Html_ent Httpserv Idxarray Image Inflate Inflate file Inifile Integer Keybd Line Listener LZW Make Math Msgdigest Null_file Osfiles Picture utility Pixmap_file Pixmapfont PKCS #1 Poll Process Progs Propertyfile Rational Reference Ref_list Scanfile Scanstri Set Shell Smtp Sockbase Socket SQL base Stdio Strifile String Stritext Subrange Tar Text Time TLS/SSL Triple DES Unicode Utf16 Utf8 Vectorfont 3D Vector Wildcard Window Wrinum X.509 Xmldom Xml_ent Zip
Libraries
Console Source Code
 previous   up   next 

Types
console_file
Text implementation type for text console/window.

console_file

const type: console_file

Text implementation type for text console/window. This type allows writing to text terminals, terminal emulations and console windows.


Variable Summary
console_file
STD_CONSOLE
Standard console file of the current process.

Function Summary
console_file
open (CONSOLE)
Creates a console_file at the upper left corner of the console/window.
void
flush (in console_file: aFile)
Forces that all buffered data of aFile is sent to its destination.
integer
height (in console_file: aConsoleFile)
Get the height of 'aConsoleFile'.
integer
width (in console_file: aConsoleFile)
Get the width of 'aConsoleFile'.
void
setPos (in console_file: aConsoleFile, in integer: line, in integer: column)
Set the current position of 'aConsoleFile' to 'line' and 'column'.
void
clear (in console_file: aConsoleFile, in integer: upper, in integer: left, in integer: lower, in integer: right)
Clear an area of aConsoleFile with space characters.
void
clear (in console_file: aConsoleFile)
Clear 'aConsoleFile' with space characters.
void
write (in console_file: aConsoleFile, in string: stri)
Write a string to the current position of 'aConsoleFile'.

Variable Detail

STD_CONSOLE

var console_file: STD_CONSOLE

Standard console file of the current process. When characters are written to STD_CONSOLE they are displayed on the console/terminal (when it exists and is able to display them). Unlike the byte file STD_OUT STD_CONSOLE accepts also Unicode characters. Unicode characters are written with the encoding of the operating system. When the standard output file of the operating system has been redirected UTF-8 encoded characters are written to the redirected file.


Function Detail

open

const func console_file: open (CONSOLE)

Creates a console_file at the upper left corner of the console/window. The console_file extends over the whole text console/window.

Returns:
the file opened.

flush

const proc: flush (in console_file: aFile)

Forces that all buffered data of aFile is sent to its destination. This causes data to be sent to the text console/window of the OS.


height

const func integer: height (in console_file: aConsoleFile)

Get the height of 'aConsoleFile'.

Returns:
the height of 'aConsoleFile'.

width

const func integer: width (in console_file: aConsoleFile)

Get the width of 'aConsoleFile'.

Returns:
the width of 'aConsoleFile'.

setPos

const proc: setPos (in console_file: aConsoleFile, in integer: line, in integer: column)

Set the current position of 'aConsoleFile' to 'line' and 'column'.


clear

const proc: clear (in console_file: aConsoleFile, in integer: upper, in integer: left, in integer: lower, in integer: right)

Clear an area of aConsoleFile with space characters. The area is specified in (line, column) coordinates and is between the (upper, left) and (lower, right).


clear

const proc: clear (in console_file: aConsoleFile)

Clear 'aConsoleFile' with space characters.


write

const proc: write (in console_file: aConsoleFile, in string: stri)

Write a string to the current position of 'aConsoleFile'. Unicode characters are written with the encoding of the operating system. When the standard output file of the operating system has been redirected UTF-8 encoded characters are written to the redirected file.



 previous   up   next