Fix include name for the ncursesw library
[centerim5.git] / cppconsui / Keys.h
blobaf4b03db6f2451e3c2af0960d86398a96bd55232
1 // Copyright (C) 2007 Mark Pustjens <pustjens@dds.nl>
2 // Copyright (C) 2010-2015 Petr Pavlu <setup@dagobah.cz>
3 //
4 // This file is part of CenterIM.
5 //
6 // CenterIM is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
11 // CenterIM is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with CenterIM. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef KEYS_H
20 #define KEYS_H
22 #include "libtermkey/termkey.h"
24 namespace CppConsUI {
26 namespace Keys {
28 /// Compares two keys.
29 struct TermKeyCmp {
30 bool operator()(const TermKeyKey &a, const TermKeyKey &b) const;
33 /// Changes symbol termkeys TERMKEY_SYM_TAB, TERMKEY_SYM_ENTER,
34 /// TERMKEY_SYM_SPACE to unicode termkeys.
35 TermKeyKey refineKey(const TermKeyKey &k);
37 } // namespace Keys
39 } // namespace CppConsUI
41 #endif // KEYS_H
43 // vim: set tabstop=2 shiftwidth=2 textwidth=80 expandtab: