Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| #include <windows.h> | |
| #define MONITOR_ON -1 | |
| #define MONITOR_OFF 2 | |
| #define MONITOR_STANBY 1 | |
| int main() | |
| { | |
| SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, MONITOR_OFF); | |
| } |
| #!/usr/bin/env python | |
| # This example demonstrates RSA public-key cryptography in an | |
| # easy-to-follow manner. It works on integers alone, and uses much smaller numbers | |
| # for the sake of clarity. | |
| ##################################################################### | |
| # First we pick our primes. These will determine our keys. | |
| ##################################################################### |