[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6622":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},6622,"notcurses","dankamongmen\u002Fnotcurses","dankamongmen","blingful character graphics\u002FTUI library. definitely not curses.","https:\u002F\u002Fnick-black.com\u002Fdankwiki\u002Findex.php\u002FNotcurses",null,"C",4568,153,33,303,0,3,13,73,28.56,"Other",false,"master",true,[26,27,28,29,30],"c","cli","ncurses","terminal","terminal-emulators","2026-06-12 02:01:27","# Notcurses: blingful TUIs and character graphics\n\n**What it is**: a library facilitating complex TUIs on modern terminal\nemulators, supporting vivid colors, multimedia, threads, and Unicode to the\nmaximum degree possible. [Things](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=dcjkezf1ARY) can be done with\nNotcurses that simply can't be done with NCURSES. It is furthermore\nfast as shit. **What it is not**: a source-compatible X\u002FOpen Curses implementation, nor a\nreplacement for NCURSES on existing systems.\n\n\u003Cp align=\"center\">\n\u003Ca href=\"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=dcjkezf1ARY\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fdankamongmen\u002Fnotcurses\u002Fgh-pages\u002Fnotcurses-logo.png\" alt=\"setting the standard (hype video)\"\u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\nfor more information, see [dankwiki](https:\u002F\u002Fnick-black.com\u002Fdankwiki\u002Findex.php\u002FNotcurses)\nand the [man pages](https:\u002F\u002Fnotcurses.com). in addition, there is\n[Doxygen](https:\u002F\u002Fnotcurses.com\u002Fhtml\u002F) output.\ni wrote a coherent [guidebook](https:\u002F\u002Fnick-black.com\u002Fhtp-notcurses.pdf), which is available for\nfree download (or [paperback purchase](https:\u002F\u002Famazon.com\u002Fdp\u002FB086PNVNC9)).\n\ni've not yet added many documented examples, but [src\u002Fpoc\u002F](https:\u002F\u002Fgithub.com\u002Fdankamongmen\u002Fnotcurses\u002Ftree\u002Fmaster\u002Fsrc\u002Fpoc)\nand [src\u002Fpocpp\u002F](https:\u002F\u002Fgithub.com\u002Fdankamongmen\u002Fnotcurses\u002Ftree\u002Fmaster\u002Fsrc\u002Fpocpp)\ncontain many small C and C++ programs respectively. `notcurses-demo` covers\nmost of the functionality of Notcurses.\n\n**If you're running Notcurses applications in a Docker, please consult\n\"[Environment notes](#environment-notes)\" below.**\n\n\u003Ca href=\"https:\u002F\u002Frepology.org\u002Fproject\u002Fnotcurses\u002Fversions\">\n\u003Cimg src=\"https:\u002F\u002Frepology.org\u002Fbadge\u002Fvertical-allrepos\u002Fnotcurses.svg\" alt=\"Packaging status\" align=\"right\">\n\u003C\u002Fa>\n\n![Linux](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F-Linux-grey?logo=linux)\n![FreeBSD](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F-FreeBSD-grey?logo=freebsd)\n![Windows](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F-Windows-grey?logo=windows)\n![macOS](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F-macOS-grey?logo=macos)\n\n[![Linux](https:\u002F\u002Fgithub.com\u002Fdankamongmen\u002Fnotcurses\u002Factions\u002Fworkflows\u002Fubuntu_test.yml\u002Fbadge.svg?branch=master)](https:\u002F\u002Fgithub.com\u002Fdankamongmen\u002Fnotcurses\u002Factions\u002Fworkflows\u002Fubuntu_test.yml?query=branch%3Amaster)\n[![macOS](https:\u002F\u002Fgithub.com\u002Fdankamongmen\u002Fnotcurses\u002Factions\u002Fworkflows\u002Fmacos_test.yml\u002Fbadge.svg?branch=master)](https:\u002F\u002Fgithub.com\u002Fdankamongmen\u002Fnotcurses\u002Factions\u002Fworkflows\u002Fmacos_test.yml?query=branch%3Amaster)\n[![Windows](https:\u002F\u002Fgithub.com\u002Fdankamongmen\u002Fnotcurses\u002Factions\u002Fworkflows\u002Fwindows_test.yml\u002Fbadge.svg?branch=master)](https:\u002F\u002Fgithub.com\u002Fdankamongmen\u002Fnotcurses\u002Factions\u002Fworkflows\u002Fwindows_test.yml?query=branch%3Amaster)\n\n[![pypi_version](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fnotcurses?label=pypi)](https:\u002F\u002Fpypi.org\u002Fproject\u002Fnotcurses)\n[![crates.io](https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fv\u002Flibnotcurses-sys.svg)](https:\u002F\u002Fcrates.io\u002Fcrates\u002Flibnotcurses-sys)\n\n[![Matrix](https:\u002F\u002Fimg.shields.io\u002Fmatrix\u002Fnotcursesdev:matrix.org?label=matrixchat)](https:\u002F\u002Fapp.element.io\u002F#\u002Froom\u002F#notcursesdev:matrix.org)\n[![Sponsor](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F-Sponsor-red?logo=github)](https:\u002F\u002Fgithub.com\u002Fsponsors\u002Fdankamongmen)\n\n## Introduction\n\nNotcurses abandons the X\u002FOpen Curses API bundled as part of the Single UNIX\nSpecification. For some necessary background, consult Thomas E. Dickey's\nsuperb and authoritative [NCURSES FAQ](https:\u002F\u002Finvisible-island.net\u002Fncurses\u002Fncurses.faq.html#xterm_16MegaColors).\nAs such, Notcurses is not a drop-in Curses replacement.\n\nWherever possible, Notcurses makes use of the Terminfo library shipped with\nNCURSES, benefiting greatly from its portability and thoroughness.\n\nNotcurses opens up advanced functionality for the interactive user on\nworkstations, phones, laptops, and tablets, possibly at the expense of e.g.\nsome industrial and retail terminals. Fundamentally, Curses assumes the minimum\nand allows you (with effort) to step up, whereas Notcurses assumes the maximum\nand steps down (by itself) when necessary. The latter approach probably breaks\non some older hardware, but the former approach results in new software looking\nlike old hardware.\n\nWhy use this non-standard library?\n\n* Thread safety, and efficient use in parallel programs, has been a design\n  consideration from the beginning.\n\n* A more orderly surface than that codified by X\u002FOpen: Exported identifiers are\n  prefixed to avoid common namespace collisions. Where reasonable,\n  `static inline` header-only code is used. This facilitates compiler\n  optimizations, and reduces loader time. Notcurses can be built without its\n  multimedia functionality, requiring a significantly lesser set of dependencies.\n\n* All APIs natively support the Universal Character Set (Unicode). The `nccell`\n  API is based around Unicode's [Extended Grapheme Cluster](https:\u002F\u002Funicode.org\u002Freports\u002Ftr29\u002F) concept.\n\n* Visual features including images, fonts, video, high-contrast text, sprites,\n  and transparent regions. All APIs natively support 24-bit color, quantized\n  down as necessary for the terminal.\n\n* Portable support for bitmapped graphics, using Sixel, Kitty,\n  and even the Linux framebuffer console.\n\n* Support for unambiguous [keyboard protocols](https:\u002F\u002Fsw.kovidgoyal.net\u002Fkitty\u002Fkeyboard-protocol\u002F).\n\n* \"TUI mode\" facilitates high-performance, non-scrolling, full-screen\n  applications. \"CLI mode\" supports scrolling output for shell utilities,\n  but with the full power of Notcurses.\n\n* It's Apache2-licensed in its entirety, as opposed to the\n  [drama in several acts](https:\u002F\u002Finvisible-island.net\u002Fncurses\u002Fncurses-license.html)\n  that is the NCURSES license (the latter is [summarized](https:\u002F\u002Finvisible-island.net\u002Fncurses\u002Fncurses-license.html#issues_freer)\n  as \"a restatement of MIT-X11\").\n\nMuch of the above can be had with NCURSES, but they're not what NCURSES was\n*designed* for. On the other hand, if you're targeting industrial or critical\napplications, or wish to benefit from time-tested reliability and\nportability, you should by all means use that fine library.\n\n## Requirements\n\nMinimum versions generally indicate the oldest version I've tested with; it\nmay well be possible to use still older versions. Let me know of any successes!\n\n* (build) CMake 3.21.0+ and a C17 compiler\n* (OPTIONAL) (OpenImageIO, testing, C++ bindings): A C++17 compiler\n* (build+runtime) From [NCURSES](https:\u002F\u002Finvisible-island.net\u002Fncurses\u002Fannounce.html): terminfo 6.1+\n* (build+runtime) GNU [libunistring](https:\u002F\u002Fwww.gnu.org\u002Fsoftware\u002Flibunistring\u002F) 0.9.10+\n* (OPTIONAL) (build+runtime) [libgpm](https:\u002F\u002Fwww.nico.schottelius.org\u002Fsoftware\u002Fgpm\u002F) 1.20+\n* (OPTIONAL) (build+runtime) From QR-Code-generator: [libqrcodegen](https:\u002F\u002Fgithub.com\u002Fnayuki\u002FQR-Code-generator) 1.5.0+\n* (OPTIONAL) (build+runtime) From [FFmpeg](https:\u002F\u002Fwww.ffmpeg.org\u002F): libswscale 5.0+, libavformat 57.0+, libavutil 56.0+, libavdevice 57.0+\n* (OPTIONAL) (build+runtime) [OpenImageIO](https:\u002F\u002Fgithub.com\u002FOpenImageIO\u002Foiio) 2.15.0+, requires C++\n* (OPTIONAL) (testing) [Doctest](https:\u002F\u002Fgithub.com\u002Fonqtam\u002Fdoctest) 2.3.5+\n* (OPTIONAL) (documentation) [pandoc](https:\u002F\u002Fpandoc.org\u002Findex.html) 1.19.2+\n* (OPTIONAL) (python bindings): Python 3.7+, [CFFI](https:\u002F\u002Fpypi.org\u002Fproject\u002Fcffi\u002F) 1.13.2+, [pypandoc](https:\u002F\u002Fpypi.org\u002Fproject\u002Fpypandoc\u002F) 1.5+\n* (runtime) Linux 2.6+, FreeBSD 11+, DragonFly BSD 5.9+, Windows 10 v1093+, or macOS 11.4+\n\nMore information on building and installation is available in [INSTALL.md](INSTALL.md).\n\n### Wrappers\n\nIf you wish to use a language other than C to work with Notcurses, numerous\nwrappers are available. Several are included in this repository, while\nothers are external.\n\n| Language | Lead(s)                       | Repository |\n| -------- | ----------------------------- | ---------- |\n| Ada      | Jeremy Grosser                | [JeremyGrosser\u002Fnotcursesada](https:\u002F\u002Fgithub.com\u002FJeremyGrosser\u002Fnotcursesada) |\n| C++      | Marek Habersack, nick black   | internal   |\n| Dart     | Nelson Fernandez              | [kascote\u002Fdart_notcurses](https:\u002F\u002Fgithub.com\u002Fkascote\u002Fdart_notcurses) |\n| Julia    | Dheepak Krishnamurthy         | [kdheepak\u002FNotcurses.jl](https:\u002F\u002Fgithub.com\u002Fkdheepak\u002FNotcurses.jl) |\n| Nim      | Michael S. Bradley, Jr.       | [michaelsbradleyjr\u002Fnim-notcurses](https:\u002F\u002Fgithub.com\u002Fmichaelsbradleyjr\u002Fnim-notcurses) |\n| Python   | nick black                    | internal   |\n| Python   | igo95862                      | internal   |\n| Rust     | José Luis Cruz                | [dankamongmen\u002Flibnotcurses-sys](https:\u002F\u002Fgithub.com\u002Fdankamongmen\u002Flibnotcurses-sys) |\n| Zig      | Jakub Dundalek                | [dundalek\u002Fnotcurses-zig-example](https:\u002F\u002Fgithub.com\u002Fdundalek\u002Fnotcurses-zig-example) |\n| Raku     | Matt Doughty                  | [m-doughty\u002FNotcurses-Native](https:\u002F\u002Fgithub.com\u002Fm-doughty\u002FNotcurses-Native) |\n\n## Included tools\n\nNine executables are installed as part of Notcurses:\n* `ncls`: an `ls` that displays multimedia in the terminal\n* `ncneofetch`: a [neofetch](https:\u002F\u002Fgithub.com\u002Fdylanaraps\u002Fneofetch) ripoff\n* `ncplayer`: renders visual media (images\u002Fvideos)\n* `nctetris`: a tetris clone\n* `notcurses-demo`: some demonstration code\n* `notcurses-info`: detect and print terminal capabilities\u002Fdiagnostics\n* `notcurses-input`: decode and print keypresses\n* `notcurses-tester`: unit testing\n* `tfman`: a swank manual browser\n\nTo run `notcurses-demo` from a checkout, provide the `data` directory via\nthe `-p` argument. Demos requiring data files will otherwise abort. The base\ndelay used in `notcurses-demo` can be changed with `-d`, accepting a\nfloating-point multiplier. Values less than 1 will speed up the demo, while\nvalues greater than 1 will slow it down.\n\n`notcurses-tester` likewise requires that `data`, populated with the necessary\ndata files, be specified with `-p`. It can be run by itself, or via `make test`.\n\n## Documentation\n\nWith `-DUSE_PANDOC=on` (the default), a full set of man pages and XHTML\nwill be built from `doc\u002Fman`. The following Markdown documentation is included\ndirectly:\n\n* Per-release [News](NEWS.md) for packagers, developers, and users.\n* The `TERM` environment variable and [various terminal emulators](TERMINALS.md).\n* Notes on [contributing](CONTRIBUTING.md) and [hacking](doc\u002FHACKING.md).\n* There's a semi-complete [reference guide](USAGE.md).\n* A list of [other TUI libraries](doc\u002FOTHERS.md).\n* Abbreviated [history](doc\u002FHISTORY.md) and thanks.\n* [Differences from](doc\u002FCURSES.md) Curses and adapting Curses programs.\n\nIf you (understandably) want to avoid the large Pandoc stack, but still enjoy\nmanual pages, I publish a tarball with generated man\u002FXHTML along with\neach release. Download it, and install the contents as you deem fit.\n\n## Environment notes\n\n* If your `TERM` variable is wrong, or that terminfo definition is out-of-date,\n  you're going to have a very bad time. Use *only* `TERM` values appropriate\n  for your terminal. If this variable is undefined, or Notcurses can't load the\n  specified Terminfo entry, it will refuse to start, and you will\n  [not be going to space today](https:\u002F\u002Fxkcd.com\u002F1133\u002F).\n\n* Notcurses queries the terminal on startup, enabling some advanced features\n  based on the determined terminal (and even version). Basic capabilities,\n  however, are taken from Terminfo. So if you have, say, Kitty, but\n  `TERM=vt100`, you're going to be able to draw RGBA bitmap graphics (despite\n  such things being but a dream for a VT100), but *unable* to use the alternate\n  screen (despite it being supported by every Kitty version). So `TERM` and an\n  up-to-date Terminfo database remain important.\n\n* Ensure your `LANG` environment variable is set to a UTF8-encoded locale, and\n  that this locale has been generated. This usually means\n  `\"[language]_[Countrycode].UTF-8\"`, i.e. `en_US.UTF-8`. The first part\n  (`en_US`) ought exist as a directory or symlink in `\u002Fusr\u002Fshare\u002Flocales`.\n  This usually requires editing `\u002Fetc\u002Flocale.gen` and running `locale-gen`.\n  On Debian systems, this can be accomplished with `dpkg-reconfigure locales`,\n  and enabling the desired locale. The default locale is stored somewhere like\n  `\u002Fetc\u002Fdefault\u002Flocale`.\n\n* If your terminal has an option about default interpretation of \"ambiguous-width\n  characters\" (this is actually a technical term from Unicode), ensure it is\n  set to **Wide**, not narrow (if that doesn't work, ensure it is set to\n  **Narrow**, heh).\n\n* If your terminal supports 3x8bit RGB color via `setaf` and `setbf` (most\n  modern terminals), but exports neither the `RGB` nor `Tc` terminfo capability,\n  you can export the `COLORTERM` environment variable as `truecolor` or `24bit`.\n  Note that some terminals accept a 24-bit specification, but map it down to\n  fewer colors. RGB is unconditionally enabled whenever\n  [most modern terminals](TERMINALS.md) are identified.\n\n### Fonts\n\nGlyph width, and indeed whether a glyph can be displayed at all, is dependent\nin part on the font configuration. Ideally, your font configuration has a\nglyph for every Unicode EGC, and each glyph's width matches up with the POSIX\nfunction's `wcswidth()` result for the EGC. If this is not the case, you'll\nlikely get blanks or � (U+FFFD, REPLACEMENT CHARACTER) for missing characters,\nand subsequent characters on the line may be misplaced.\n\nIt is worth knowing that several terminals draw the block characters directly,\nrather than loading them from a font. This is generally desirable. Quadrants,\nsextants, and octants are not the place to demonstrate your design virtuosity.\nTo inspect your environment's rendering of drawing characters, run\n`notcurses-info`. The desired output ought look something like this:\n\n\u003Cp align=\"center\">\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fdankamongmen\u002Fnotcurses\u002Fgh-pages\u002Fnotcurses-info.png\" alt=\"notcurses-info can be used to check Unicode drawing\"\u002F>\n\u003C\u002Fp>\n\n## FAQs\n\nIf things break or seem otherwise lackluster, **please** consult the\n[Environment Notes](#environment-notes) section! You **need** correct\n`TERM` and `LANG` definitions, and might want `COLORTERM`.\n\n\u003Cdetails>\n \u003Csummary>Can I use Notcurses in my closed-source program?\u003C\u002Fsummary>\n Notcurses is licensed under \u003Ca href=\"https:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0\">Apache2\u003C\u002Fa>,\n a demonstration that I have transcended your petty world of material goods,\n fiat currencies, and closed sources. Implement Microsoft Bob in it. Charge\n rubes for it. Put it in your ballistic missiles so that you have a nice LED\n display of said missile's speed and projected yield; right before impact,\n scroll \"FUCK YOU\" in all the world's languages, and close it out with a smart\n palette fade. Carve the compiled objects onto bricks and mail them to Richard\n Stallman, taunting him through a bullhorn as you do so.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Can I write a CLI program (scrolling, fits in with the shell, etc.)\n   with Notcurses?\u003C\u002Fsummary>\n   Yes! Use the \u003Ccode>NCOPTION_CLI_MODE\u003C\u002Fcode> flag (an alias for several\n   real flags; see \u003Ca href=\"https:\u002F\u002Fnotcurses.com\u002Fnotcurses_init.3.html\">\u003Ccode>notcurses_init(1)\u003C\u002Fcode>\u003C\u002Fa>\n   for more information). You still must explicitly render.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Can I have Notcurses without this huge multimedia stack?\u003C\u002Fsummary>\n  Again yes! Build with \u003Ccode>-DUSE_MULTIMEDIA=none\u003C\u002Fcode>.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Can I build this individual Notcurses program without aforementioned\n  multimedia stack?\u003C\u002Fsummary>\n  Almost unbelievably, yes! Use \u003Ccode>notcurses_core_init()\u003C\u002Fcode> or\n  \u003Ccode>ncdirect_core_init()\u003C\u002Fcode> in place of \u003Ccode>notcurses_init()\u003C\u002Fcode>\u002F\n  \u003Ccode>ncdirect_init()\u003C\u002Fcode>, and link with \u003Ccode>-lnotcurses-core\u003C\u002Fcode>.\n  Your application will likely start a few milliseconds faster;\n  more importantly, it will link against minimal Notcurses installations.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>We're paying by the electron, and have no C++ compiler. Can we still\n  enjoy Notcurses goodness?\u003C\u002Fsummary>\n  Some of it! You won't be able to build several executables, nor the NCPP C++\n  wrappers, nor can you build with the OpenImageIO multimedia backend (OIIO\n  ships C++ headers). You'll be able to build the main library, though, as\n  well as \u003Ccode>notcurses-demo\u003C\u002Fcode> (and maybe a few other programs).\n  Use \u003Ccode>-DUSE_CXX=off\u003C\u002Fcode>.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Do I want ffmpeg or OpenImageIO?\u003C\u002Fsummary>\n  While OpenImageIO is a superb library for dealing with single-frame images,\n  its video support is less than perfect (blame me; I've been promising Larry\n  I'd rewrite it for several months), and in any case implemented\n  atop...ffmpeg. ffmpeg is the preferred multimedia backend.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Does it work with hardware terminals?\u003C\u002Fsummary>\n  With the correct \u003Ccode>TERM\u003C\u002Fcode> value, many hardware terminals are\n  supported. In general, if the terminfo database entry indicates mandatory\n  delays, Notcurses will not currently support that terminal properly. It's\n  known that Notcurses can drive the VT320 and VT340, including Sixel graphics\n  on the latter.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>What happens if I try blitting bitmap graphics on a terminal which\n  doesn't support them?\u003C\u002Fsummary>\n  Notcurses will not make use of bitmap protocols unless the terminal positively\n  indicates support for them, even if \u003Ccode>NCBLIT_PIXEL\u003C\u002Fcode> has been\n  requested. Likewise, sextants (\u003Ccode>NCBLIT_3x2\u003C\u002Fcode>) won't be used without\n  Unicode 13 support, octants (\u003Ccode>NCBLIT_4x2\u003C\u002Fcode>) won't be used without\n  Unicode 16 support, etc. \u003Ccode>ncvisual_blit()\u003C\u002Fcode> will use the best blitter\n  available, unless \u003Ccode>NCVISUAL_OPTION_NODEGRADE\u003C\u002Fcode> is provided (in\n  which case it will fail).\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Notcurses looks like absolute crap in \u003Ccode>screen\u003C\u002Fcode>.\u003C\u002Fsummary>\n  \u003Ccode>screen\u003C\u002Fcode> doesn't support RGB colors (at least as of 4.08.00);\n  if you have \u003Ccode>COLORTERM\u003C\u002Fcode> defined, you'll have a bad time.\n    If you have a \u003Ccode>screen\u003C\u002Fcode> that was compiled with\n    \u003Ccode>--enable-colors256\u003C\u002Fcode>, try exporting\n    \u003Ccode>TERM=screen-256color\u003C\u002Fcode> as opposed to \u003Ccode>TERM=screen\u003C\u002Fcode>.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Notcurses looks like absolute crap in \u003Ccode>mosh\u003C\u002Fcode>.\u003C\u002Fsummary>\n  Yeah it sure does. I'm not yet sure what's up.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Notcurses looks like absolute crap in Windows Terminal.\u003C\u002Fsummary>\n  Go to \u003Ca href=\"ms-settings:regionlanguage\">Language Setting\u003C\u002Fa>, click\n  \"Administrative language settings\", click \"Change system locale\", and check\n  the \"Beta: Use Unicode UTF-8 for worldwide language support\" option. Restart\n  the computer. That ought help a little bit. Try playing with fonts—Cascadia\n  Code and Cascadia Mono both seem to work well (quadrants and Braille both\n  work), whereas Consolas and Courier New both have definite problems.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>I'm getting strange and\u002For duplicate inputs in Kitty\u002Ffoot.\u003C\u002Fsummary>\n  Notcurses supports Kitty's powerful\n  \u003Ca href=\"https:\u002F\u002Fsw.kovidgoyal.net\u002Fkitty\u002Fkeyboard-protocol\u002F\">keyboard protocol\u003C\u002Fa>,\n  which includes things like key release events and modifier keypresses by\n  themselves. This means, among other things, that a program in these terminals\n  will usually immediately get an \u003Ccode>NC_ENTER\u003C\u002Fcode> \u003Ccode>NCTYPE_RELEASE\u003C\u002Fcode>\n  event, and each keypress will typically result in at least two inputs.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Why didn't you just render everything to bitmaps?\u003C\u002Fsummary>\n  That's not a TUI; it's a slow and inflexible GUI. Many terminal emulators\n  don't support bitmaps. They doesn't work well with mouse selection.\n  Sixels have a limited color palette. With that said, both Sixel and the\n  Kitty bitmap protocol are well-supported.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>My multithreaded program doesn't see \u003Ccode>NCKEY_RESIZE\u003C\u002Fcode> until\n  I press some other key.\u003C\u002Fsummary>\n  You've almost certainly failed to mask \u003Ccode>SIGWINCH\u003C\u002Fcode> in some thread,\n  and that thread is receiving the signal instead of the thread which called\n  \u003Ccode>notcurses_getc_blocking()\u003C\u002Fcode>. As a result, the \u003Ccode>poll()\u003C\u002Fcode>\n  is not interrupted. Call \u003Ccode>pthread_sigmask()\u003C\u002Fcode> before spawning any\n  threads.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Using the C++ wrapper, how can I ensure that the \u003Ccode>NotCurses\u003C\u002Fcode>\n  destructor is run when I return from \u003Ccode>main()\u003C\u002Fcode>?\u003C\u002Fsummary>\n  As noted in the\n  \u003Ca href=\"https:\u002F\u002Fisocpp.org\u002Fwiki\u002Ffaq\u002Fdtors#artificial-block-to-control-lifetimes\">\n  C++ FAQ\u003C\u002Fa>, wrap it in an artificial scope (this assumes your\n  \u003Ccode>NotCurses\u003C\u002Fcode> is scoped to \u003Ccode>main()\u003C\u002Fcode>).\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>How do I hide a plane I want to make visible later?\u003C\u002Fsummary>\n  In order of least to most performant: move it offscreen using\n  \u003Ccode>ncplane_move_yx()\u003C\u002Fcode>, move it underneath an opaque plane with\n  \u003Ccode>ncplane_move_below()\u003C\u002Fcode>, or move it off-pile with\n  \u003Ccode>ncplane_reparent()\u003C\u002Fcode>.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Why isn't there an \u003Ccode>ncplane_box_yx()\u003C\u002Fcode>? Do you hate\n  orthogonality, you dullard?\u003C\u002Fsummary> \u003Ccode>ncplane_box()\u003C\u002Fcode> and friends\n  already have far too many arguments, you monster.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Why doesn't Notcurses support 10- or 16-bit color?\u003C\u002Fsummary>\n  Notcurses supports 24 bits of color, spread across three eight-bit channels.\n  You presumably mean 10-bit-per-channel color. I needed those six bits for\n  other things. When terminals support it, Notcurses might support it.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>The name is dumb.\u003C\u002Fsummary>\n  That's not a question?\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>I'm not finding qrcodegen on BSD, despite having installed\n  \u003Ccode>graphics\u002Fqr-code-generator\u003C\u002Fcode>.\u003C\u002Fsummary>\n  Try \u003Ccode>cmake -DCMAKE_REQUIRED_INCLUDES=\u002Fusr\u002Flocal\u002Finclude\u003C\u002Fcode>.\n  This is passed by \u003Ccode>bsd.port.mk\u003C\u002Fcode>.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Do you support \u003Ca href=\"https:\u002F\u002Fmusl.libc.org\u002F\">musl\u003C\u002Fa>?\u003C\u002Fsummary>\n  I try to! You'll need at least 1.20.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>I only seem to blit in ASCII, and\u002For can't emit Unicode beyond ASCII\n  in general.\u003C\u002Fsummary>\n  Your \u003Ccode>LANG\u003C\u002Fcode> environment variable is underdefined or incorrectly\n  defined, or the necessary locale is not present on your machine (it is also\n  possible that you explicitly supplied \u003Ccode>NCOPTION_INHIBIT_SETLOCALE\u003C\u002Fcode>,\n  but never called \u003Ccode>setlocale(3)\u003C\u002Fcode>, in which case don't do that).\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>I pretty much always need an \u003Ccode>ncplane\u003C\u002Fcode> when using a\n  \u003Ccode>nccell\u003C\u002Fcode>. Why doesn't the latter hold a pointer to the former?\n  \u003C\u002Fsummary>\n  Besides the massive redundancy this would entail, \u003Ccode>nccell\u003C\u002Fcode> needs to\n  remain as small as possible, and you almost always have the \u003Ccode>ncplane\u003C\u002Fcode>\n  handy if you've got a reference to a valid \u003Ccode>nccell\u003C\u002Fcode> anyway.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n \u003Csummary>I ran my Notcurses program under \u003Ccode>valgrind\u003C\u002Fcode>\u002FASAN, and\n    it shows memory leaks from \u003Ccode>libtinfo.so\u003C\u002Fcode>, what's up with that?\u003C\u002Fsummary>\n  Yeah, the NCURSES Terminfo leaks memory unless compiled a special,\n  non-standard way (see the NCURSES FAQ). It shouldn't be a substantial amount;\n  you're advised not to worry overmuch about it.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>I ran \u003Ccode>notcurses-demo\u003C\u002Fcode>, but my table numbers don't match\n  the Notcurses banner numbers, you charlatan.\u003C\u002Fsummary>\n  \u003Ccode>notcurses-demo\u003C\u002Fcode> renders several frames beyond the actual demos.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>When my program exits, I don't have a cursor, or text is invisible,\n  or colors are weird, \u003Ci>ad nauseam\u003C\u002Fi>.\u003C\u002Fsummary>\n  Ensure you're calling \u003Ccode>notcurses_stop()\u003C\u002Fcode>\u002F\u003Ccode>ncdirect_stop()\u003C\u002Fcode>\n  on all exit paths, including fatal signals (note that, by default, Notcurses\n  installs handlers for most fatal signals to do exactly this).\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>How can I use Direct Mode in conjunction with libreadline?\u003C\u002Fsummary>\n  You can't anymore (you could up until 2.4.1, but the new input system is\n  fundamentally incompatible with it). \u003Ccode>ncdirect_readline()\u003C\u002Fcode> still exists,\n  though, and now actually works even without libreadline, though it is of\n  course not exactly libreadline. In any case, you'd probably be better off\n  using CLI mode with a \u003Ccode>ncreader\u003C\u002Fcode>.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>So is Direct Mode deprecated or what?\u003C\u002Fsummary>\n  It is not currently deprecated, and definitely receives bugfixes. You are\n  probably better served using CLI mode (see above), which came about\n  somewhat late in Notcurses development (the 2.3.x series), but is superior\n  to Direct Mode in pretty much every way. The only reason to use Direct\n  Mode is if you're going to have other programs junking up your display.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Direct Mode sounds fast! Since it's, like, direct.\u003C\u002Fsummary>\n  Direct mode is \u003Ci>substantially slower\u003C\u002Fi> than rendered mode. Rendered\n  mode assumes it knows what's on the screen, and uses this information to\n  generate optimized sequences of escapes and glyphs. Direct mode writes\n  everything it's told to write. It is furthermore far less capable—all\n  widgets etc. are available only to rendered mode, and will definitely\n  not be extended to Direct Mode.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Will there ever be Java wrappers?\u003C\u002Fsummary>\n  I should hope not. If you want a Java solution, try @klamonte's\n  \u003Ca href=\"https:\u002F\u002Fjexer.sourceforge.io\u002F\">Jexer\u003C\u002Fa>. Autumn's a good\n  woman, and thorough. We seem to have neatly partitioned the language\n  space.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Given that the glyph channel is initialized as transparent for a\n  plane, shouldn't the foreground and background be initialized as transparent,\n  also?\u003C\u002Fsummary>\n  Probably (they are instead by default initialized to opaque). This would change\n  some of the most longstanding behavior of Notcurses, though,\n  so it isn't happening.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>I get linker errors when statically linking.\u003C\u002Fsummary>\n  Are you linking all necessary libraries? Use\n  \u003Ccode>pkg-config --static --libs notcurses\u003C\u002Fcode>\n  (or \u003Ccode>--libs notcurses-core\u003C\u002Fcode>) to discover them.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Notcurses exits immediately in MSYS2\u002FCygwin.\u003C\u002Fsummary>\n  Notcurses requires the\n  \u003Ca href=\"https:\u002F\u002Fdevblogs.microsoft.com\u002Fcommandline\u002Fwindows-command-line-introducing-the-windows-pseudo-console-conpty\u002F\">Windows ConPTY\u003C\u002Fa>\n  layer. This is available in Cygwin by default since 3.2.0, but is disabled\n  by default in MSYS. Launch \u003Ccode>mintty\u003C\u002Fcode> with \u003Ccode>-P on\u003C\u002Fcode>\n  arguments, or export \u003Ccode>MSYS=enable_pcon\u003C\u002Fcode> before launching it.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Can I avoid manually exporting \u003Ccode>COLORTERM=24bit\u003C\u002Fcode>\n  everywhere?\u003C\u002Fsummary>\n  Sure. Add \u003Ccode>SendEnv COLORTERM\u003C\u002Fcode> to \u003Ccode>.ssh\u002Fconfig\u003C\u002Fcode>, and\n  \u003Ccode>AcceptEnv COLORTERM\u003C\u002Fcode> to \u003Ccode>sshd_config\u003C\u002Fcode> on the remote\n  server. Yes, this will probably require root on the remote server.\n  Don't blame me, man; I didn't do it.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>How about \u003Ci>arbitrary image manipulation here\u003C\u002Fi> functionality?\u003C\u002Fsummary>\n  I'm not going to beat ImageMagick et al. on image manipulation, but you can\n  load an \u003Ccode>ncvisual\u003C\u002Fcode> from RGBA memory using\n  \u003Ccode>ncvisual_from_rgba()\u003C\u002Fcode>.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>My program locks up during initialization. \u003C\u002Fsummary>\n  Notcurses interrogates the terminal. If the terminal doesn't reply to standard\n  interrogations, file a Notcurses bug, send upstream a patch, or use a different\n  terminal. No known terminal emulators exhibit this behavior.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>How can I draw a large plane, and only make a portion of it visible?\u003C\u002Fsummary>\n  The simplest way is probably to create a plane of the same dimensions immediately above\n  the plane, and keep a region of it transparent, and the rest opaque. If you want the visible\n  area to stay in the same place on the display, but the portion being seen to change, try\n  making a plane twice as large in each dimension as the original plane. Make the desired area\n  transparent, and the rest opaque. Now move the original plane behind this plane so that the\n  desired area lines up with the &ldquo;hole&rdquo;.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Why no \u003Ccode>NCSTYLE_REVERSE\u003C\u002Fcode>?\u003C\u002Fsummary>\n  It would consume a precious bit. You can use \u003Ccode>ncchannels_reverse()\u003C\u002Fcode>\n  to correctly invert fore- and background colors.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>How do I mix Rendered and Direct mode?\u003C\u002Fsummary>\n  You really don't want to. You can stream a subprocess to a plane with the\n  \u003Ccode>ncsubproc\u003C\u002Fcode> widget.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>How can I clear the screen on startup in Rendered mode when not using\n  the alternate screen?\u003C\u002Fsummary>\n  Call \u003Ccode>notcurses_refresh()\u003C\u002Fcode> after \u003Ccode>notcurses_init()\u003C\u002Fcode>\n  returns successfully.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>Why do the stats show more Linux framebuffer bitmap bytes written\n  than total bytes written to the terminal? And why don't Linux console\n  graphics work when I ssh?\u003C\u002Fsummary>\n  Linux framebuffer graphics aren't implemented via terminal writes, but rather\n  writes directly into a memory map. This memory map isn't available on remote\n  machines, and these writes aren't tracked by the standard statistics.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n \u003Csummary>What is the possessive form of Notcurses?\u003C\u002Fsummary>\n \u003Cb>Notcurses'.\u003C\u002Fb> I cite \u003Ca href=\"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FGarner%27s_Modern_English_Usage\">\n Garner's Modern English Usage\u003C\u002Fa> in its third edition: \"\u003Cb>POSSESSIVES. A. Singular\n Possessives.\u003C\u002Fb>…Biblical and Classical names that end with a \u002Fzəs\u002F or \u002Feez\u002F\n sound take only the apostrophe.\" Some ask: is Notcurses then Biblical, or is it\n Classical? Truly, it is both.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n  \u003Csummary>I just want to display a bitmap on my terminal. Your library is\n  complex and stupid. You are simple and stupid.\u003C\u002Fsummary>\n  If you're willing to call a binary, use \u003Ctt>ncplayer\u003C\u002Ftt> to put an image,\n  with desired scaling, anywhere on the screen and call it a day. Otherwise,\n  call \u003Ctt>notcurses_init()\u003C\u002Ftt>, \u003Ctt>ncvisual_from_file()\u003C\u002Ftt>,\n  \u003Ctt>ncvisual_blit()\u003C\u002Ftt>, \u003Ctt>notcurses_render()\u003C\u002Ftt>, and\n  \u003Ctt>notcurses_stop()\u003C\u002Ftt>. It's not too tough. And thanks—your thoughtful\n  comments and appreciative tone are why I work on Free Software.\n\u003C\u002Fdetails>\n\n## Useful links\n\n* [BiDi in Terminal Emulators](https:\u002F\u002Fterminal-wg.pages.freedesktop.org\u002Fbidi\u002F)\n* [The Xterm FAQ](https:\u002F\u002Finvisible-island.net\u002Fxterm\u002Fxterm.faq.html)\n  * [XTerm Control Sequences](https:\u002F\u002Finvisible-island.net\u002Fxterm\u002Fctlseqs\u002Fctlseqs.pdf)\n* [The NCURSES FAQ](https:\u002F\u002Finvisible-island.net\u002Fncurses\u002Fncurses.faq.html)\n* [ECMA-35 Character Code Structure and Extension Techniques](https:\u002F\u002Fwww.ecma-international.org\u002Fpublications\u002Fstandards\u002FEcma-035.htm) (ISO\u002FIEC 2022)\n* [ECMA-43 8-bit Coded Character Set Structure and Rules](https:\u002F\u002Fwww.ecma-international.org\u002Fpublications\u002Fstandards\u002FEcma-043.htm)\n* [ECMA-48 Control Functions for Coded Character Sets](https:\u002F\u002Fwww.ecma-international.org\u002Fpublications\u002Fstandards\u002FEcma-048.htm) (ISO\u002FIEC 6429)\n* [Unicode 14.0 Full Emoji List](https:\u002F\u002Funicode.org\u002Femoji\u002Fcharts\u002Ffull-emoji-list.html)\n* [Unicode Standard Annex #29 Text Segmentation](http:\u002F\u002Fwww.unicode.org\u002Freports\u002Ftr29)\n* [Unicode Standard Annex #15 Normalization Forms](https:\u002F\u002Funicode.org\u002Freports\u002Ftr15\u002F)\n* [mintty tips](https:\u002F\u002Fgithub.com\u002Fmintty\u002Fmintty\u002Fwiki\u002FTips)\n* [The TTY demystified](http:\u002F\u002Fwww.linusakesson.net\u002Fprogramming\u002Ftty\u002F)\n* [Dark Corners of Unicode](https:\u002F\u002Feev.ee\u002Fblog\u002F2015\u002F09\u002F12\u002Fdark-corners-of-unicode\u002F)\n* [UTF-8 Decoder Capability and Stress Test](https:\u002F\u002Fwww.cl.cam.ac.uk\u002F~mgk25\u002Fucs\u002Fexamples\u002FUTF-8-test.txt)\n* [Emoji: how do you get from U+1F355 to 🍕?](https:\u002F\u002Fmeowni.ca\u002Fposts\u002Femoji-emoji-emoji\u002F)\n* [Glyph Hell: An introduction to glyphs, as used and defined in the FreeType engine](http:\u002F\u002Fchanae.walon.org\u002Fpub\u002Fttf\u002Fttf_glyphs.htm)\n* [Text Rendering Hates You](https:\u002F\u002Fgankra.github.io\u002Fblah\u002Ftext-hates-you\u002F)\n* [Use the UTF-8 code page](https:\u002F\u002Fdocs.microsoft.com\u002Fen-us\u002Fwindows\u002Fapps\u002Fdesign\u002Fglobalizing\u002Fuse-utf8-code-page)\n* My wiki's [Sixel page](https:\u002F\u002Fnick-black.com\u002Fdankwiki\u002Findex.php?title=Sixel) and Kitty's [extensions](https:\u002F\u002Fsw.kovidgoyal.net\u002Fkitty\u002Fprotocol-extensions.html).\n* Linux man pages: [console_codes(4)](http:\u002F\u002Fman7.org\u002Flinux\u002Fman-pages\u002Fman4\u002Fconsole_codes.4.html), [termios(3)](http:\u002F\u002Fman7.org\u002Flinux\u002Fman-pages\u002Fman3\u002Ftermios.3.html), [ioctl_tty(2)](http:\u002F\u002Fman7.org\u002Flinux\u002Fman-pages\u002Fman2\u002Fioctl_tty.2.html), [ioctl_console(2)](http:\u002F\u002Fman7.org\u002Flinux\u002Fman-pages\u002Fman2\u002Fioctl_console.2.html)\n* The Microsoft Windows [Console Reference](https:\u002F\u002Fdocs.microsoft.com\u002Fen-us\u002Fwindows\u002Fconsole\u002Fconsole-reference)\n* NCURSES man pages: [terminfo(5)](http:\u002F\u002Fman7.org\u002Flinux\u002Fman-pages\u002Fman5\u002Fterminfo.5.html), [user_caps(5)](http:\u002F\u002Fman7.org\u002Flinux\u002Fman-pages\u002Fman5\u002Fuser_caps.5.html)\n\n> “Our fine arts were developed, their types and uses were established, in times\nvery different from the present, by men whose power of action upon things was\ninsignificant in comparison with ours. But the amazing growth of our\ntechniques, the adaptability and precision they have attained, the ideas and\nhabits they are creating, make it a certainty that _profound changes are\nimpending in the ancient craft of the Beautiful_.” —Paul Valéry\n","Notcurses 是一个用于现代终端模拟器上的复杂文本用户界面（TUI）和字符图形的库。它支持丰富的颜色、多媒体、多线程以及尽可能广泛的 Unicode 支持，使得开发者能够实现超越传统 NCURSES 的功能，并且运行速度极快。该项目采用 C 语言编写，具备跨平台特性，适用于 Linux、FreeBSD、Windows 和 macOS 系统。Notcurses 特别适合需要在终端环境中创建高性能、视觉效果丰富应用的场景，如开发监控工具、游戏或其他交互式命令行程序。",2,"2026-06-11 03:07:57","top_language"]