mirror of
https://github.com/n05la3/cmdtypist
synced 2024-11-05 21:20:23 +00:00
included color effect for tips
This commit is contained in:
parent
f631ea5c19
commit
f3201da14b
@ -846,7 +846,7 @@ extern void waiting(char *wait_style)//style in waiting for input.
|
||||
extern void lesson_list(void)
|
||||
{
|
||||
srand((unsigned)time(NULL));
|
||||
unsigned short n=rand()%17;
|
||||
unsigned short n=rand()%14;
|
||||
system("clear");
|
||||
puts("LESSONS, use command <select 'lesson number' to make a choice: "
|
||||
"\n1: Beginner lessons"
|
||||
@ -864,6 +864,7 @@ extern void lesson_list(void)
|
||||
"\n13: Random word typing"
|
||||
"\n14: Capital letter training"
|
||||
"\n15: Mixed lessons");
|
||||
printf(""TIP_COLOR"");
|
||||
switch(n)
|
||||
{
|
||||
case 1:
|
||||
@ -908,4 +909,6 @@ extern void lesson_list(void)
|
||||
default:
|
||||
printf("%s",":: You will only get better if you type more\n" );
|
||||
break;
|
||||
}
|
||||
printf(""RESET"");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user