/
xsh.Screen

xsh.Screen

The following functions and variables can be used when handling of the Xshell terminal screen. To use these functions and variables, execute them together with the xsh.Screen. For example, to use 'Clear()' function, use 'xsh.Session.Clear()'.

Functions




Return Value

Function

Parameter

Description

void

Clear()


Clear terminal screen.

void

Send(LPCTSTR lpszStrToSend)

lpszStrToSend
Character string to send

Send message to terminal.

BSTR

Get(long nBegRow, long nBegCol, long nEndRow, long nEndCol)

nBegRow
Terminal row starting position
nBegCol
Terminal column starting position
nEndRow
Terminal row ending position
nEndCol
Terminal column ending position

Read the character string in the specified terminal section and return the value.

void

WaitForString(LPCTSTR lpszString)

lpszString
Character string to be displayed on the terminal.

Wait for message.

Long

WaitForStrings(VARIANT FAR* strArray, long nTimeout)

strArray
Character string to be displayed on the terminal
nTimeout
Wait time millisecond value
Return Value
The number of found strings.

Wait for message until timeout.

Void

ClearScreen()


Clear the currently visible area of ​​the terminal

Void

ClearBuffer()


Clear the invisible area(the Scroll back buffer) of ​​the terminal

BOOL

IsAltScreen()


Check if a program, for example vim, is running in the current terminal.

BSTR

GetClipboardText()


Retrieve the string stored in the clipboard.

Void

SetClipboardText(LPCTSTR lpszString)

lpszString

String to put in clipboard

Save a string to the clipboard.


Variable



Name

Type

Description

CurrentColumn

long

Return the current column.

CurrentRow

long

Return the current row.

Columns

long

Retrieve the total columns same as terminal width.

Rows

long

Retrieves the total row same as terminal lines

Synchronous

BOOL

Set screen synchronization (True means synchronize and false means do not ​ ​synchronize)​

What does xsh.Screen.Synchronous do?

CurrentRowInScreen

long

Return the current row based on the visible area of the terminal

Related content

xsh.Screen
xsh.Screen
More like this
xsh.Screen
More like this
xsh.Screen
xsh.Screen
More like this
xsh.Session
xsh.Session
More like this
Terminal
More like this
Terminal
More like this