startup_message.h (786B)
1 #ifndef STARTUP_MESSAGE_H_ 2 #define STARTUP_MESSAGE_H_ 3 4 static const char* const welcome[] = {"Welcome to se!", "Good day, Human", "Happy Coding", "se: the Simple Editor", 5 "Time to get some progress done!", "Ready for combat", "Initialising...Done", "loaded in %%d seconds", 6 "You look based", "Another day, another bug to fix", "Who needs a mouse ¯\\_(ツ)_/¯", "grrgrrggghhaaaaaa (╯°□ °)╯︵ ┻━┻", 7 "┬┴┬┤(・_├┬┴┬┴┬┴┬┤ʖ ͡°) ├┬┴┬┴┬┴┬┴┬┴┬┴┬┴┬┴┬┴┬┴", "ʰᵉˡˡᵒ"}; 8 9 static void 10 choose_random_message() 11 { 12 writef_to_status_bar(welcome[rand() % LEN(welcome)]); 13 } 14 15 static const struct extension startup_message = { 16 .enable = choose_random_message 17 }; 18 19 20 #endif // STARTUP_MESSAGE_H_