author | Markus Bröker <mbroeker@largo.dyndns.tv> |
Sat, 13 Dec 2008 17:58:15 +0100 | |
changeset 22 | 0db9235d68d9 |
parent 21 | 403742321c65 |
permissions | -rw-r--r-- |
19
933d86c1ff71
namespace console added for console tools, password entry and other stuff
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
1 |
#ifndef CONSOLE_H |
933d86c1ff71
namespace console added for console tools, password entry and other stuff
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
2 |
#define CONSOLE_H |
933d86c1ff71
namespace console added for console tools, password entry and other stuff
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
3 |
|
21
403742321c65
console functions work fine under linux and not under windows
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
20
diff
changeset
|
4 |
#ifdef WIN32 |
403742321c65
console functions work fine under linux and not under windows
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
20
diff
changeset
|
5 |
#define BS 127 |
403742321c65
console functions work fine under linux and not under windows
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
20
diff
changeset
|
6 |
#else |
403742321c65
console functions work fine under linux and not under windows
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
20
diff
changeset
|
7 |
#define BS 127 |
403742321c65
console functions work fine under linux and not under windows
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
20
diff
changeset
|
8 |
#endif |
403742321c65
console functions work fine under linux and not under windows
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
20
diff
changeset
|
9 |
|
19
933d86c1ff71
namespace console added for console tools, password entry and other stuff
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
10 |
#include <iostream> |
933d86c1ff71
namespace console added for console tools, password entry and other stuff
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
11 |
|
933d86c1ff71
namespace console added for console tools, password entry and other stuff
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
12 |
namespace Console { |
933d86c1ff71
namespace console added for console tools, password entry and other stuff
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
13 |
int getch (); |
933d86c1ff71
namespace console added for console tools, password entry and other stuff
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
14 |
void getpass (std::string &); |
933d86c1ff71
namespace console added for console tools, password entry and other stuff
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
15 |
}; |
933d86c1ff71
namespace console added for console tools, password entry and other stuff
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
16 |
#endif |