Mercurial > emacs
view lib-src/leditcfns.c @ 6514:421a3ab4cb2e
(thisdir): Nonsensical variable removed.
(install-arch-indep): Set shell var thisdir=`pwd` before cd and cd back to
$thisdir, rather than the directory `this_dir', which seems exceptionally
unlikely to just happen to be a symlink to the Emacs build directory, which
must have been the intent of the author.
author | Roland McGrath <roland@gnu.org> |
---|---|
date | Thu, 24 Mar 1994 23:41:29 +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); }