Get process betterGet shell somewhat working

This commit is contained in:
2025-06-26 17:19:51 -05:00
parent e4f75b69a6
commit 55408a3f1b
9 changed files with 349 additions and 48 deletions

View File

@ -1,12 +1,19 @@
#pragma once
#include <vector>
#include <string>
#include "TessesFramework/Streams/Stream.hpp"
#include "TessesFramework/HiddenField.hpp"
#include <signal.h>
#if defined(_WIN32)
#define SIGKILL 9
#endif
namespace Tesses::Framework::Platform {
class Process {
private:
HiddenField hidden;
bool exited = false;
int exitCode=0;
public:
std::string name;
std::vector<std::string> args;
@ -16,6 +23,8 @@ class Process {
bool redirectStdIn=false;
bool redirectStdOut=false;
bool redirectStdErr=false;
bool HasExited();
void CloseStdInNow();
//YOU ARE RESPONSABLE FOR FREEING THIS STREAM OBJECT

View File

@ -35,6 +35,8 @@
#include "Serialization/Json.hpp"
#include "Serialization/SQLite.hpp"
#include "Platform/Environment.hpp"
#include "Platform/Process.hpp"
#include "Text/StringConverter.hpp"
#include "SDL2/FontCache.hpp"
#include "SDL2/Stream.hpp"
#include "SDL2/GUI.hpp"
#include "SDL2/GUI.hpp"