Sample Header Ad - 728x90

ANSI Colors when using Systemd Service

2 votes
0 answers
626 views
I have setup a server for [SSHTron](http://sshtron.zachlatta.com) , a game which can be played by ssh-ing into a sshtron server. Color matters a lot in this game. I can run the ssh server by running the executable I got: ./sshtron-server And it worked fine, the users were able to play the game in color mode. ssh sshtron.myserver.com I wanted to make a service so that it starts automatically if my system restarts. But when I did, and the users were seeing the game without colors. The following is my sshtron.service file: [Unit] Description=SSHTron [Service] Type=simple WorkingDirectory=/home/pi/go/src/zachlatta/sshtron ExecStart=/home/pi/go/src/zachlatta/sshtron/sshtron-server [Install] WantedBy=multi-user.target **UPDATED:** I tried to wrap the server in a *Docker* container as well, but the result is same, no colors. :( **UPDATED:** Looks like we need to find a way to allocate a pseudo-tty and run sshtron over it, using systemd.
Asked by Ali Yousuf (121 rep)
Mar 21, 2017, 08:30 PM
Last activity: Mar 27, 2017, 06:50 AM