diff --git a/src/tn3270-sharp/tn3270-sharp.cs b/src/tn3270-sharp/tn3270-sharp.cs
index a5c3101..9370980 100644
--- a/src/tn3270-sharp/tn3270-sharp.cs
+++ b/src/tn3270-sharp/tn3270-sharp.cs
@@ -177,7 +177,7 @@ namespace tn3270 {
}
///
- /// Get connection statue
+ /// Get connection state
///
///
///
@@ -196,54 +196,171 @@ namespace tn3270 {
return tn3270_disconnect(hSession);
}
+ ///
+ /// Wait for network activity
+ ///
+ ///
+ /// Seconds to wait
+ ///
+ ///
+ ///
+ ///
+ ///
public int WaitForReady(int seconds) {
return tn3270_wait_for_ready(hSession, seconds);
}
+ ///
+ /// "Sleep" keeping the network activity.
+ ///
+ ///
+ /// Number of seconds to wait
+ ///
+ ///
+ ///
+ ///
+ ///
public int Wait(int seconds) {
return tn3270_wait(hSession, seconds);
}
+ ///
+ /// Get contents at address
+ ///
+ ///
+ /// Address of text in the screen buffer
+ /// Number of characters to get
+ ///
+ ///
+ /// Contents from terminal screen.
+ ///
+ ///
public string GetString(int addr, int strlen) {
StringBuilder str = new StringBuilder(strlen+1);
tn3270_get_string(hSession, addr, str, strlen);
return str.ToString(0,strlen);
}
+ ///
+ /// Get contents at position.
+ ///
+ ///
+ /// Start row
+ /// Start col
+ /// Number of characters to get
+ ///
+ ///
+ /// Contents from terminal screen.
+ ///
+ ///
public string GetStringAt(int row, int col, int strlen) {
StringBuilder str = new StringBuilder(strlen+1);
tn3270_get_string_at(hSession, row, col, str, strlen);
return str.ToString(0,strlen);
}
+ ///
+ /// Set contents at position
+ ///
+ ///
+ /// Start row
+ /// Start col
+ /// Text to set
+ ///
public void SetStringAg(int row, int col, string str) {
tn3270_set_string_at(hSession, row, col, str);
}
+ ///
+ /// Wait for text at position.
+ ///
+ ///
+ /// Start row
+ /// Start col
+ /// Text to wait
+ /// Seconds to wait
+ ///
+ ///
+ ///
+ ///
+ ///
public int WaitForStringAt(int row, int col, string str, int timeout) {
return tn3270_wait_for_string_at(hSession, row, col, str, timeout);
}
+ ///
+ /// Compare contents at position
+ ///
+ ///
+ /// Start row
+ /// Start col
+ /// Text to compare
+ ///
+ ///
+ /// Result (0 = The strings are the same).
+ ///
+ ///
public int CmpStringAt(int row, int col, string str) {
return tn3270_cmp_string_at(hSession, row, col, str);
}
+ ///
+ /// Set cursor position.
+ ///
+ ///
+ /// New cursor row
+ /// New cursor column
+ ///
public void SetCursorPosition(int row, int col) {
tn3270_set_cursor_position(hSession, row, col);
}
- public void SetCursorAddr(int addr) {
+ ///
+ /// Set cursor position based on address.
+ ///
+ ///
+ /// Address of the new cursor position
+ ///
+ public void SetCursorPosition(int addr) {
tn3270_set_cursor_addr(hSession, addr);
}
+ ///
+ /// Send "Enter" key
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
public int Enter() {
return tn3270_enter(hSession);
}
+ ///
+ /// Send "PF" key
+ ///
+ ///
+ /// Key identifier 1=PF1, 2=PF2, ...
+ ///
+ ///
+ ///
+ ///
+ ///
public int PfKey(int key) {
return tn3270_pfkey(hSession, key);
}
+ ///
+ /// Send "PA" key
+ ///
+ ///
+ /// Key identifier 1=PA1, 2=PA2, ...
+ ///
+ ///
+ ///
+ ///
+ ///
public int PaKey(int key) {
return tn3270_pakey(hSession, key);
}
--
libgit2 0.21.2