Commit graph

32 commits

Author SHA1 Message Date
yamadapc d0becf6a63 Remove trailing spaces and newlines.
This simply removes trailing spaces and '\n' characters left by p0nce's
contribution of adding windows support.
2014-07-30 14:35:19 -03:00
yamadapc f630d6fdfa Merge pull request #3 from p0nce/master
Add Windows Support
2014-07-30 14:28:12 -03:00
ponce 4c6aba25be Add myself as author. I do not wish to retain copyright so LICENSE can stay as is. 2014-07-30 00:29:55 +02:00
ponce 57605758d2 2-space indent 2014-07-30 00:29:05 +02:00
ponce 183ee21692 Whitespace tweak. 2014-07-29 23:53:59 +02:00
ponce on vps 4d98f3f9d3 Fix compatibility with linux and 2.065 2014-07-29 23:49:38 +02:00
ponce 8ff025230e fg and bg colours working. There was a problem with changing colors before stdout was ever flushed. 2014-07-29 23:36:46 +02:00
ponce 30f4576db5 Implement colour changing, still not working. 2014-07-29 00:41:50 +02:00
ponce 48444a6fb6 Coloured write now uses WinTermEmulation on Windows.
Basic state machine for parsing ANSI VT100 subset.
2014-07-29 00:20:33 +02:00
ponce 1361fca5d8 Partially implement coloured write/writef/...
Partially implement windows terminal emulation.
2014-07-28 23:55:16 +02:00
ponce 5caf15bd46 Reorganize package as to split in several files (colourize, Windows term emulation, and cprintf functions). 2014-07-28 22:54:08 +02:00
yamadapc b4a23ba7cf Fix the version in the source code.
I won't republish the package, just because of this, but it's nice to
keep things in sync.
2014-07-13 17:18:02 -03:00
yamadapc 3380acb7e2 Update the documentation.
I should parse the documentation out of the code, but the current
solutions for that don't seem very developed.
2014-07-13 16:36:09 -03:00
yamadapc 42a779cfc3 Make colorHelper overloading cleaner.
Using `static if`'s for type checking inside of a constrained template
function didn't make much sense after all.
2014-07-13 15:12:50 -03:00
yamadapc 4d8473495a Start drafting string API support and add aliases.
This changes the way colorize works and is still a *really* rough draft.
I didn't want to repeat the color codes, but also don't feel much like
wasting time making such a trivial use case non-verbose.

This relates to #1, but, as I said is still just an API idea, not
something I'd like to push to dub yet.
2014-07-12 20:42:18 -03:00
yamadapc b47a79deb2 Fix style for template constraints.
I'm simply trying to follow what I see in the wild; not sure about this
either.
2014-07-12 20:10:05 -03:00
yamadapc 342da0b563 Use a generic function for the colorHelper.
Instead of using a template. This is cleaner; I don't know why it didn't
come to my mind. I'm not sure if it's possible to make it work while
using the private specifier.
2014-07-12 20:07:30 -03:00
yamadapc be783f8fe1 Try cleaning-up the module with templates.
I'm not sure about this, but it saves a few lines and is still pretty
easy to understand, while having no runtime cost.
2014-07-12 19:49:05 -03:00
yamadapc fc2a2dd537 Fix the proposed helper functions.
I think this can be simplified with templates. I'm wondering if the
colorize function could be made compile-time when that's possible.
2014-07-12 19:32:59 -03:00
yamadapc 5f944fad66 Use const str parameters.
This is a more reasonable approach.
2014-07-12 19:32:26 -03:00
yamadapc 9f4fddd188 Add separate functions for each coloring type.
This is more than a draft; I'm just jotting down ideas to see how they
look on the screen.
2014-07-11 20:30:13 -03:00
yamadapc 3bf0b6844c Add unscientific string vs. enum benchmarks.
You should take this with a grain of salt.
2014-07-11 20:18:35 -03:00
yamadapc 38ee1195c9 Fix README fg listing.
Underscores in code snippets don't need to be escaped. My bad.
2014-07-10 03:06:51 -03:00
yamadapc 4a227f46c1 Add build status badge and bump version.
I'm doing this simply to have the cleaned-up in the registry.
2014-07-10 00:06:21 -03:00
yamadapc 077b217903 Add travis.yml.
Based on https://github.com/MartinNowak/bloom/blob/master/.travis.yml.
2014-07-10 00:03:36 -03:00
yamadapc 90864d2983 Fix the README example. 2014-07-09 23:42:46 -03:00
yamadapc 81e337c4c9 Add dub registry link to the README. 2014-07-09 23:38:24 -03:00
yamadapc bfe2817360 Make final fixes to the dub.json and the README.
This should enable us to publish the package to the dub registry.
2014-07-09 23:36:54 -03:00
yamadapc e3a7b70d29 Try to fix the README formatting in github.
It looked bad; this isn't final.
2014-07-09 23:30:09 -03:00
yamadapc 6a7a12ff9d Add version number to the dub.json
I'm not sure this is supported, but it should be.
2014-07-09 23:26:57 -03:00
yamadapc 321a3664ef Start adding proper documentation.
I still have to add travis-ci testing and publish this package to the
dub directory.
2014-07-09 23:24:24 -03:00
yamadapc 304f29787e Initial commit. 2014-07-09 13:50:01 -03:00