Application
Web
Session
Var
MonkeyTerm Object Model
Object: Terminal
 Property Timer1(Index As Long) As Timer  Property Scrollbar(Index As Long) As VScrollBar Sub Redraw() Redraws the entire screen.
Property WrapWidth() As Long Reads or writes the wrapwidth. The position at witch the terminal window will wrap the text.
Property FontBold() As Boolean Reads or writes the font properties. See SetFont.
Property FontSize() As Integer Reads or writes the font properties. See SetFont.
Property FontName() As String Reads or writes the font properties. See SetFont.
Sub GotoBottom() Scrolls the terminal window to the bottom.
Sub Scroll(lngDeltaY As Long) Will scroll the terminal window up or down.
Property PageWidth() As Long Returns the visible width of the terminal window.
Property PageHeight() As Long Returns the visible height of the terminal window.
Returns the cusor object.
Sub WriteScreenBuffer(lngX As Long, lngY As Long, bCharcode As Byte, bColor As Byte) Writes a character directly onto the terminal window without setting cursors etc. (0,0) is the upper left corner.
Sub ClearScreen() Clears the visible area of the screen with the default background color.
Sub FillArea(lX1 As Long, lY1 As Long, lX2 As Long, lY2 As Long, [bChar As Byte = 32], [bColor As Byte = 0]) Fills a rectangle on the terminal window with a chosen character and a chosen background color. Default is black(color=0) spaces (will erase any section of text). (0,0) is the upper left corner.
Sub PrintString(byval str As String) Will print a string on the terminal window. No ANSI will be parsed so the text is send "as-is".
Sub PrintAChar(C As Byte) Will print a single character onto the terminal window.
Sub PrintReturn() Prints a single newline on the terminal window.
Sub Copy() Copies the text from the selection onto the clipboard.
Function Paste() As Variant Pastes the text from the clipboard onto the terminal window.
Sub ResetColors() Resets all colors to default values.
Property Color(Index As Integer) As Long Reads or writes the actual color for one of the 16 displayable colors.
Sub SetFont(FontName As String, FontSize As Integer, FontBold As Boolean) Sets the font used in the terminal window. For speed MonkeyTerm can only display monospaced fonts correctly, but this funtion does not check if the font will work or not.
|