{"action":"created","issue":{"url":"https://api.github.com/repos/NyxStudios/TShock/issues/1139","labels_url":"https://api.github.com/repos/NyxStudios/TShock/issues/1139/labels{/name}","comments_url":"https://api.github.com/repos/NyxStudios/TShock/issues/1139/comments","events_url":"https://api.github.com/repos/NyxStudios/TShock/issues/1139/events","html_url":"https://github.com/NyxStudios/TShock/issues/1139","id":119802387,"number":1139,"title":"TerrariaServer is running in the background and input is disabled.","user":{"login":"c0m4r","id":6292788,"avatar_url":"https://avatars.githubusercontent.com/u/6292788?v=3","gravatar_id":"","url":"https://api.github.com/users/c0m4r","html_url":"https://github.com/c0m4r","followers_url":"https://api.github.com/users/c0m4r/followers","following_url":"https://api.github.com/users/c0m4r/following{/other_user}","gists_url":"https://api.github.com/users/c0m4r/gists{/gist_id}","starred_url":"https://api.github.com/users/c0m4r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c0m4r/subscriptions","organizations_url":"https://api.github.com/users/c0m4r/orgs","repos_url":"https://api.github.com/users/c0m4r/repos","events_url":"https://api.github.com/users/c0m4r/events{/privacy}","received_events_url":"https://api.github.com/users/c0m4r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-01T20:36:23Z","updated_at":"2015-12-02T00:42:27Z","closed_at":null,"body":"Hello,\r\n\r\nAfter one of the latest updates of Tshock the server console is read-only. I am no longer able to get the output from commands entered directly to the server's console. What I noticed is this \"TerrariaServer is running in the background and input is disabled.\" notice. Now, I've tried to find a cvar that is responsible for this, but I found nothing like this. Also googling for keywords like \"terraria server\" and \"background\" is pointless, since all the articles are about running processes in background (using nohup, screen, etc.) and that is not the point. So, is there any way to enable console input again?\r\n\r\nBest regards,\r\nAndrew"},"comment":{"url":"https://api.github.com/repos/NyxStudios/TShock/issues/comments/161142625","html_url":"https://github.com/NyxStudios/TShock/issues/1139#issuecomment-161142625","issue_url":"https://api.github.com/repos/NyxStudios/TShock/issues/1139","id":161142625,"user":{"login":"tylerjwatson","id":5001408,"avatar_url":"https://avatars.githubusercontent.com/u/5001408?v=3","gravatar_id":"","url":"https://api.github.com/users/tylerjwatson","html_url":"https://github.com/tylerjwatson","followers_url":"https://api.github.com/users/tylerjwatson/followers","following_url":"https://api.github.com/users/tylerjwatson/following{/other_user}","gists_url":"https://api.github.com/users/tylerjwatson/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerjwatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerjwatson/subscriptions","organizations_url":"https://api.github.com/users/tylerjwatson/orgs","repos_url":"https://api.github.com/users/tylerjwatson/repos","events_url":"https://api.github.com/users/tylerjwatson/events{/privacy}","received_events_url":"https://api.github.com/users/tylerjwatson/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T00:42:27Z","updated_at":"2015-12-02T00:42:27Z","body":"Hi,\r\n\r\nIt isn't clear what you are trying to acheive, so I am going to assume that you're running TShock in the background, and this is by design.  Typically if it's run in the background and there is no controlling tty then there is no point in keeping a console thread waiting for input it will never receive.  Being terraria is a poorly performing product as it is, this was an intentional choice to gain some performance, and to be a well-behaved unix daemon.\r\n\r\nUsing a console interface only makes sense when it's running in a console. Things like `nohup` will destroy a controlling terminal and thus TShock won't run a console input.\r\n\r\nIf you are running in a terminal (without redirecting stdin) and you still get that background message then we have a problem.  Otherwise, if it's genuinely running in the background then that is by design, and you may want to consider using REST to interact with TShock instead of trying to use terminal chatting.\r\n\r\nCheers"}}