Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warn when TERM=dumb is set? #9093

Closed
tknopp opened this issue Nov 21, 2014 · 9 comments
Closed

warn when TERM=dumb is set? #9093

tknopp opened this issue Nov 21, 2014 · 9 comments
Labels
needs decision A decision on this change is needed status:help wanted Indicates that a maintainer wants help on an issue or pull request stdlib:REPL Julia's REPL (Read Eval Print Loop)

Comments

@tknopp
Copy link
Contributor

tknopp commented Nov 21, 2014

This is from a colleague of mine, which has issues with the current Windows installers. Attached is a screenshot. Issues:

  • the prompt is not green
  • the ; and ? mode do not work

And actually Pkg.init() hangs forever, which might be related but also can have other reasons.

Pinging one of our windows experts: @tkelman

snipimage

@tkelman
Copy link
Contributor

tkelman commented Nov 21, 2014

Is ENV["TERM"] set by any chance?

@MandyA
Copy link

MandyA commented Nov 21, 2014

Hi there, ENV["TERM"] results in "dumb".

@tknopp
Copy link
Contributor Author

tknopp commented Nov 21, 2014

What does dumb mean, is the julia prompt still there? Might be best to post a screenshot, simply drag the picture into the comment field. Thanks!

@tkelman
Copy link
Contributor

tkelman commented Nov 21, 2014

See #6560 and #6428 - can you recall why that environment variable is set? Are you an emacs user by any chance? If you can unset that environment variable or change it to something different (outside of Julia) I believe you should get the full-featured REPL back (after restarting Julia).

@MandyA
Copy link

MandyA commented Nov 21, 2014

Thanks a lot, that did the trick. I can't figure out why the variable was set, I'm not using emacs on the machine.

@tknopp
Copy link
Contributor Author

tknopp commented Nov 21, 2014

Ok thanks Tony! Should we close this or should there be checks in Julia to warn about this issue?

@tkelman
Copy link
Contributor

tkelman commented Nov 21, 2014

I think it's intended behavior to be able to request the basic REPL for scenarios like emacs where the LineEditREPL would cause problems. We could maybe test for TERM being explicitly set to dumb which I guess was assumed to not happen unless you're asking for it?

@ivarne
Copy link
Sponsor Member

ivarne commented Nov 21, 2014

Since the banner is still printed, it might make sense to indicate that you are using a more limited REPL.

@vtjnash vtjnash changed the title Current Windows Installers (3.2.2) TERM=dumb makes repl dumb Nov 22, 2014
@JeffBezanson JeffBezanson added domain:randomness Random number generation and the Random stdlib stdlib:REPL Julia's REPL (Read Eval Print Loop) and removed domain:randomness Random number generation and the Random stdlib labels Nov 25, 2014
@JeffBezanson JeffBezanson changed the title TERM=dumb makes repl dumb warn when TERM=dumb is set? Nov 25, 2014
@JeffBezanson JeffBezanson added the needs decision A decision on this change is needed label Nov 25, 2014
@vtjnash
Copy link
Sponsor Member

vtjnash commented Nov 30, 2014

it seems like a reasonable thing to warn about. less already takes this approach:

~$ export TERM=dumb
~$ echo | less     
WARNING: terminal is not fully functional
-  (press RETURN)
~$ 

@ivarne ivarne added the status:help wanted Indicates that a maintainer wants help on an issue or pull request label Nov 30, 2014
TravisBarryDick added a commit to TravisBarryDick/julia that referenced this issue Dec 15, 2014
TravisBarryDick added a commit to TravisBarryDick/julia that referenced this issue Dec 15, 2014
tkelman added a commit that referenced this issue Dec 21, 2014
Added warning message when ENV["TERM"]=="dumb". Resolves #9093
tkelman pushed a commit that referenced this issue Dec 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs decision A decision on this change is needed status:help wanted Indicates that a maintainer wants help on an issue or pull request stdlib:REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

6 participants