view lib-src/leditcfns.c @ 17047:6c586afaa572

Include charset.h. (allocate_face, copy_face, face_eq1): Handle member `fontset' of struct face, i.e. initialize, copy, and check it. (intern_face, clear_face_cache): Handle member `non_ascii_gc' of struct face, i.e. initialize and free it. (free_frame_faces): Unload font only when fontset is not used. Free non_ascii_gc. (frame_update_line_height, merge_faces, compute_base_face): Handle fontset. (recompute_base_faces): Free non_ascii_gc. (Fset_face_attribute_internal): Handle fontset.
author Karl Heuer <kwzh@gnu.org>
date Thu, 20 Feb 1997 06:57:46 +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);
    }