aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorMiles Bader2007-07-15 02:05:20 +0000
committerMiles Bader2007-07-15 02:05:20 +0000
commit7eb1e4534e88a32fe5e549e630fdabf3e062be2b (patch)
tree34fc72789f1cfbfeb067cf507f8871c322df300a /src/term.c
parent76d11d2cf9623e9f4c38e8239c4444ffc1fae485 (diff)
parent6f8a87c027ebd6f9cfdac5c0df97d651227bec62 (diff)
downloademacs-7eb1e4534e88a32fe5e549e630fdabf3e062be2b.tar.gz
emacs-7eb1e4534e88a32fe5e549e630fdabf3e062be2b.zip
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 803-813) - Update from CVS - Merge from emacs--rel--22 * emacs--rel--22 (patch 51-58) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 233-236) - Merge from emacs--devo--0 - Update from CVS Revision: emacs@sv.gnu.org/emacs--multi-tty--0--patch-25
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/term.c b/src/term.c
index 122eab91bdb..813fc29655c 100644
--- a/src/term.c
+++ b/src/term.c
@@ -27,7 +27,10 @@ Boston, MA 02110-1301, USA. */
27#include <string.h> 27#include <string.h>
28#include <errno.h> 28#include <errno.h>
29#include <sys/file.h> 29#include <sys/file.h>
30#include <unistd.h> /* For isatty. */ 30
31#ifdef HAVE_UNISTD_H
32#include <unistd.h>
33#endif
31 34
32#if HAVE_TERMIOS_H 35#if HAVE_TERMIOS_H
33#include <termios.h> /* For TIOCNOTTY. */ 36#include <termios.h> /* For TIOCNOTTY. */
@@ -2343,9 +2346,9 @@ the currently selected frame. */)
2343void 2346void
2344term_mouse_moveto (int x, int y) 2347term_mouse_moveto (int x, int y)
2345{ 2348{
2349 /* TODO: how to set mouse position?
2346 const char *name; 2350 const char *name;
2347 int fd; 2351 int fd;
2348 /* TODO: how to set mouse position?
2349 name = (const char *) ttyname (0); 2352 name = (const char *) ttyname (0);
2350 fd = open (name, O_WRONLY); 2353 fd = open (name, O_WRONLY);
2351 SOME_FUNCTION (x, y, fd); 2354 SOME_FUNCTION (x, y, fd);
@@ -2359,7 +2362,7 @@ term_show_mouse_face (enum draw_glyphs_face draw)
2359{ 2362{
2360 struct window *w = XWINDOW (Qmouse_face_window); 2363 struct window *w = XWINDOW (Qmouse_face_window);
2361 int save_x, save_y; 2364 int save_x, save_y;
2362 int i, j; 2365 int i;
2363 2366
2364 struct frame *f = XFRAME (w->frame); 2367 struct frame *f = XFRAME (w->frame);
2365 struct tty_display_info *tty = FRAME_TTY (f); 2368 struct tty_display_info *tty = FRAME_TTY (f);
@@ -2882,7 +2885,7 @@ int
2882handle_one_term_event (struct tty_display_info *tty, Gpm_Event *event, struct input_event* hold_quit) 2885handle_one_term_event (struct tty_display_info *tty, Gpm_Event *event, struct input_event* hold_quit)
2883{ 2886{
2884 struct frame *f = XFRAME (tty->top_frame); 2887 struct frame *f = XFRAME (tty->top_frame);
2885 int i, j, fd; 2888 int fd;
2886 struct input_event ie; 2889 struct input_event ie;
2887 int do_help = 0; 2890 int do_help = 0;
2888 int count = 0; 2891 int count = 0;
@@ -2906,7 +2909,7 @@ handle_one_term_event (struct tty_display_info *tty, Gpm_Event *event, struct in
2906 arg[1] = arg[3] = (unsigned short) event->y + gpm_zerobased; 2909 arg[1] = arg[3] = (unsigned short) event->y + gpm_zerobased;
2907 arg[4] = (unsigned short) 3; 2910 arg[4] = (unsigned short) 3;
2908 2911
2909 name = (const char *) ttyname (0); 2912 name = ttyname (0);
2910 fd = open (name, O_WRONLY); 2913 fd = open (name, O_WRONLY);
2911 ioctl (fd, TIOCLINUX, buf + sizeof (short) - 1); 2914 ioctl (fd, TIOCLINUX, buf + sizeof (short) - 1);
2912 close (fd); 2915 close (fd);