Next: , Previous: , Up: Terminal escapes  


1.4.5 Command hook

If C-z is seen, any text up to a following LF is scanned. The text in between (not counting the initial C-z or the final LF) is passed to the function that is the value of term-command-hook.

The default value of the term-command-hook variable is the function term-command-hook, which handles the following:

C-z C-z FILENAME:LINENUMBER:IGNORED LF

Set term-pending-frame to (cons "FILENAME" LINENUMBER). When the buffer is displayed in the current window, show the FILENAME in the other window, and show an arrow at LINENUMBER. Gdb emits these strings when invoked with the flag –fullname. This is used by gdb mode; you can also invoke gdb with this flag from shell mode.

C-z / DIRNAME LF

Set the directory of the term buffer to DIRNAME

C-z ! LEXPR LF

Read and evaluate LEXPR as a Lisp expression. The result is ignored.