winpty/agent
Ryan Prichard a998bcf207 Rewrite the color translation heuristic.
* Use the Bold(1) SGR parameter in only one case -- White-on-Black.

 * Use the 0x9X and 0x10X SGR parameters to set intense/bright colors for
   both foreground and background.

Detailed changes:

 * DkGray background:
    - Previously, this background was handled identically to the Black
      background.
    - Now it is treated like the non-grayscale colors, and the
      foreground/background are set exactly.

 * Black background:
    - LtGray foreground is unchanged: default text colors
    - White foreground is unchanged: text is bolded
    - DkGray is fixed: instead of concealing the text, set the foreground
      to DkGray, falling back to LtGray.

 * LtGray background:
    - Previously, this background was handled exactly the same way as the
      White background.
    - Now it is treated like any other non-grayscale color.

 * White background:
    - Black foreground is unchanged: only an Invert is output.
    - LtGray: previously, the text was concealed.  Now it is handled like
      Black, and only an Invert is output.
    - DkGray: previously only Invert was output.  Now DkGray is also
      output.
    - White is effectively unchanged; it is still concealed if possible.

Also: set the console colors to LtGray-on-Black on startup.  The
heuristic makes little sense with other colors.

Fixes https://github.com/rprichard/winpty/issues/39
2015-10-13 02:12:59 -05:00
..
Agent.cc Rewrite the color translation heuristic. 2015-10-13 02:12:59 -05:00
Agent.h Factor out line content tracking into a ConsoleLine class. 2015-09-29 04:53:43 -05:00
AgentAssert.cc Rename Shared to shared and Misc to misc. 2012-04-01 02:13:21 -07:00
AgentAssert.h Add an MIT copyright notice to all the source files. 2012-03-23 03:11:34 -07:00
ConsoleFont.cc Rewrite console font changing. 2015-10-11 04:42:36 -05:00
ConsoleFont.h Rewrite console font changing. 2015-10-11 04:42:36 -05:00
ConsoleInput.cc Handle Shift-Tab. 2015-09-29 05:41:44 -05:00
ConsoleInput.h Rewrite resize logic, introduce "direct mode", and tweak scroll scraping. 2015-09-29 02:32:49 -05:00
ConsoleLine.cc Factor out line content tracking into a ConsoleLine class. 2015-09-29 04:53:43 -05:00
ConsoleLine.h Factor out line content tracking into a ConsoleLine class. 2015-09-29 04:53:43 -05:00
Coord.cc Add an MIT copyright notice to all the source files. 2012-03-23 03:11:34 -07:00
Coord.h Add an MIT copyright notice to all the source files. 2012-03-23 03:11:34 -07:00
DsrSender.h Add an MIT copyright notice to all the source files. 2012-03-23 03:11:34 -07:00
EventLoop.cc Rename Shared to shared and Misc to misc. 2012-04-01 02:13:21 -07:00
EventLoop.h Add an MIT copyright notice to all the source files. 2012-03-23 03:11:34 -07:00
main.cc In winpty-agent, print an error message if the arguments are invalid. 2012-12-20 04:20:10 -08:00
Makefile Rewrite console font changing. 2015-10-11 04:42:36 -05:00
NamedPipe.cc Include <algorithm> for std::min and std::max 2014-08-07 21:20:16 -04:00
NamedPipe.h Add an MIT copyright notice to all the source files. 2012-03-23 03:11:34 -07:00
SmallRect.cc Add an MIT copyright notice to all the source files. 2012-03-23 03:11:34 -07:00
SmallRect.h Rewrite resize logic, introduce "direct mode", and tweak scroll scraping. 2015-09-29 02:32:49 -05:00
Terminal.cc Rewrite the color translation heuristic. 2015-10-13 02:12:59 -05:00
Terminal.h Rewrite the color translation heuristic. 2015-10-13 02:12:59 -05:00
Win32Console.cc Rewrite the color translation heuristic. 2015-10-13 02:12:59 -05:00
Win32Console.h Rewrite the color translation heuristic. 2015-10-13 02:12:59 -05:00
winpty_wcsnlen.cc Rewrite console font changing. 2015-10-11 04:42:36 -05:00
winpty_wcsnlen.h Rewrite console font changing. 2015-10-11 04:42:36 -05:00