[w3m-dev 02447] XTerm's mouse sequence should be skipped?
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | 2001-11-20  Kiyokazu SUTO <suto@ks-and-ks.ne.jp> | ||||||
|  |  | ||||||
|  | 	* terms.c (skip_escseq): [w3m-dev 02447] | ||||||
|  | 	  is_xterm && ESC [ M <ch> <ch> <ch> | ||||||
|  |  | ||||||
| 2001-11-20  Fumitoshi UKAI  <ukai@debian.or.jp> | 2001-11-20  Fumitoshi UKAI  <ukai@debian.or.jp> | ||||||
|  |  | ||||||
| 	* terms.c (mouse_init): Gpm_Close() is required. | 	* terms.c (mouse_init): Gpm_Close() is required. | ||||||
|   | |||||||
							
								
								
									
										10
									
								
								terms.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								terms.c
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | |||||||
| /* $Id: terms.c,v 1.8 2001/11/19 19:19:21 ukai Exp $ */ | /* $Id: terms.c,v 1.9 2001/11/19 19:21:11 ukai Exp $ */ | ||||||
| /*  | /*  | ||||||
|  * An original curses library for EUC-kanji by Akinori ITO,     December 1989 |  * An original curses library for EUC-kanji by Akinori ITO,     December 1989 | ||||||
|  * revised by Akinori ITO, January 1995 |  * revised by Akinori ITO, January 1995 | ||||||
| @@ -1670,6 +1670,14 @@ skip_escseq(void) | |||||||
|     c = getch(); |     c = getch(); | ||||||
|     if (c == '[' || c == 'O') { |     if (c == '[' || c == 'O') { | ||||||
| 	c = getch(); | 	c = getch(); | ||||||
|  | #ifdef MOUSE | ||||||
|  | 	if (is_xterm && c == 'M') { | ||||||
|  | 	  getch(); | ||||||
|  | 	  getch(); | ||||||
|  | 	  getch(); | ||||||
|  | 	} | ||||||
|  | 	else | ||||||
|  | #endif	 | ||||||
| 	while (IS_DIGIT(c)) | 	while (IS_DIGIT(c)) | ||||||
| 	    c = getch(); | 	    c = getch(); | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user