News for hackers. Stuff that matters.
Re:A chess terminal user interface implementation by shmageggy on Tuesday December 05, 2023 @11:18PM (#38540427)
It has always bothered me that there are no Unicode code points for the left/right halves of chess pieces, which would enable a nearly square board using two characters per square.

This is a nice solution, but it makes for a rather big board.

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.

https://en.wikipedia.org/wiki/Block_Elements