Mercurial > hg > xemacs-beta
view lib-src/leditcfns.c @ 936:0f9686ac3ce7
[xemacs-hg @ 2002-07-29 21:52:14 by scop]
2002-07-30 Ville Skyttä <ville.skytta@xemacs.org>
* term.texi (Input to the inferior): Fix term line/char mode
switch keybindings. Kudos to Jacob P. Burckhardt.
* xemacs/misc.texi (Term Mode): Ditto.
Message-Id: <1027534880.15332.209.camel@bobcat.ods.org>
author | scop |
---|---|
date | Mon, 29 Jul 2002 21:52:17 +0000 |
parents | 376386a54a3c |
children |
line wrap: on
line source
/* Synched up with: FSF 19.28. */ #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); }