Coder Social home page Coder Social logo

Comments (2)

codecnotsupported avatar codecnotsupported commented on June 30, 2024

dupe of #23 SOMEHOW

@m3gat0nn4ge: For the last error, try using a slightly bigger terminal window.

Anything smaller than 97x40 will probably always lead to the same error, as the draw_infobox function currently works with fixed values:

it draws one box from offset (37,3) with width 60 (at https://github.com/xoreaxeaxeax/sandsifter/blob/master/summarize.py#L605)
it writes the help strings to y-offsets 33-39 (at https://github.com/xoreaxeaxeax/sandsifter/blob/master/summarize.py#L755 and the following lines)

So just make a window with a size of some thing slightly larger than 97x40 ( terminator will tell you in the red bar )
Still a temporary fix though, should I leave this issue open?

from sandsifter.

rlannon avatar rlannon commented on June 30, 2024

I ran into this issue when I used the summarizer the first time. It is sort of addressed in the README, under GUI:

The interface assumes the terminal is of at least a certain size; if the interface is not rendering properly, try increasing the terminal size; this can often be accomplished by decreasing the terminal font size.

The display expects the terminal to be at least a certain dimension which can cause problems. The curses library will return an error if it attempts to draw outside the bounds of the terminal window, which will happen if your terminal size is too small and/or your font size is too big. Since this error isn't addressed (not in a try/except block), there is an uncaught exception which causes the crash.

from sandsifter.

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.