if ($?prompt) set prompt = @dots{}
@end example
+@vindex TERM, environment variable, in compilation mode
+ If you want to customize the value of the @env{TERM} environment
+variable passed to the compilation subshell, customize the variable
+@code{comint-terminfo-terminal} (@pxref{Shell Options}).
+
Emacs does not expect a compiler process to launch asynchronous
subprocesses; if it does, and they keep running after the main
compiler process has terminated, Emacs may kill them or their output
underlying shell, of course.
@vindex comint-terminfo-terminal
+@vindex TERM, environment variable, in sub-shell
Comint mode sets the @env{TERM} environment variable to a safe default
value, but this value disables some useful features. For example,
-color is disabled for applications that use @env{TERM} to determine if
+color is disabled in applications that use @env{TERM} to determine if
color is supported. Therefore, Emacs provides an option
@code{comint-terminfo-terminal}, which you can set to a terminal that
is present in your system's terminfo database, in order to take
@item
@findex open-termscript
@cindex termscript file
-@cindex @env{TERM} environment variable
+@vindex TERM, environment variable, and display bugs
For possible display bugs, the terminal type (the value of environment
variable @env{TERM}), the complete termcap entry for the terminal from
@file{/etc/termcap} (since that file is not identical on all machines),