Giter Club home page Giter Club logo

macos-terminal-size's People

Contributors

leonardodino avatar qix- avatar rvagg avatar sindresorhus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

qix- rvagg

macos-terminal-size's Issues

Any chance of getting the binaries signed for the term-size package?

Hey @sindresorhus, we're dealing with the macOS notarization drama for the Node.js .pkg downloadables. We have to codesign binaries and packagesign the .pkg files (we've always done these) and now we have to notarize the .pkg files and staple the notarization in order for them to get past the new Gatekeeper on macOS Catalina. Otherwise, users get an error when trying to install.

Node bundles npm which bundles boxen which bundles term-size which bundles this executable in vendor/macos. When we notarize the Node.js .pkg files we get warnings from Apple about this executable being unsigned. Apparently next month those warnings are going to turn in to fatal errors.

Before we explore alternatives I wanted to check whether there was any chance you could start codesigning the binary when you vendor it in to term-size? It requires an Apple Developer membership to get a certificate and some hoop-jumping but can be scripted. "no" is a reasonable response IMO but I thought we ought to check.

Ref: nodejs/node#31459
Ref: https://gist.github.com/rvagg/d9befda67accfe1355f7cf6da399980b

What is the rational?

I'm curious what use case you had where the terminal size was needed but not available, such as in a non-interactive shell?

BTW, you can use the POSIX standard utility stty , on everything but Windows from what I can tell, to get the terminal size.

Subwindow of KiTTY

$ stty size
35 128
$ stty size &> x; cat x
35 128

If you just want the cols

$ stty size | cut -d' ' -f2
128

iTerm2

$ stty size
25 78
$ stty size &> x; cat x
25 78

tmux in iTerm2

$ tput cols
78
$ tput lines
24
$ stty size
24 78
$ stty size &> x; cat x
24 78

Apple Terminal

$ tput cols 
120
$ tput lines
36
$ stty size            
36 120
$ stty size &> x; cat x
36 120

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.