xterm.c (e532c37858fdcc18e9a91d24c2e22cd21aa22561) | xterm.c (fd9bc53b99a77aefe89d810d889aa6385565959b) |
---|---|
1/* 2 * Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com) 3 * Licensed under the GPL 4 */ 5 6#include <stdio.h> 7#include <stdlib.h> 8#include <unistd.h> --- 180 unchanged lines hidden (view full) --- 189 os_close_file(fd); 190} 191 192static void xterm_free(void *d) 193{ 194 free(d); 195} 196 | 1/* 2 * Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com) 3 * Licensed under the GPL 4 */ 5 6#include <stdio.h> 7#include <stdlib.h> 8#include <unistd.h> --- 180 unchanged lines hidden (view full) --- 189 os_close_file(fd); 190} 191 192static void xterm_free(void *d) 193{ 194 free(d); 195} 196 |
197static int xterm_console_write(int fd, const char *buf, int n, void *d) 198{ 199 struct xterm_chan *data = d; 200 201 return(generic_console_write(fd, buf, n, &data->tt)); 202} 203 | |
204struct chan_ops xterm_ops = { 205 .type = "xterm", 206 .init = xterm_init, 207 .open = xterm_open, 208 .close = xterm_close, 209 .read = generic_read, 210 .write = generic_write, | 197struct chan_ops xterm_ops = { 198 .type = "xterm", 199 .init = xterm_init, 200 .open = xterm_open, 201 .close = xterm_close, 202 .read = generic_read, 203 .write = generic_write, |
211 .console_write = xterm_console_write, | 204 .console_write = generic_console_write, |
212 .window_size = generic_window_size, 213 .free = xterm_free, 214 .winch = 1, 215}; 216 217/* 218 * Overrides for Emacs so that we follow Linus's tabbing style. 219 * Emacs will notice this stuff at the end of the file and automatically 220 * adjust the settings for this buffer only. This must remain at the end 221 * of the file. 222 * --------------------------------------------------------------------------- 223 * Local variables: 224 * c-file-style: "linux" 225 * End: 226 */ | 205 .window_size = generic_window_size, 206 .free = xterm_free, 207 .winch = 1, 208}; 209 210/* 211 * Overrides for Emacs so that we follow Linus's tabbing style. 212 * Emacs will notice this stuff at the end of the file and automatically 213 * adjust the settings for this buffer only. This must remain at the end 214 * of the file. 215 * --------------------------------------------------------------------------- 216 * Local variables: 217 * c-file-style: "linux" 218 * End: 219 */ |