treasurechest/cli/ui/interfaces/getmessage.cs
2020-05-23 04:51:17 -05:00

28 lines
600 B
C#

using treasurechest.STDIOWrapper;
using System;
namespace treasurechestCLI{
internal class GetMessage{
internal static string getTypedMessage(){
translations.Strings strings = new translations.Strings();
string message = "";
string line = "";
STDIO.O(strings.ENTER_MESSAGE_UNTIL_DONE);
while (true){
line = Console.ReadLine();
if (line.Equals("-q")){
break;
}
message += line;
}
return message;
}
}
}