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

'printf' "is not recognized as an internal or external command... #1

Closed
GarkGarcia opened this issue Dec 13, 2018 · 5 comments
Closed

Comments

@GarkGarcia
Copy link

I'm on Windows and I get the following message every time I start a hyper window (if I have hyper-init enabled):
'printf' "is not recognized as an internal or external command, operable program or batch file.

@daltonmenezes
Copy link
Owner

Hi @GarkGarcia , hyper-init clears the terminal buffer using printf "\033[H" by default, but you can set it manually adding the clearCommand: '' property within the config object. See it here

In your case you can just do this: clearCommand: 'cls'

But your issue was important because I discovered Windows doesn't concatenate commands using &&. Instead of, windows uses "&" and it needs to be fixed on hyper-init. I'll work on it and also I'll make hyper-init recognize Windows and change the clear command to cls automatically. When I have done this patch, I'll close this issue. Thanks.

@runew0lf
Copy link

any update on this?

@daltonmenezes
Copy link
Owner

Guys, I can't work on this right now. Any pull request is very welcome.

@daltonmenezes
Copy link
Owner

One of the reasons I can't work on it right now: https://www.patreon.com/daltonmenezes

I have to work on other things to feed. Without any support, PR, Patreon or Padrim, I can't devote myself to all my projects.

@nightmarlin
Copy link
Contributor

Windows CMD uses & but allows for &&, PowerShell uses ; to chain commands. A quick fix is to make a local copy of this plugin in .hyper_plugins/local, change the " && " (in /src/join-commands.js) to the correct concatenator for your normal terminal and use your local plugin by moving hyper-init to localPlugins.
I'll see what I can do about changing it to be correct for each terminal type, but no promises

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants