First checkin for OpenMesh 2.0
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@2 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
37
Tools/Utils/conio.hh
Normal file
37
Tools/Utils/conio.hh
Normal file
@@ -0,0 +1,37 @@
|
||||
#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
|
||||
// ============================================================================
|
||||
Reference in New Issue
Block a user