4 ; Implementation of Termite specific instructions
9 ;----- Overview -------------------------------------------------------------
46 [ :LNOT::DEF:termite__dfn
49 ; --- termite_beep ---
53 ; --- termite_break ---
57 ; --- termite_call ---
61 ; --- termite_chain ---
65 ; --- termite_close ---
73 ; --- termite_download ---
75 IMPORT termite_download
77 ; --- termite_error ---
81 ; --- termite_exec ---
85 ; --- termite_finish ---
89 ; --- termite_hangup ---
93 ; --- termite_lclear ---
97 ; --- termite_lecho ---
101 ; -- termite_linput ---
103 IMPORT termite_linput
105 ; --- termite_lnewline ---
107 IMPORT termite_lnewline
109 ; --- termite_log ---
113 ; --- termite_newsession ---
115 IMPORT termite_newsession
117 ; --- termite_oscli ---
121 ; --- termite_rclear ---
123 IMPORT termite_rclear
125 ; --- termite_recho ---
129 ; --- termite_report ---
131 IMPORT termite_report
133 ; --- termite_rinput ---
135 IMPORT termite_rinput
137 ; --- termite_rnewline ---
139 IMPORT termite_rnewline
141 ; --- termite_spool ---
145 ; --- termite_syscall ---
147 IMPORT termite_syscall
149 ; --- termite_upload ---
151 IMPORT termite_upload
153 ; --- termite_wait ---
157 ; --- termite_watchfor ---
159 IMPORT termite_watchfor
161 ; --- termite_remoteInput ---
163 ; On entry: R0 == handle of script
164 ; R2 == buffer containing bytes read
165 ; R3 == number of bytes in buffer
166 ; R11 == upcall block
168 ; On exit: R2 == new buffer containing bytes to put into ring buffer
169 ; R3 == number of bytes in this buffer
171 ; Use: If we are not doing a watchfor, then this call will return
172 ; immediately, resulting in all the buffer being sent
173 ; to the ring buffer.
174 ; If we are in a watchfor, then all data received, up until
175 ; a match, is echoed immediatley, and not sent to the buffer.
177 IMPORT termite_remoteInput
179 ; --- termite_copyString ---
181 ; On entry: R0 == buffer to copy string to
182 ; R1 == point to the string
183 ; R2 == length of string to copy
187 ; Use: Copies the string into the buffer.
189 IMPORT termite_copyString
191 ; --- termite_doLEcho ---
193 ; On entry: R2 == pointer to the buffer
194 ; R3 == number of bytes to send
198 ; Use: Echos the buffer to local and remote according to the
199 ; current flags, assuming the buffer came from the local input
201 IMPORT termite_doLEcho
203 ; --- termite_doREcho ---
205 ; On entry: R2 == pointer to the buffer
206 ; R3 == number of bytes to send
210 ; Use: Echos the buffer to local and remote according to the
211 ; current flags, assuming the buffer came from remote input
213 IMPORT termite_doREcho
217 ;----- That's all, folks ----------------------------------------------------