feat: implement new IPC layer

This commit is contained in:
daniel committed 2026-04-01 13:11:03 +02:00
1 parent 36329504dc
commit fb9885819b
34 files changed
+3210 -897

No files matched your search

+3
View File
@@ -66,6 +66,9 @@ namespace Montauk {
// If the process is redirected to a GUI terminal, return those dimensions
auto* proc = Sched::GetCurrentProcessPtr();
if (proc && proc->redirected) {
if (proc->termCols > 0 && proc->termRows > 0) {
return ((uint64_t)proc->termRows << 32) | ((uint64_t)proc->termCols & 0xFFFFFFFF);
}
auto* target = GetRedirTarget(proc);
if (target && target->termCols > 0 && target->termRows > 0) {
return ((uint64_t)target->termRows << 32) | ((uint64_t)target->termCols & 0xFFFFFFFF);