tapio / rlutil

C and C++ utilities for cross-platform console roguelike game creation.
http://tapio.github.com/rlutil/
229 stars 42 forks source link

Intensity handling with resetColor() #16

Closed tapio closed 8 years ago

tapio commented 8 years ago

Regarding #5 and #15, the color can now be reset, but the intensity (that some terminals display as bold font) is not handled, at least with ANSI. This can be seen at least on Gnome Terminal with the test.cpp program as after reseting the color after the first test, all following text appears bold and not regular weight.

I think there should be some discussion whether the resetColor() function should reset other text styling attributes too, or if we should support that with separate functions. Then again Windows CMD probably offers rather limited support for styling and I think the current behaviour of resetColor() there is to reset all attributes.

nabijaczleweli commented 8 years ago

These are all character attributes Windows can handle, and they are all that is saved in saveDefaultColor().

nabijaczleweli commented 8 years ago

Could you test https://github.com/nabijaczleweli/rlutil/commit/bbc86915d518ef3218b4233f0998fec46e2d21e0 on Linux?