term-magic-space
term-magic-space is an interactive compiled Lisp function in `term.el
'.
(term-magic-space ARG)
Expand input history references before point and insert ARG spaces.
A useful command to bind to SPC. See `term-replace-by-expanded-history'.