view lib-src/leditcfns.c @ 90401:5ac810cdd794

(ALL_CFLAGS): Add @FREETYPE_CFLAGS@, @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@. (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@. (FONTSRC, FONTOBJ): New variables. (obj): Add $(FONTOBJ). (SOME_MACHINE_OBJECTS): Lib_X11_Lib. (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and @LIBOTF_LIBS@. (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets. (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depends on $(FONTSRC).
author Kenichi Handa <handa@m17n.org>
date Tue, 06 Jun 2006 03:47:33 +0000
parents 68c22ea6027c
children
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);
    }

/* arch-tag: eb7ae804-0d6e-4077-ab42-7173821410c3
   (do not change this comment) */