rms@mit-prep (05/25/85)
From: Richard M. Stallman <rms@mit-prep>
The function write-char output to an output stream; by default,
it outputs to the string "in the minibuffer". It outputs control
characters the same way they display in the buffer.
The development version of GNU Emacs has send-string-to-terminal.
If you need it and don't want to wait for the next distribution,
insert the following code into dispnew.c
DEFUN ("send-string-to-terminal", Fsend_string_to_terminal,
Ssend_string_to_terminal, 1, 1, 0,
"Send STRING to the terminal without alteration.\n\
Control characters in STRING will have terminal-dependent effects.")
(str)
Lisp_Object str;
{
CHECK_STRING (str, 0);
fwrite (XSTRING (str)->data, 1, XSTRING (str)->size, stdout);
fflush (stdout);
return Qnil;
}
You must also add
defsubr (&Ssend_string_to_terminal);
in syms_of_dispnew