diff --git a/src/lib.rs b/src/lib.rs index 4f92e88..378376a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,6 +23,22 @@ const COLOR_RESET: &[u8] = colors::Default::ANSI_FG.as_bytes(); #[rustfmt::skip] const CP437: [char; 256] = [ + // Copyright (c) 2016, Delan Azabani + // + // Permission to use, copy, modify, and/or distribute this software for any + // purpose with or without fee is hereby granted, provided that the above + // copyright notice and this permission notice appear in all copies. + // + // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + // + // modified to use the ⋄ character instead of nul + // use https://en.wikipedia.org/w/index.php?title=Code_page_437&oldid=978947122 // not ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP437.TXT // because we want the graphic versions of 01h–1Fh + 7Fh