Git Product home page Git Product logo

Comments (6)

vonshednob avatar vonshednob commented on July 3, 2024 1

Yeah, should not have pushed that change 5 minutes before falling asleep, I suppose. It’s fixed!

from pter.

vonshednob avatar vonshednob commented on July 3, 2024

I made the check for xterm a bit more generic and added a configuration option for the curses timeout. It defaults to 200ms, so you might want to update your configuration file, I assume based on the 100ms you used in the patch :)

from pter.

andrei-a-papou avatar andrei-a-papou commented on July 3, 2024

I made the check for xterm a bit more generic and added a configuration option for the curses timeout.

Awesome!

I made the check for xterm a bit more generic

Yes, good idea, since pter also supports terminals with no color. I forgot about that.

from pter.

andrei-a-papou avatar andrei-a-papou commented on July 3, 2024

I've pulled the latest changes and re-built the Docker image. With esc-timeout still unset in the config, pter errors out:

[CRITICAL] Pter crashed with exception: 'int' object has no attribute 'isnumeric'
  File "/usr/local/lib/python3.11/dist-packages/pter-3.15.2.dev0-py3.11.egg/pter/curses.py", line 3119, in run_cursesui
    window.run()
  File "/usr/local/lib/python3.11/dist-packages/cursedspace-1.5.2-py3.11.egg/cursedspace/application.py", line 59, in run
    raise exception
  File "/usr/local/lib/python3.11/dist-packages/cursedspace-1.5.2-py3.11.egg/cursedspace/application.py", line 52, in run
    self.main()
  File "/usr/local/lib/python3.11/dist-packages/pter-3.15.2.dev0-py3.11.egg/pter/curses.py", line 1655, in main
    curses.set_escdelay(self.conf.number(common.SETTING_GROUP_GENERAL,
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/pter-3.15.2.dev0-py3.11.egg/pter/configuration.py", line 152, in number
    if value.isnumeric():
       ^^^^^^^^^^^^^^^

from pter.

andrei-a-papou avatar andrei-a-papou commented on July 3, 2024

When esc-timeout is set, the crash goes away.

from pter.

andrei-a-papou avatar andrei-a-papou commented on July 3, 2024

Works great, thank you!

from pter.

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.