ncurses 1.0.0

Interface to the C ncurses library


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:


This package provides sub packages which can be used individually:

ncurses:acs_vars - Example application for the D ncurses library

ncurses:hellounicode - Example application for the D ncurses library

ncurses:hello_world - Example application for the D ncurses library

ncurses:key_code - Example application for the D ncurses library

ncurses:mouse_menu - Example application for the D ncurses library

ncurses:other_border - Example application for the D ncurses library

ncurses:printbold - Example application for the D ncurses library

ncurses:printw_example - Example application for the D ncurses library

ncurses:simple_color - Example application for the D ncurses library

ncurses:simple_key - Example application for the D ncurses library

ncurses:simplespectrum - Example application for the D ncurses library

ncurses:temp_leave - Example application for the D ncurses library

ncurses:win_border - Example application for the D ncurses library

ncurses:with_chgat - Example application for the D ncurses library

ncurses:form_attrib - Example application for the D ncurses library

ncurses:menu_attrib - Example application for the D ncurses library

ncurses:menu_scroll - Example application for the D ncurses library

ncurses:menu_simple - Example application for the D ncurses library

ncurses:panel_simple - Example application for the D ncurses library

ncurses:ptest - Example application for the D ncurses library

Ncurses

Description

This repository hosts D bindings for the C library ncurses, as well as some examples.

The bindings are implemented as source-only (.di files), and do not need to be compiled into a library or object files first.

Status

The main C header files are up to date with ncurses 6.3, as it is configured and packaged by Arch Linux.

C++ header files, and the termcap-related header files, are not currently translated.

Build settings

Dub configurations

Three dub configurations are made available, which select which libraries are added to be linked into your application:

  • minimal: The minimal (which is the default configuration) configurations only links the ncursesw library.

  • panels: The panels configuration additionally links the panelw library.

  • full: The full configuration additionally links the formw and menuw library.

To use a specific configuration in your projects, depend on this package by adding the following config snippet to your project's dub.sdl:

subConfiguration "ncurses" "full"

Reentrant API

ncurses provides a reentrant API. If the ncurses library you are linking against was built with the reentrant API enabled, you can enable it in the bindings by building with -version=NCURSES_REENTRANT. In dub.sdl this can be done by adding:

versions "NCURSES_REENTRANT"

Building on macOS

The stock ncurses libraries on macOS don't include the wide libraries. Thus the full ncurses version needs to be installed with Homebrew. Homebrew installs ncurses below `/usr/local/opt/ncurses`, where the dub configuration will pick it up.

First install Homebrew using the instructions on the web site, then you can add the ncurses package with

brew install ncurses
Authors:
  • Jon "ylixir" Allen
  • Dejan Lekic
  • Jude "1100110" Young
  • Vladimir Panteleev
Sub packages:
ncurses:acs_vars, ncurses:hellounicode, ncurses:hello_world, ncurses:key_code, ncurses:mouse_menu, ncurses:other_border, ncurses:printbold, ncurses:printw_example, ncurses:simple_color, ncurses:simple_key, ncurses:simplespectrum, ncurses:temp_leave, ncurses:win_border, ncurses:with_chgat, ncurses:form_attrib, ncurses:menu_attrib, ncurses:menu_scroll, ncurses:menu_simple, ncurses:panel_simple, ncurses:ptest
Dependencies:
none
Versions:
1.0.0 2023-Mar-03
0.0.149 2020-Nov-08
0.0.148 2020-Nov-06
0.0.141 2017-Jul-02
~master 2023-Mar-09
Show all 5 versions
Download Stats:
  • 0 downloads today

  • 12 downloads this week

  • 42 downloads this month

  • 26182 downloads total

Score:
2.9
Short URL:
ncurses.dub.pm