Skip to content

Commit db2690d

Browse files
committed
Create README.md
1 parent 0a5e2a9 commit db2690d

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# ShellTools
2+
3+
Simple shell tools on Windows.
4+
5+
The code from a programming novice, trying to implement some simple functions that individuals may need on the Windows terminal.
6+
7+
## closeMonitor
8+
9+
Run the program and the computer will turn off the monitor after 1 second by default. If you enter the `-t` flag, you can specify the delay time (seconds). Enter the `-s` flag to make the computer sleep instead of just turning off the monitor.
10+
11+
## LICENSE
12+
13+
This code is licensed under the MIT license.

src/closeMonitor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ int main(int argc, char** argv) {
5252
SetSuspendState(FALSE, FALSE, FALSE);
5353
}
5454
else {
55-
printf("Monitor will be closed in %d second%s.\n", second,pluralSuffix);
55+
printf("Monitor will be turned off in %d second%s.\n", second,pluralSuffix);
5656
Sleep(second * 1000);
5757
PostMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, 2);
5858
}

0 commit comments

Comments
 (0)