mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
prep for 1.1.6
This commit is contained in:
parent
00f7973aea
commit
b284901d18
@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(notcurses VERSION 1.1.5
|
||||
project(notcurses VERSION 1.1.6
|
||||
DESCRIPTION "UI for modern terminal emulators"
|
||||
HOMEPAGE_URL "https://nick-black.com/dankwiki/index.php/notcurses"
|
||||
LANGUAGES C CXX)
|
||||
|
@ -356,9 +356,9 @@ int ncdirect_fg(struct ncdirect* nc, unsigned rgb);
|
||||
int ncdirect_bg(struct ncdirect* nc, unsigned rgb);
|
||||
int ncdirect_dim_x(const struct ncdirect* nc);
|
||||
int ncdirect_dim_y(const struct ncdirect* nc);
|
||||
void ncdirect_styles_set(struct ncdirect* n, unsigned stylebits);
|
||||
void ncdirect_styles_on(struct ncdirect* n, unsigned stylebits);
|
||||
void ncdirect_styles_off(struct ncdirect* n, unsigned stylebits);
|
||||
int ncdirect_styles_set(struct ncdirect* n, unsigned stylebits);
|
||||
int ncdirect_styles_on(struct ncdirect* n, unsigned stylebits);
|
||||
int ncdirect_styles_off(struct ncdirect* n, unsigned stylebits);
|
||||
```
|
||||
|
||||
### Alignment
|
||||
|
@ -14,7 +14,7 @@
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1><a href="https://nick-black.com/dankwiki/index.php/Notcurses">notcurses</a> man pages (v1.1.5)</h1>
|
||||
<h1><a href="https://nick-black.com/dankwiki/index.php/Notcurses">notcurses</a> man pages (v1.1.6)</h1>
|
||||
<a href="notcurses.3.html">notcurses(3)</a>—a blingful TUI library<br/>
|
||||
<h2>Binaries (section 1)</h2>
|
||||
<a href="notcurses-demo.1.html">notcurses-demo</a>—shows off some notcurses features<br/>
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses-demo(1)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses-input(1)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses-planereel(1)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses-view(1)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_cell(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_channels(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_directmode(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
@ -24,11 +24,11 @@ notcurses_directmode - minimal notcurses instances for styling text
|
||||
|
||||
**int ncdirect_dim_y(const struct ncdirect* nc);**
|
||||
|
||||
**void ncdirect_styles_set(struct ncdirect* n, unsigned stylebits);**
|
||||
**int ncdirect_styles_set(struct ncdirect* n, unsigned stylebits);**
|
||||
|
||||
**void ncdirect_styles_on(struct ncdirect* n, unsigned stylebits);**
|
||||
**int ncdirect_styles_on(struct ncdirect* n, unsigned stylebits);**
|
||||
|
||||
**void ncdirect_styles_off(struct ncdirect* n, unsigned stylebits);**
|
||||
**int ncdirect_styles_off(struct ncdirect* n, unsigned stylebits);**
|
||||
|
||||
**int ncdirect_stop(struct ncdirect* nc);**
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_fade(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_init(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_input(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_lines(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_ncplane(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_ncvisual(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
notcurses_ncvisual - notcurses multimedia
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_output(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_palette(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_panelreels(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_render(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_resize(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_selector(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_stats(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_stdplane(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% notcurses_stop(3)
|
||||
% nick black <nickblack@linux.com>
|
||||
% v1.1.5
|
||||
% v1.1.6
|
||||
|
||||
# NAME
|
||||
|
||||
|
@ -6,7 +6,7 @@ def read(fname):
|
||||
|
||||
setup(
|
||||
name="notcurses",
|
||||
version="1.1.5",
|
||||
version="1.1.6",
|
||||
package_dir={'': 'src'},
|
||||
packages=find_packages('src'),
|
||||
author="Nick Black",
|
||||
|
@ -5,7 +5,7 @@ license = "Apache-2.0"
|
||||
description = "Low-level rust bindings for the notcurses C library."
|
||||
repository = "https://github.com/dankamongmen/notcurses"
|
||||
homepage = "https://nick-black.com/dankwiki/index.php/Notcurses"
|
||||
version = "1.1.5"
|
||||
version = "1.1.6"
|
||||
links = "notcurses"
|
||||
build = "build.rs"
|
||||
edition = "2018"
|
||||
|
@ -5,7 +5,7 @@ use std::path::PathBuf;
|
||||
|
||||
fn main() {
|
||||
pkg_config::Config::new()
|
||||
.atleast_version("1.1.5")
|
||||
.atleast_version("1.1.6")
|
||||
.probe("notcurses")
|
||||
.unwrap();
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "notcurses"
|
||||
version = "1.1.5"
|
||||
version = "1.1.6"
|
||||
authors = ["nick black <dankamongmen@gmail.com>"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
|
34
tests/direct.cpp
Normal file
34
tests/direct.cpp
Normal file
@ -0,0 +1,34 @@
|
||||
#include <notcurses.h>
|
||||
#include "egcpool.h"
|
||||
#include "main.h"
|
||||
|
||||
TEST_CASE("DirectMode") {
|
||||
// common initialization
|
||||
if(getenv("TERM") == nullptr){
|
||||
return;
|
||||
}
|
||||
FILE* outfp_{};
|
||||
outfp_ = fopen("/dev/tty", "wb");
|
||||
REQUIRE(nullptr != outfp_);
|
||||
struct ncdirect* nc_ = notcurses_directmode(NULL, outfp_);
|
||||
REQUIRE(nullptr != nc_);
|
||||
|
||||
SUBCASE("SetItalic") {
|
||||
CHECK(0 == ncdirect_styles_set(nc_, NCSTYLE_ITALIC));
|
||||
CHECK(0 == ncdirect_styles_off(nc_, NCSTYLE_ITALIC));
|
||||
}
|
||||
|
||||
SUBCASE("SetBold") {
|
||||
CHECK(0 == ncdirect_styles_set(nc_, NCSTYLE_BOLD));
|
||||
CHECK(0 == ncdirect_styles_off(nc_, NCSTYLE_BOLD));
|
||||
}
|
||||
|
||||
SUBCASE("SetUnderline") {
|
||||
CHECK(0 == ncdirect_styles_set(nc_, NCSTYLE_UNDERLINE));
|
||||
CHECK(0 == ncdirect_styles_off(nc_, NCSTYLE_UNDERLINE));
|
||||
}
|
||||
|
||||
// common teardown
|
||||
CHECK(0 == ncdirect_stop(nc_));
|
||||
CHECK(0 == fclose(outfp_));
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user