aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/term.c b/src/term.c
index 0210a66afa9..331d9f20e4c 100644
--- a/src/term.c
+++ b/src/term.c
@@ -25,6 +25,9 @@ Boston, MA 02110-1301, USA. */
25#include <stdio.h> 25#include <stdio.h>
26#include <ctype.h> 26#include <ctype.h>
27#include <string.h> 27#include <string.h>
28#ifdef HAVE_UNISTD_H
29#include <unistd.h>
30#endif
28 31
29#include "termchar.h" 32#include "termchar.h"
30#include "termopts.h" 33#include "termopts.h"
@@ -2493,9 +2496,9 @@ set_tty_color_mode (f, val)
2493void 2496void
2494term_mouse_moveto (int x, int y) 2497term_mouse_moveto (int x, int y)
2495{ 2498{
2499 /* TODO: how to set mouse position?
2496 const char *name; 2500 const char *name;
2497 int fd; 2501 int fd;
2498 /* TODO: how to set mouse position?
2499 name = (const char *) ttyname (0); 2502 name = (const char *) ttyname (0);
2500 fd = open (name, O_WRONLY); 2503 fd = open (name, O_WRONLY);
2501 SOME_FUNCTION (x, y, fd); 2504 SOME_FUNCTION (x, y, fd);
@@ -2509,7 +2512,7 @@ term_show_mouse_face (enum draw_glyphs_face draw)
2509{ 2512{
2510 struct window *w = XWINDOW (Qmouse_face_window); 2513 struct window *w = XWINDOW (Qmouse_face_window);
2511 int save_x, save_y; 2514 int save_x, save_y;
2512 int i, j; 2515 int i;
2513 2516
2514 if (/* If window is in the process of being destroyed, don't bother 2517 if (/* If window is in the process of being destroyed, don't bother
2515 to do anything. */ 2518 to do anything. */
@@ -3029,7 +3032,7 @@ int
3029handle_one_term_event (Gpm_Event *event, struct input_event* hold_quit) 3032handle_one_term_event (Gpm_Event *event, struct input_event* hold_quit)
3030{ 3033{
3031 struct frame *f = SELECTED_FRAME (); 3034 struct frame *f = SELECTED_FRAME ();
3032 int i, j, fd; 3035 int fd;
3033 struct input_event ie; 3036 struct input_event ie;
3034 int do_help = 0; 3037 int do_help = 0;
3035 int count = 0; 3038 int count = 0;
@@ -3053,7 +3056,7 @@ handle_one_term_event (Gpm_Event *event, struct input_event* hold_quit)
3053 arg[1] = arg[3] = (unsigned short) event->y + gpm_zerobased; 3056 arg[1] = arg[3] = (unsigned short) event->y + gpm_zerobased;
3054 arg[4] = (unsigned short) 3; 3057 arg[4] = (unsigned short) 3;
3055 3058
3056 name = (const char *) ttyname (0); 3059 name = ttyname (0);
3057 fd = open (name, O_WRONLY); 3060 fd = open (name, O_WRONLY);
3058 ioctl (fd, TIOCLINUX, buf + sizeof (short) - 1); 3061 ioctl (fd, TIOCLINUX, buf + sizeof (short) - 1);
3059 close (fd); 3062 close (fd);