xsh.Screen
The following functions and variables can be used when handling the Xshell terminal screen. To use these functions and variables, execute them together with the xsh.Screen function. For example, to use the 'Clear()' function, use 'xsh.Session.Clear()'.
Functions |
|
|
|
Return Value | Function | Parameter | Description |
void | Clear() |
| Clear terminal screen. |
Void | ClearBuffer() |
| Clear the invisible area(the Scroll back buffer) of the terminal |
Void | ClearScreen() |
| Clear the currently visible area of the terminal |
BSTR | Decrypt(LPCTSTR lpszString) | lpszString | Decrypt a string encrypted with Encrypt(). |
BSTR | Encrypt(LPCTSTR lpszString) | lpszString | Encrypt a string. If a Master Password is set, the Master Password is used for encryption. |
BSTR | Get(long nBegRow, long nBegCol, long nEndRow, long nEndCol) | nBegRow | Read the character string in the specified terminal section and return the value. |
BSTR | GetClipboardText() |
| Retrieve the string stored in the clipboard. |
BOOL | IsAltScreen() |
| Check if a program, for example vim, is running in the current terminal. |
void | Send(LPCTSTR lpszStrToSend) | lpszStrToSend | Send message to terminal. |
Void | SetClipboardText(LPCTSTR lpszString) | lpszString | Save a string to the clipboard. |
void | WaitForString(LPCTSTR lpszString) | lpszString | Wait for message. |
Long | WaitForStrings(VARIANT FAR* strArray, long nTimeout) | strArray | Wait for message until timeout. |
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) |
CurrentRowInScreen | long | Return the current row based on the visible area of the terminal |