Skip to content

NCurses should perhaps be a separate package #20

@jmichel7

Description

@jmichel7

It seems to me that the submodule NCurses would see more uses and have more developers if it was a separate package from TextUserInterfaces. I would be willing to help do that and write documentation for the resulting package if you agree it is a reasonable idea. There is one thing glaringly missing, the constant stdscr. I do not know if it is possible to give a reference to something in libncurses, but it is always possible to have in the package a global constant

stdscr::Ptr{WINDOW}=0

and since stdscr is the result of initscr, a way would be to rename the current initscr to _initscr and have

function initscr()
  NCurses.load_ncurses()
  global stdscr=_initscr()
  stdscr
end

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