]> git.ipfire.org Git - pakfire.git/commit
pty: Move filtering escape characters to the PTY
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Feb 2025 17:04:32 +0000 (17:04 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Feb 2025 17:07:05 +0000 (17:07 +0000)
commit8328b86e77704c11e60e53995c9c6488d16bc268
tree8c64ad4779b30bb727750477108a048f7ace6c42
parent76182c27ae8d9f791c9088f0171287443f51aff3
pty: Move filtering escape characters to the PTY

This is probably the place where this should live. We are now processing
cursor positioning events inside the same line and we are filtering out
any escape sequences that we don't know.

It is a bit sad to lose the colors, but I don't have to have two places
where we process this. At least this is going to be more robust and we
can be sure to not forward anything malicious to the controlling
terminal.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/log_file.c
src/pakfire/pty.c