X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fkey_names.c;h=dea60eb807a224b50f01b671c49204060062c63a;hp=fe07a17d5a1aca17f8d27f4c95560ab0bfc9aa02;hb=4ae6d1c18d0dec956b814865893812655ec3a22c;hpb=b779f5fb4516b3e6d1bc8880ea68923efb761e1d diff --git a/test/key_names.c b/test/key_names.c index fe07a17d..dea60eb8 100644 --- a/test/key_names.c +++ b/test/key_names.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2007 Free Software Foundation, Inc. * + * Copyright (c) 2007,2008 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 * @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: key_names.c,v 1.2 2007/06/09 22:32:34 tom Exp $ + * $Id: key_names.c,v 1.3 2008/02/09 18:09:18 tom Exp $ */ #include @@ -39,7 +39,7 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) int n; setlocale(LC_ALL, ""); - for (n = -1; n < KEY_MAX + 512; n++) { + for (n = KEY_MIN; n < KEY_MAX + 512; n++) { const char *result = key_name(n); if (result != 0) printf("%d(%5o):%s\n", n, n, result);