implement pgetppid

pgetppid will aid in detecting which terminal emulator a process is running under
This commit is contained in:
Emile Clark-Boman 2025-09-28 22:37:07 +10:00
parent edeec36ffa
commit 25f1180429
4 changed files with 105 additions and 2 deletions

View file

@ -27,7 +27,7 @@ all: tests
.PHONY: tests
tests: $(BIN) $(BIN)/ct_test
$(BIN)/ct_test: $(BUILD) $(addprefix $(BUILD)/, ct_test.o term.o termio.o)
$(BIN)/ct_test: $(BUILD) $(addprefix $(BUILD)/, ct_test.o term.o termio.o pgetppid.o)
$(LD) $(LDFLAGS) -o $@ $(filter %.o, $^)
$(BUILD)/%.o: $(SRC)/%.c