GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: Suppress dumb terminal warning when no streams are TTYs by gnodet · Pull Request #1703 · jline/jline3

Conversation

@gnodet

@gnodet gnodet commented Mar 18, 2026

Copy link
Copy Markdown
Member

Summary

  • Suppress the "Unable to create a system terminal" warning when providers are available but detect that no streams are TTYs (expected in CI environments)
  • Keep the warning when no providers could be loaded at all (can't determine TTY status, indicates a genuine configuration issue)
  • Add tests verifying both scenarios

Context

When JLine is used in CI environments (like GitHub Actions), the warning "Unable to create a system terminal, creating a dumb terminal" is emitted even though falling back to a dumb terminal is the expected behavior when no TTY is available. This creates noise in build logs (e.g., https://github.com/apache/camel/actions/runs/23203983845/job/67434869843#step:11:68).

The fix distinguishes three cases:

  • CI (no TTY), providers loaded → noTty=true, providers not empty → warning suppressed
  • Real terminal, providers failed to load → providers.isEmpty()=true → warning fires
  • Real terminal, providers loaded, but terminal creation failed → noTty=false → warning fires

Test plan

  • DumbTerminalWarningTest.testNoWarningWhenNoTtyAndProvidersAvailable — verifies no warning in CI-like environments
  • DumbTerminalWarningTest.testWarningWhenNoProvidersLoaded — verifies warning when no providers are available

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gnodet
fix: Suppress dumb terminal warning when no streams are TTYs
b3bf72f
When running in environments without a TTY (e.g., CI), the "Unable to
create a system terminal" warning is expected and unhelpful. This change
suppresses the warning when providers are available but detect that no
streams are TTYs, while still warning when no providers could be loaded
(indicating a genuine configuration issue).
@gnodet gnodet mentioned this pull request Mar 18, 2026
fix: Suppress dumb terminal warning when no streams are TTYs (backport) #1704
Merged
2 tasks done
@gnodet
gnodet merged commit beabe4e into master Mar 18, 2026
9 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@gnodet gnodet mentioned this pull request Mar 18, 2026
[build] Set TERM=dumb in CI to suppress JLine terminal warnings apache/camel#22067
Merged
1 task
@gnodet gnodet added this to the 4.0.7 milestone Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

4.0.7

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@gnodet
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.