]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/demo_keyok.c
ncurses 6.3 - patch 20220416
[ncurses.git] / test / demo_keyok.c
index 28d90aa18cc2d5440d3f6dfd532ae80611d1675d..eb8433d0680035c83b0b831b224a910a79e021a3 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright 2020 Thomas E. Dickey                                          *
+ * Copyright 2020,2022 Thomas E. Dickey                                     *
  * Copyright 2002-2006,2017 Free Software Foundation, Inc.                  *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
@@ -27,7 +27,7 @@
  * authorization.                                                           *
  ****************************************************************************/
 /*
- * $Id: demo_keyok.c,v 1.7 2020/02/02 23:34:34 tom Exp $
+ * $Id: demo_keyok.c,v 1.8 2022/04/16 18:26:57 tom Exp $
  *
  * Demonstrate the keyok() function.
  * Thomas Dickey - 2002/11/23
@@ -44,6 +44,7 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
     int ch;
     WINDOW *win;
 
+    setlocale(LC_ALL, "");
     initscr();
     (void) cbreak();           /* take input chars one at a time, no wait for \n */
     (void) noecho();           /* don't echo input */