Design Pattern Examples
Overview of object-oriented design patterns
lusplus/helpers/cursor.h
Go to the documentation of this file.
1
6
7#pragma once
8#ifndef __CURSOR_H__
9#define __CURSOR_H__
10
11namespace Helpers
12{
16 void disableinputecho();
17
22 void enableinputecho();
23
29 void setcursorposition(int row, int column);
30
37 void getcursorposition(int* row, int* column);
38
39} // end namespace
40
41#endif // __CURSOR_H__
The namespace containing all the "helper" functions in the C++ code.
void enableinputecho()
Enable echoing input, which should be the default mode. Call this only after calling disableinputecho...
Definition: cursor.cpp:129
void disableinputecho()
Disable echoing input until enableinputecho() is called.
Definition: cursor.cpp:118
void setcursorposition(int row, int column)
Move the text cursor to the specified screen coordinates.
Definition: cursor.cpp:140
void getcursorposition(int *row, int *column)
Retrieve the current cursor position in the console window.
Definition: cursor.cpp:149