mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
32 lines
730 B
C#
32 lines
730 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace FrodeTest.Shell
|
|
{
|
|
public class Prompt
|
|
{
|
|
/// <summary>
|
|
/// Retrieves the consoleprompt for the given user.
|
|
/// </summary>
|
|
/// <param name="user"></param>
|
|
/// <returns></returns>
|
|
public static Prompt LoadPrompt(Security.User user)
|
|
{
|
|
return new Prompt(user);
|
|
}
|
|
|
|
//Private variables
|
|
private Security.User xUser = null;
|
|
|
|
private Prompt(Security.User user)
|
|
{
|
|
xUser = user;
|
|
}
|
|
|
|
public string PromptText()
|
|
{
|
|
return "[" + xUser.Username + "]>";
|
|
}
|
|
}
|
|
}
|