canonical / canonical/pycloudlib

Feature Idea: Support pseudo terminal

Open
#307 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
22
Forks
42
PR merge metrics
No merged PRs in 30d

Description

We recently ran into a case where we'd like to test behavior that is different depending on whether we detect a TTY or not. Currently pycloudlib doesn't [set up a pseudo terminal](https://docs.paramiko.org/en/stable/api/channel.html?highlight=pty#paramiko.channel.Channel.get_pty) for any commands and has no option to do so, so we can't use pycloudlib for this test.

pycloudlib's current behavior is definitely the right default, but it might be useful to support "pty" as an option in pycloudlib for testing this kind of thing.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.