-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
clear command doesn't work with OS X 10.10.3: "unknown terminal type" #1368
Comments
Looks like an issue with my ncurses package. |
This should be fixed. |
I am trying to use
FYI - |
|
I'm having the same issue on an install of Miniconda2 - has the ncurses bug resurfaced? cc @blink1073 re ContinuumIO/anaconda-issues#331 I get the following output:
Something is conflicting in the path, because if I append (instead of prepend) the miniconda bin directory, then clear works fine, but then everything else in the path is taking precedence. Same issue here, but this doesn't solve for me ContinuumIO/anaconda-issues#994 |
Doing the following fixed for me, so definitely something with the ncurses package again.
|
Terminal.app is setting the TERM environment variable according to the menu entry, so exporting it does not address the problem. (Setting TERM has no effect on the behavior of Terminal.app, but that is a different mattern). OSX (and most Unix-like) systems use terminfo for finding terminal information. If the environment variable TERMINFO is set, the ncurses library uses that path in preference to the compiled-in location (which is supposed to match the installed-location). Your shell may have set the TERMINFO variable (for instance, by copying settings from another machine). Removing it from the shell initialization (such as ~/.profile or ~/.bashrc) is a way to fix that. Alternatively, you may (as in tput: unknown terminal “xterm-256color”) have installed some not-mentioned package which conflicts with the ncurses libraries on the system. In that discussion, it seems that someone built ncurses libraries which had compiled-in default for TERMINFO to a non-existent location. For that case, I pointed out that the OP could set TERMINFO to tell the broken libraries where to find the terminal database. That is,
would be a first step. |
macbook clear works again after adding below in .bash_profile Finally ;-) |
I ran into this today on OSX's Z Shell (ZSh). (I've had so many issues with Zshell since upgrading to Catalina). Setting TERMINFO as an environment variable
works, but obviously is only temporary - as @PKHG suggested, adding to your ~/.profile makes the fix permanent - but for Z shell, instead of the |
Hi there, thank you for your contribution to Conda! This issue has been automatically locked since it has not had recent activity after it was closed. Please open a new issue if needed. |
I have a brand new Mac Book Pro with very little customization. I have Anaconda 2.2.0 and
conda info -a
reports:The
clear
command does not work properly for me:I am about to rename it so I get my system clear back, but I thought I would report this behavior first.
The text was updated successfully, but these errors were encountered: