hiAppendInputCmd
hiAppendInputCmd(w_windowt_cmd) =>t / nil
Description
Appends a command to the input area of an encapsulation window.
If the encapsulation window has the property obeySpecialChars set to t, this function treats the character ’\n’ in t_cmd as a newline (equivalent to pressing the carriage return key in the encapsulation window). If this property is not set, the ’\n’ and any characters following this in t_cmd are ignored.
Arguments
Values Returned
|
The window specified by w_window is invalid or if the function t_cmd is null. A warning message is also issued. |
Examples
w = hiEncap(list(100:100 500:500) "" "encap")
w->obeySpecialChars = t
hiAppendInputCmd(w "ab") ; input has ’ab’
hiAppendInputCmd(w "cd") ; input has ’abcd’
hiAppendInputCmd(w "\n") ; sends ’abcd’ to output
hiAppendInputCmd(w "ab\ncd\nef")
; sends ’ab’ to output
; sends ’cd’ to output
; input has ’ef’
hiAppendInputCmd(w "gh\n") ; sends ’efgh’ to output
Related Topics
Return to top