Created
December 12, 2014 19:41
-
-
Save tcyrus/bc2bc07c0dcccfd604ee to your computer and use it in GitHub Desktop.
error.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
error.c | |
2016tcyrus | |
*/ | |
#include <stdio.h> | |
#include <stdbool.h> | |
#include <unistd.h> | |
void dispS(); | |
void dispS(char param[]) { | |
printf("|"); | |
printf("\e[7m"); | |
printf("%s",param); | |
printf("\e[27m"); | |
printf("|\n"); | |
} | |
int main() { | |
printf("\033[2J\033[1;1H"); | |
//80x25 | |
printf("+==============================================================================+\n"); | |
dispS(" "); | |
dispS(" "); | |
dispS(" +================================+ "); | |
dispS(" | | "); | |
dispS(" | Workstation Under Maitenance | "); | |
dispS(" | | "); | |
dispS(" +================================+ "); | |
dispS(" "); | |
dispS(" "); | |
dispS(" This workstation is currently undergoing maintenance and\\or repair. "); | |
dispS(" "); | |
dispS(" "); | |
dispS(" Please do not use or reboot it. "); | |
dispS(" "); | |
dispS(" "); | |
dispS(" "); | |
dispS(" "); | |
dispS(" "); | |
dispS(" "); | |
dispS(" "); | |
dispS(" The SysAdmins "); | |
dispS(" TJHSST "); | |
dispS(" "); | |
printf("+==============================================================================+\n"); | |
while(true) { | |
sleep(20); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment