-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Character Set Not Supported #963
Comments
Unset TERM before running fzf. > echo %TERM%
xterm-256color
> fzf
character set not supported
> set "TERM="
> fzf |
> echo %TERM_PROGRAM%
Hyper cmd.exe, powershell.exe, sh.exe, and mintty.exe don't use it and none of them set it to |
I could run it after unsetting Except in Git Bash where it hangs forever instead of outputting anything. I wonder who set this environment variable to |
const baseEnv = Object.assign({}, process.env, {
LANG: app.getLocale().replace('-', '_') + '.UTF-8',
TERM: 'xterm-256color',
TERM_PROGRAM: productName,
TERM_PROGRAM_VERSION: version
}, envFromConfig); Hyper should not set |
Uncommenting (prepend |
@Chinggis6 You can unset module.exports = {
config: {
shell: '', // defaults to cmd.exe if empty
shellArgs: [],
env: {
// required in Windows so sh.exe and bash.exe can set it to cygwin
// fzf supports only unset TERM and TERM=cygwin
TERM: '',
},
},
} |
This problem happens in all PowerShells from Windows 10 on since # Alias fzf to workaround https://github.com/junegunn/fzf/issues/963
function fzf() {
try {
$fzf = Get-Command -CommandType Application fzf -ErrorAction Stop
if (Test-Path Env:\TERM) {
$saveTERM = $Env:TERM
$Env:TERM = ""
}
& $fzf @Args
}
finally {
if (Test-Path Variable:\saveTERM) {
$Env:TERM = $saveTERM
}
}
} |
@tapuzzo-fsi What's the value of |
I do have the environment variable set in my Windows environment. But I came by it honestly based on reading about the new Windows ConEmu support for 24 bit color. I can't track down exactly where it came from but I seems to have sprung from the new 24 bit RGB console support in Windows 10 Redstone 3.
(I'm beginning to think I'm insane but I could swear that I read somewhere that PowerShell is going to start defaulting |
This is an issue with openssh behavior with Can you specify which terminal you are using to run powershell without a parent shell (cmd.exe, bash)? As for ConEmu, it has supported 24-bit (via hooking) before Windows 10 and I rely on it on Windows 8.1 for 24-bit colorschemes on terminal Vim. |
For regular Win 10 builds without WSL, |
If you came here because of fzf.vim (over ssh), add this to the top of your
And this at the bottom:
|
Can anyone a provide a list of dependencies and steps (and example if possible) to replicate this problem? If it's just (neo)vim + powershell + ssh, where does each program run and what's the combination? Is it powershell as the initial shell to run ssh and then run (neo)vim on a Unix-like OS for |
Ssh from macos -> windows openssh with pwsh set as the default shell. I did
not test on the machine itself pre-fix yet, but with that order of programs
$Term=xterm-256colors
…On Mon, Aug 26, 2019, 22:05 Jan Edmund Lazo ***@***.***> wrote:
Can anyone a provide a list of dependencies and steps (and example if
possible) to replicate this problem?
If it's just (neo)vim + powershell + ssh, where does each program run and
what's the combination? Is it powershell as the initial shell to run ssh
and then run (neo)vim on a Unix-like OS for :FZF? Is powershell the login
shell on the remote OS? If the request is to always ignore TERM on
Windows, it can be done if tcell can't use the terminfo for Windows
terminals, at least for ConEmu. Neovim 0.4 terminal uses it so
termguicolors works now out-of-the-box.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#963?email_source=notifications&email_token=AADVTU4BXDSBY4HTREOMCI3QGSDWTA5CNFSM4DR622K2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5GHHYI#issuecomment-525104097>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADVTU2WTZT2PFX7W6FUPWDQGSDWTANCNFSM4DR622KQ>
.
|
apart from the above
character set not supported
I installed
fzf
through chocolatey on Windows 10.Issuing the following failed:
as I found here.
The text was updated successfully, but these errors were encountered: