mirror of
https://github.com/n05la3/cmdtypist
synced 2024-11-17 09:25:36 +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)
|
extern void lesson_list(void)
|
||||||
{
|
{
|
||||||
srand((unsigned)time(NULL));
|
srand((unsigned)time(NULL));
|
||||||
unsigned short n=rand()%17;
|
unsigned short n=rand()%14;
|
||||||
system("clear");
|
system("clear");
|
||||||
puts("LESSONS, use command <select 'lesson number' to make a choice: "
|
puts("LESSONS, use command <select 'lesson number' to make a choice: "
|
||||||
"\n1: Beginner lessons"
|
"\n1: Beginner lessons"
|
||||||
@ -864,6 +864,7 @@ extern void lesson_list(void)
|
|||||||
"\n13: Random word typing"
|
"\n13: Random word typing"
|
||||||
"\n14: Capital letter training"
|
"\n14: Capital letter training"
|
||||||
"\n15: Mixed lessons");
|
"\n15: Mixed lessons");
|
||||||
|
printf(""TIP_COLOR"");
|
||||||
switch(n)
|
switch(n)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
@ -908,4 +909,6 @@ extern void lesson_list(void)
|
|||||||
default:
|
default:
|
||||||
printf("%s",":: You will only get better if you type more\n" );
|
printf("%s",":: You will only get better if you type more\n" );
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
printf(""RESET"");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user