summaryrefslogtreecommitdiff
path: root/lib/chessh/ssh/screens/menu.ex
diff options
context:
space:
mode:
authorLogan Hunt <logan.hunt@usu.edu>2023-01-06 17:02:56 -0700
committerLogan Hunt <logan.hunt@usu.edu>2023-01-06 17:48:26 -0700
commitce62dd6106f94473db919335cc49029421fde4ad (patch)
tree6597fda0878c13f75c53e0b8ae6200e1375696aa /lib/chessh/ssh/screens/menu.ex
parentbff9fd0a6ae8b1f034e4d20007b442957539e7ec (diff)
downloadchessh-ce62dd6106f94473db919335cc49029421fde4ad.tar.gz
chessh-ce62dd6106f94473db919335cc49029421fde4ad.zip
Board drawing working
Diffstat (limited to 'lib/chessh/ssh/screens/menu.ex')
-rw-r--r--lib/chessh/ssh/screens/menu.ex2
1 files changed, 1 insertions, 1 deletions
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),