GithubHelp home page GithubHelp logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
This is an interesting bug. It seems the terminal fails to report width and 
height.
It works great under Windows 7 (and previous versions); but reading up on it it 
seems things have changed slightly in Windows 8 and people use yet another 
method to get the terminal size.

I will look into it shortly.

/Adam Waldenberg

Original comment by [email protected] on 22 Jul 2013 at 2:37

  • Changed title: gitinspector crashed on Windows 8
  • Changed state: Started
  • Added labels: OpSys-Windows, Priority-Critical
  • Removed labels: Priority-Medium

from gitinspector.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
I don't have a Windows 8 installation; so you will have to assist me a little.

Reading around there seems to be a method used in conjunction with tput. Could 
you check if the tput command is available in your terminal in Windows 8? In 
that case, that command could be used to fetch the terminal size, executing the 
commands;

tput cols
tput lines

... should return the number of columns and lines of the current terminal.

/Adam Waldenberg

Original comment by [email protected] on 22 Jul 2013 at 1:06

from gitinspector.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
Unfortunately, neither of them works in PowerShell or cmd prompt

PS C:\Users\ZhijieWang> tput cols
tput : The term 'tput' is not recognized as the name of a cmdlet, function, 
script file, or operable program. Che
the spelling of the name, or if a path was included, verify that the path is 
correct and try again.
At line:1 char:1
+ tput cols
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (tput:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\ZhijieWang> tput lines
tput : The term 'tput' is not recognized as the name of a cmdlet, function, 
script file, or operable pro
the spelling of the name, or if a path was included, verify that the path is 
correct and try again.
At line:1 char:1
+ tput lines
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (tput:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\ZhijieWang>


Original comment by [email protected] on 22 Jul 2013 at 2:26

from gitinspector.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
This issue was closed by revision 9b5e82bc2cdf.

Original comment by [email protected] on 22 Jul 2013 at 11:10

  • Changed state: Fixed

from gitinspector.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
The terminal now falls back to default size (80*25) if the size of the terminal 
could not be determined. See the revision above for more information.

This is the correct behavior anyway (even if it shouldn't fail). Reading up on 
it the current method *SHOULD* work under Windows 8 as well. Something in your 
environment probably makes it fail. Maybe some missing modules in the Python 
installation? I will add some error printouts to stderr; when the terminal size 
can't be determined for some reason, so that it is easier to do something about 
it.

/Adam Waldenberg

Original comment by [email protected] on 22 Jul 2013 at 11:16

from gitinspector.

Related Issues (20)

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.