Skip to content
Tom edited this page Apr 8, 2018 · 1 revision

Welcome to the csharp-ncurses wiki!

Tips / Troubleshooting

Getting a copy of the ncurses library

  • libncursesw6.dll v6.1 is available here as of 04-2018.
    • Place it somewhere that features in %PATH%.
    • Reference it in ..\csharp-ncurses\csharp-ncurses\NativeMethods.cs

git-cmd.exe

MinTTY (what git-bash.exe wraps) launches Bash with $TERM=xterm, $TERMINFO=, and can run the Hello World sample, but it seems that git-cmd.exe, when launching Bash, requires setting $TERMINFO. You may encounter the latter scenario when using ConEmu with Git for Windows, which you can read about in the ConEmu documentation. Pointing ncurses to the Cygwin terminfo file ("C:\Program Files\Git\usr\lib\terminfo\63\cygwin") via $TERMINFO seems to be the key: export TERMINFO="C:\Program Files\Git\usr\lib\terminfo".

Terminfo is a data base describing terminals, used by screen-oriented programs such as nvi(1), rogue(1) and libraries such as curses(3X). Terminfo describes terminals by giving a set of capabilities which they have, by specifying how to perform screen operations, and by specifying padding requirements and initialization sequences. This describes ncurses version 5.7 (patch 20090207). - https://linux.die.net/man/5/terminfo

Without setting $TERMINFO, you may encounter the error Error opening terminal: cygwin.

Clone this wiki locally