Skip to content
This repository was archived by the owner on Aug 14, 2020. It is now read-only.

Pass TERM variable to application's environment if appropriate#187

Open
mpasternacki wants to merge 1 commit into
appc:masterfrom
3ofcoins:specify-term-envvar
Open

Pass TERM variable to application's environment if appropriate#187
mpasternacki wants to merge 1 commit into
appc:masterfrom
3ofcoins:specify-term-envvar

Conversation

@mpasternacki

Copy link
Copy Markdown
Contributor

Currently, $TERM is always unset, which is problematic when one attempts to work interactively within a container. Since runtime is responsible for providing stdin/stdout/stderr to the app, it should also set $TERM if application runs on a terminal device.

@mpasternacki

Copy link
Copy Markdown
Contributor Author

bump?

@philips

philips commented Feb 16, 2015

Copy link
Copy Markdown
Contributor

/cc @eyakubovich

@philips

philips commented Feb 16, 2015

Copy link
Copy Markdown
Contributor

Err, /cc @vcaputo

@vcaputo

vcaputo commented Feb 19, 2015

Copy link
Copy Markdown
Contributor

@mpasternacki Seems reasonable to me, as long as it can be unset for non-interactive containers.

Things quickly get muddy in the context of pods though, are we placing a requirement on the ACE to provide a pty per application for interactive containers having multiple apps? (think screen/tmux) They can't all share a pty if they do termio, and caring about the TERM variable implies termio is happening.

@philips

philips commented Feb 26, 2015

Copy link
Copy Markdown
Contributor

@mpasternacki Yes, can you give an example of what you would like to do? Do you want a container with just a single process and attach it to the current TERM?

@philips

philips commented Apr 1, 2015

Copy link
Copy Markdown
Contributor

Ping.

@vbatts

vbatts commented Apr 23, 2015

Copy link
Copy Markdown
Contributor

detecting tty/pty is not impossible, but can be tricky. Though, $TERM is something I would expect to pass to a container...

@vbatts

vbatts commented Apr 23, 2015

Copy link
Copy Markdown
Contributor

Is seems almost more sane to just have a default $TERM like screen(1) does, and allow users to override it.

sttts pushed a commit to sttts/spec that referenced this pull request May 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants