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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mpasternacki
Copy link
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
Contributor Author

bump?

@philips
Copy link
Contributor

philips commented Feb 16, 2015

/cc @eyakubovich

@philips
Copy link
Contributor

philips commented Feb 16, 2015

Err, /cc @vcaputo

@vcaputo
Copy link
Contributor

vcaputo commented Feb 19, 2015

@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
Copy link
Contributor

philips commented Feb 26, 2015

@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
Copy link
Contributor

philips commented Apr 1, 2015

Ping.

@vbatts
Copy link
Contributor

vbatts commented Apr 23, 2015

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

@vbatts
Copy link
Contributor

vbatts commented Apr 23, 2015

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