Mercurial > emacs
view lib-src/leditcfns.c @ 37019:1deafff9fd1f
(Language Environments): Explain how to update the X
server's font database after installing Intlfonts.
(Language Environments): Add rationale for using the language
environment hook.
(Select Input Method): Add an example of setting
default-input-method inside set-language-environment-hook.
(Recognize Coding): Explain who would like to disable EOL
conversions.
(Specify Coding): Add an index entry for non-ASCII file names.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Tue, 27 Mar 2001 09:39:53 +0000 |
parents | da530eb93c1a |
children | 695cf19ef79e |
line wrap: on
line source
#include <sgtty.h> #include <signal.h> #define STRLEN 100 static char str[STRLEN+1] = "%?emacs"; /* extra char for the null */ switch_to_proc(){ char *ptr = str; while (*ptr) ioctl(0, TIOCSTI, ptr++); ioctl(0, TIOCSTI, "\n"); kill(getpid(), SIGTSTP); } set_proc_str(ptr) char *ptr; { if (strlen(ptr) <= STRLEN) strcpy(str, ptr); else printf("string too long for set-proc-str: %s\n", ptr); }