From bf9363aaf8d5d2ef2360caad85f2c518a7ccbf5c Mon Sep 17 00:00:00 2001 From: Simponic Date: Wed, 8 Feb 2023 22:06:58 -0700 Subject: Show previous move in message body, which notification is now instant, add check highlighting --- lib/chessh/ssh/client/game/renderer.ex | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/chessh/ssh/client/game/renderer.ex') diff --git a/lib/chessh/ssh/client/game/renderer.ex b/lib/chessh/ssh/client/game/renderer.ex index 6d7d7a7..c7d3a96 100644 --- a/lib/chessh/ssh/client/game/renderer.ex +++ b/lib/chessh/ssh/client/game/renderer.ex @@ -12,6 +12,7 @@ defmodule Chessh.SSH.Client.Game.Renderer do @previous_move_background ANSI.light_magenta_background() @from_select_background ANSI.light_green_background() @to_select_background ANSI.light_yellow_background() + @in_check_color ANSI.yellow_background() @dark_piece_color ANSI.red() @light_piece_color ANSI.light_cyan() @@ -21,6 +22,7 @@ defmodule Chessh.SSH.Client.Game.Renderer do def to_select_background(), do: @to_select_background def from_select_background(), do: @from_select_background def previous_move_background(), do: @previous_move_background + def in_check_color(), do: @in_check_color def to_chess_coord({y, x}) when x >= 0 and x < @chess_board_width and y >= 0 and y < @chess_board_height do -- cgit v1.2.3-70-g09d2