mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-17 03:46:35 +01:00
stderr redirect doesn't work as intended, add invalid command message when no sound
This commit is contained in:
@@ -705,12 +705,6 @@ int main(int argc, char *argv[])
|
||||
useconds_t msleepval = 40000;
|
||||
uint64_t loopcount = 0;
|
||||
|
||||
|
||||
/* Redirect stdout to /dev/null
|
||||
* NOTE: Might not be best solution
|
||||
*/
|
||||
freopen("/dev/null", "w", stderr);
|
||||
|
||||
while (true) {
|
||||
update_unix_time();
|
||||
do_toxic(m, prompt);
|
||||
|
||||
Reference in New Issue
Block a user