phyver / GameShell

a game to learn (or teach) how to use standard commands in a Unix shell
GNU General Public License v3.0
2.17k stars 138 forks source link

Have the width of goal files adapt to the terminal size #42

Closed phyver closed 3 years ago

phyver commented 3 years ago

Currently, goal files have a with of 69 characters. On wide terminals, this might be too narrow.

We could try having the width adapt to the terminal size.

rlepigre commented 3 years ago

Maybe we should just write a tool to fully parse these files, and there write a printing function that takes a maximum width as argument. We could then use ANSI escape codes to do a bit of formatting.

Personally, I think we should avoid the troff syntax: it is quite horrible. We could probably just parse the files as they are now, possibly some marker characters when we want to align stuff.

phyver commented 3 years ago

Yep, I agree. see #43

phyver commented 3 years ago

closed, see cfc9192fe2cd8b8e8c6f2f50f8c90ab5fe0ea071