- Fixed CI failures, finally
- Excluded the CI config from being bundled in the crate
- Actually drop the travis config
- Add scheduled CI run
- Moved CI to github actions
- Fixed deprecated license attribute syntax
- Another attempt to fix the macro link
- Trying again to fix mistake with macro link in previous changes (relying upon docs.rs processing of new crates to test the change since my distro only has rustc v1.47 for now).
- Fix mistake with macro link in previous changes
- Previous change was incomplete
- Adjusted documentation to take advantage of the better link generation provided in the latest rust compiler (version 1.48). This means that the minimum rust version needed is 1.48 to have working links within the documentation, though the crate is still usable with older versions, so the MSRV is not being bumped.
- Trivial non-functional tweaks, not worth listing
- Re-organised the predefines
- Added various additional predefines
- Renamed the
REVERSE
predefine to the more correct termINVERSE
- Extended, corrected and otherwise further improved the documentation
- Added helper macros for generating code groupings for use in sequences, including the generic
codes
, along with those specifically for specifying 256-colour and RGB colour palette selections:c256_fg
,c256_bg
,rgb_fg
andrgb_bg
. - Added a
codes
mod. While thepredefines
mod offers various common items in full sequence form, this new mod offers the codes without being embedded in the full sequence pattern. This may be useful to some for constructing custom combinations via named constants instead of raw numeric literals. The prefix and postfix parts of the sequence pattern are given also. Note that it is not possible to use these names constants withseq
since the Rust macro construction would take the literal name of the constant, rather than what the constant points to. - Added a
demo
example, which outputs some sample text with various forms of formatting applied, to demonstrate the possibilities and the capabilities of your terminal.
- Reworked the format-supported helpers on top of the
atty
crate, thus bringing better cross platform support. - Added a Windows
enable_ansi_support
function, taken fromansi_term
- Renamed the
term_seq
macro to more simplyseq
- Reorganised a bit
- Re-wrote the documentation
- Various other odd little tweaks really not worth documenting
- Documentation example tweaks
- Introduced unit tests
- Used a trait to help ensure that the
fmt_supported
method onStdPipe
always has the same prototype across platforms. - Removed a stray redundant platform conditional
- Enabled some doc tests
- Reorganised copyright header position
- Grouped predefined sequences in
predefined
mod
- Improved crate documentation
- Now avoids
libc
for windows builds, where it was unused - Grouped codes into sub-modules
- Changed codes from statics to constants
- Added and used a macro for creating sequences
- Renamed
color_supported
tofmt_supported
- Expanded pipe type coverage
- Declared
no_std
since we do not needstd
- Original version, previously bundled with the
gong
crate & repo, now extracted into its own