Files
openmesh/Tools/Utils/conio.hh
Jan Möbius 97f515985d First checkin for OpenMesh 2.0
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@2 fdac6126-5c0c-442c-9429-916003d36597
2009-02-06 13:37:46 +00:00

38 lines
1.0 KiB
C++

#ifndef OPENMESH_UTILS_CONIO_HH
#define OPENMESH_UTILS_CONIO_HH
// ----------------------------------------------------------------------------
namespace OpenMesh {
namespace Utils {
// ----------------------------------------------------------------------------
/** Check if characters a pending in stdin.
*
* \return Number of characters available to read.
*
* \see getch(), getche()
*/
int kbhit(void);
/** A blocking single character input from stdin
*
* \return Character, or -1 if an input error occurs.
*
* \see getche(), kbhit()
*/
int getch(void);
/** A blocking single character input from stdin with echo.
*
* \return Character, or -1 if an input error occurs.
* \see getch(), kbhit()
*/
int getche(void);
// ----------------------------------------------------------------------------
} // namespace Utils
} // namespace OpenMesh
// ----------------------------------------------------------------------------
#endif // OPENMESH_UTILS_CONIO_HH
// ============================================================================