Console-posix: Reset color on shutdown

Ensures that dfhack-run doesn't leave behind a colorful prompt
develop
lethosor 2020-03-25 00:30:12 -04:00
parent 65a7db44be
commit 67908e0f53
1 changed files with 1 additions and 0 deletions

@ -858,6 +858,7 @@ bool Console::shutdown(void)
{
if(!d)
return true;
d->reset_color();
lock_guard <recursive_mutex> g(*wlock);
close(d->exit_pipe[1]);
if (d->state != Private::con_lineedit)