diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-01-31 20:17:11 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-01-31 20:17:11 +0000 |
commit | fb70e89dae9574330a73792f0fceddfab62202b9 (patch) | |
tree | 18b545328dd6256be0c7c1201cf94a31446e9d16 /lib/libcurses/base/lib_mouse.c | |
parent | 3b9b932e9a8c5afd5438f8d93bf20a7f032d8847 (diff) |
ncurses-4.2-990130
Diffstat (limited to 'lib/libcurses/base/lib_mouse.c')
-rw-r--r-- | lib/libcurses/base/lib_mouse.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/lib/libcurses/base/lib_mouse.c b/lib/libcurses/base/lib_mouse.c index 2454f0d5f5f..487503f4c35 100644 --- a/lib/libcurses/base/lib_mouse.c +++ b/lib/libcurses/base/lib_mouse.c @@ -1,7 +1,7 @@ -/* $OpenBSD: lib_mouse.c,v 1.1 1999/01/18 19:09:52 millert Exp $ */ +/* $OpenBSD: lib_mouse.c,v 1.2 1999/01/31 20:17:09 millert Exp $ */ /**************************************************************************** - * Copyright (c) 1998 Free Software Foundation, Inc. * + * Copyright (c) 1998,1999 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -38,7 +38,7 @@ * devices. * * The first method used is xterm's internal mouse-tracking facility. - * The second (not yet implemented) will be Alessandro Rubini's GPM server. + * The second is Alessandro Rubini's GPM server. * * Notes for implementors of new mouse-interface methods: * @@ -86,7 +86,7 @@ #endif #endif -MODULE_ID("$From: lib_mouse.c,v 1.41 1998/12/02 15:03:22 juergen Exp $") +MODULE_ID("$From: lib_mouse.c,v 1.42 1999/01/31 01:17:53 tom Exp $") #define MY_TRACE TRACE_ICALLS|TRACE_IEVENT @@ -225,10 +225,14 @@ server_state(const int state) /* FIXME: The list of names should be configurable */ static int is_xterm(const char *name) { - return (!strncmp(name, "xterm", 5) - || !strncmp(name, "rxvt", 4) - || !strncmp(name, "kterm", 5) - || !strncmp(name, "color_xterm", 11)); + while (*name != 0) { + if (!strncmp(name, "xterm", 5) + || !strncmp(name, "rxvt", 4) + || !strncmp(name, "kterm", 5)) + return TRUE; + name++; + } + return FALSE; } static int initialized; |