Index: linux/getch2.c =================================================================== RCS file: /cvsroot/mplayer/main/linux/getch2.c,v retrieving revision 1.15 diff -u -r1.15 getch2.c --- linux/getch2.c 1 Nov 2002 00:05:56 -0000 1.15 +++ linux/getch2.c 4 Nov 2002 02:03:25 -0000 @@ -215,6 +215,7 @@ static int getch2_status=0; void getch2_enable(){ + char *p; #ifdef HAVE_TERMIOS struct termios tio_new; #if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) || defined(__GNU__) @@ -236,10 +237,13 @@ ioctl(0,TCSETS,&tio_new); #endif #endif + p=tgetstr("vi",&term_p); + if(p) write(0,p,strlen(p)); getch2_status=1; } void getch2_disable(){ + char *p; if(!getch2_status) return; // already disabled / never enabled #ifdef HAVE_TERMIOS #if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) || defined(__GNU__) @@ -250,6 +254,8 @@ ioctl(0,TCSETS,&tio_orig); #endif #endif + p=tgetstr("ve",&term_p); + if(p) write(0,p,strlen(p)); getch2_status=0; }