int pid, uid = 0;
int status = 0;
tUserInfo *uinfo;
-
- printf("\x1B[2J"); // Clear Screen
+
+ printf("\x1B[?25h"); // Re-enable the cursor
+// printf("\x1B[2J"); // Clear Screen
for(;;)
{
sPassword = GetPassword();
if( (uid = ValidateUser(sUsername, sPassword)) == -1 )
{
- printf("\nInvalid username or password for '%s'\n", sUsername);
+ printf("\nInvalid username or password\n");
free(sUsername);
free(sPassword);
}
return -1;
}
- printf("pid = %i\n", pid);
-
// Spawn shell in a child process
if(pid == 0)
{