Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
termion
termion
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 20
    • Merge Requests 20
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • redox-os
  • termiontermion
  • Issues
  • #177

Closed
Open
Opened Mar 12, 2020 by Alessandro Re@akiross

is_tty on raw mode stdout

Hello, while experimenting with termion I wanted to determine if stdout is a tty or not, and I noticed that in your examples the check is being done on fs::File::create("/dev/stdout").

What I find a bit unsettling is that I expected is_tty to work also on a raw mode stdout created via stdout().into_raw_mode().unwrap() as shown in other examples.

Is it possible to use the latter stdout instead of opening the file directly? Is it possible to provide the method directly on a stdout object?

Thanks

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: redox-os/termion#177