# What replaces setConsoleWindowEnabled?

**URL:** <https://discourse.libcinder.org/t/what-replaces-setconsolewindowenabled/934>\
**Category:** Uncategorized\
**Created:** [November 3, 2017, 9:08pm UTC](https://discourse.libcinder.org/t/what-replaces-setconsolewindowenabled/934 "2017-11-03T21:08:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Monov](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/stefan_monov/32/476_2.png) [@Stefan\_Monov](https://discourse.libcinder.org/u/Stefan_Monov)\
**Post date:** [November 3, 2017, 9:08pm UTC](https://discourse.libcinder.org/t/what-replaces-setconsolewindowenabled/934/1 "2017-11-03T21:08:35Z")

</div>

setConsoleWindowEnabled seems to be gone in the latest ver. What replaces it?

---

<div class="post-metadata">

**Author:** ![sharkbox](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/sharkbox/32/39_2.png) [@sharkbox](https://discourse.libcinder.org/u/sharkbox)\
**Post date:** [November 3, 2017, 9:51pm UTC](https://discourse.libcinder.org/t/what-replaces-setconsolewindowenabled/934/2 "2017-11-03T21:51:32Z")

</div>

It seems like it’s still there: [https://github.com/cinder/Cinder/blob/e5a75c5f14664ff66befc554ad2396bd6696e94e/include/cinder/app/msw/AppMsw.h#L41](https://github.com/cinder/Cinder/blob/e5a75c5f14664ff66befc554ad2396bd6696e94e/include/cinder/app/msw/AppMsw.h#L41) You have to call it when you first start your app in the app settings, I’m not sure if this is different than it used to be. In your main file it looks like this:

```
CINDER_APP(MainApp, RendererGl, [&](ci::app::App::Settings *settings)
{
    settings->setConsoleWindowEnabled();
})

```

In this example I’m using a lambda to make it easy, but you could also have a function you call separately to do your settings. It only happens once at the very beginning of your app.

---

<div class="post-metadata">

**Author:** ![Stefan\_Monov](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/stefan_monov/32/476_2.png) [@Stefan\_Monov](https://discourse.libcinder.org/u/Stefan_Monov)\
**Post date:** [November 4, 2017, 1:20pm UTC](https://discourse.libcinder.org/t/what-replaces-setconsolewindowenabled/934/3 "2017-11-04T13:20:23Z")

</div>

Thanks, that works. I missed it before.
