daily update on 20241129 by nitload youmu, frameworkDialogue added

This commit is contained in:
Nitload
2024-11-29 05:47:53 +08:00
parent 6e2f93b053
commit 7c8d462ca5
2190 changed files with 49578 additions and 72052 deletions
@@ -0,0 +1,47 @@
using System;
using System.Globalization;
using System.IO.Pipes;
using Terminal.Gui;
namespace StgSharpTerminalDialogue
{
internal partial class Program
{
private static AnonymousPipeClientStream _callerClientPipe, _callerServerPipe;
static void Main(string[] args)
{
if (args.Length != 2) {
return;
}
ConfigurationManager.RuntimeConfig = """{ "Theme": "Light" }""";
_callerClientPipe = new AnonymousPipeClientStream(PipeDirection.In,args[0]);
_callerServerPipe = new AnonymousPipeClientStream(PipeDirection.Out, args[1]);
using (StreamReader clientReader = new StreamReader(_callerClientPipe))
using (StreamWriter clientSender = new StreamWriter(_callerServerPipe))
{
clientSender.AutoFlush = true;
string temp = string.Empty;
while (!temp!.Contains("exit "))
{
temp = clientReader.ReadLine()!;
temp = temp??string.Empty;
if (temp == null) continue;
int index = temp.IndexOf(' ');
if (index == -1) continue;
string command = temp.Substring(0, index);
string operand = temp.Substring(index + 1);
}
}
}
}
}