Re:A chess terminal user interface implementation
by colanderman on Tuesday December 05, 2023 @11:42PM
(#38540538)
Behold, DEC double-width mode:
echo -e '\033#6♔♕♖♗♘♙♚♛♜♝♞♟'
(best viewed in xterm)
Re:A chess terminal user interface implementation
by shmageggy on Wednesday December 06, 2023 @06:56AM
(#38542717)
This gets the correct aspect ratio but the glyphs (on my terminal) look stretched :(
Re:A chess terminal user interface implementation
by saulpw on Wednesday December 06, 2023 @01:17AM
(#38540951)
You can be clever and use half-blocks: ♘
Re:A chess terminal user interface implementation
by shmageggy on Wednesday December 06, 2023 @07:00AM
(#38542746)
What's a half-block and how do I use one?
Re:A chess terminal user interface implementation
by saulpw on Wednesday December 06, 2023 @12:33PM
(#38546973)
Sorry, that didn't render. They're U+258C and U+2590. So you put them on either side and each square is rendered across 3 cells, and the 2 outer cells are half-blocks shared with the adjacent squares.
This is a nice solution, but it makes for a rather big board.