Skip to content

_curses.error: curses function returned NULL #65

@ghost

Description

Hello, there.

After first scrolling attempt in the opened file program crashes with next error:

Traceback (most recent call last):
  File "/home/hanskimball/.local/bin/epr", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/hanskimball/.local/lib/python3.11/site-packages/epr.py", line 1251, in main
    curses.wrapper(preread, file)
  File "/usr/lib/python3.11/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hanskimball/.local/lib/python3.11/site-packages/epr.py", line 1142, in preread
    incr, width, y, pctg, sec = reader(
                                ^^^^^^^
  File "/home/hanskimball/.local/lib/python3.11/site-packages/epr.py", line 861, in reader
    pad = curses.newpad(totlines, width + 2)  # + 2 unnecessary
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_curses.error: curses function returned NULL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions