-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.cpp
More file actions
25 lines (18 loc) · 902 Bytes
/
example.cpp
File metadata and controls
25 lines (18 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "type_anim.h"
int main()
{
// Changing this will change the default delay between character spacing.
//kb::kb_settings::default_dur = /*your custom value*/; // Accepts unsigned, int
// Change to make new line default.
//kb::kb_settings::default_endl = /*your custom value*/; // Accepts boolean
// "\n" can be used to create multiple lines outputs, or to endl if default endl value is false
// This will use the default endl setting and char delay setting.
kb::type_to_console("Big hackerman...");
// This will use a custom delay, but will still use default endl setting.
kb::type_to_console("Big hackerman...", 125);
// This will use a custom should endl, but will still use default delay setting.
kb::type_to_console("Big hackerman...", true);
// This will use a custom delay and custom should endl;
kb::type_to_console("Big hackerman...", 125, true);
return 0;
}