term-send-string

term-send-string is a compiled Lisp function in `term.el'.

(term-send-string PROC STR)

Send to PROC the contents of STR as input.
This is equivalent to `process-send-string', except that long input strings
are broken up into chunks of size `term-input-chunk-size'. Processes
are given a chance to output between chunks. This can help prevent processes
from hanging when you send them long inputs on some OS's.