Skip to content

mvdeleteln does not work (quick workaround) #36

Closed

Description

@ttoommxx

As the title says, mvdeleteln does not work and gives the following message

AttributeError: /lib64/libncursesw.so.6: undefined symbol: mvwdeleteln

I checked on the man page and such method simply does not exists, so how about substituting it with

def mvdeleteln( y, x ):
    old_y, old_x = unicurses.getyx( stdscr )
    unicurses.move( y, x )
    unicurses.deleteln()
    unicurses.move( old_y, old_x )

Activity

  1. GiorgosXou commented on Mar 10, 2024

    @GiorgosXou
    Member

    I checked on the man page and such method simply does not exists

    True, but PDCurses has it.

    so how about substituting it with ...

    Close enough! you should change mvwdeleteln instead of mvdeleteln. Something like this could work:

    def mvwdeleteln(scr_id, y, x):
        if NCURSES:
            old_y, old_x = getyx( stdscr )
            lib1.wmove(scr_id, y, x)
            lib1.wdeleteln(scr_id)
            lib1.wmove(scr_id, old_y, old_x)
        else:
            return lib1.mvwdeleteln(scr_id, y, x)

    (^^^ not tested. Going to sleep right now, it's too late here 😴)

  2. ttoommxx commented on Mar 10, 2024

    @ttoommxx
    ContributorAuthor

    Great, will try to commit tonight :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions