From ce62dd6106f94473db919335cc49029421fde4ad Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Fri, 6 Jan 2023 17:02:56 -0700 Subject: Board drawing working --- lib/chessh/ssh/screens/menu.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chessh/ssh/screens/menu.ex') diff --git a/lib/chessh/ssh/screens/menu.ex b/lib/chessh/ssh/screens/menu.ex index f89670f..9baa059 100644 --- a/lib/chessh/ssh/screens/menu.ex +++ b/lib/chessh/ssh/screens/menu.ex @@ -38,7 +38,7 @@ defmodule Chessh.SSH.Client.Menu do {y, x} = center_rect({logo_width, logo_height + length(text)}, {width, height}) Enum.flat_map( - Enum.zip(0..(length(text) - 1), text), + Enum.zip(1..length(text), text), fn {i, line} -> [ ANSI.cursor(y + i + dy, x + dx), -- cgit v1.3