Mercurial > emacs
view lib-src/leditcfns.c @ 1578:8c779144d540
Sat Nov 7 15:11:39 1992 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* make-dist: Don't forget that the way to avoid filenames starting
with `=' is to use the pattern `[a-zA-Z0-9]*.h', not
`[a-zA-Z0-9].h'. Add a new section for dealing with files that we
couldn't make hard links to, since we have two already, and
perhaps more to come.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Tue, 10 Nov 1992 23:12:23 +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); }