[gnome-builder] pipeline: set xterm-256color with PTY
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] pipeline: set xterm-256color with PTY
- Date: Tue, 23 Jan 2018 10:39:44 +0000 (UTC)
commit fa16cd619726b21b7590061b7467a9fda5abaa7a
Author: Christian Hergert <chergert redhat com>
Date: Tue Jan 23 02:39:03 2018 -0800
pipeline: set xterm-256color with PTY
If we are attaching a PTY, we should set the $TERM for the environment.
src/libide/buildsystem/ide-build-pipeline.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/libide/buildsystem/ide-build-pipeline.c b/src/libide/buildsystem/ide-build-pipeline.c
index 2d59396a0..dfdd05ca3 100644
--- a/src/libide/buildsystem/ide-build-pipeline.c
+++ b/src/libide/buildsystem/ide-build-pipeline.c
@@ -2529,6 +2529,9 @@ ide_build_pipeline_attach_pty (IdeBuildPipeline *self,
ide_subprocess_launcher_take_stdin_fd (launcher, dup (self->pty_slave));
ide_subprocess_launcher_take_stdout_fd (launcher, dup (self->pty_slave));
ide_subprocess_launcher_take_stderr_fd (launcher, dup (self->pty_slave));
+
+ /* Ensure a terminal type is set */
+ ide_subprocess_launcher_setenv (launcher, "TERM", "xterm-256color", FALSE);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]