Skip to content

Instantly share code, notes, and snippets.

@tcyrus
Created December 12, 2014 19:41
Show Gist options
  • Save tcyrus/bc2bc07c0dcccfd604ee to your computer and use it in GitHub Desktop.
Save tcyrus/bc2bc07c0dcccfd604ee to your computer and use it in GitHub Desktop.
error.c
/*
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