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

Support for Git Bash (xTerm / mintty) #22

Closed
Velociraptor45 opened this issue Sep 8, 2022 · 0 comments
Closed

Support for Git Bash (xTerm / mintty) #22

Velociraptor45 opened this issue Sep 8, 2022 · 0 comments

Comments

@Velociraptor45
Copy link

Hey there,

could you add support for the Git Bash console (that you get by default when installing on Windows)?
Getting the size has basically been done (I shamelessly stole most of this from here, around line 90)

const {execSync} = require('child_process');
var buf = execSync('tput cols && tput lines', {stdio: ['ignore', 'pipe', process.stderr]});
var sz = buf.toString().trim().split('\n');
if(sz && sz.length == 2){
    return create(sz[0], sz[1]);
}

I can create a PR if you want, however I'm not really a js-dev, so you might want to do this yourself.

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

1 participant