term-word

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

(term-word WORD-CHARS)

Return the word of WORD-CHARS at point, or nil if none is found.
Word constituents are considered to be those in WORD-CHARS, which is like the
inside of a "[...]" (see `skip-chars-forward').