Terminal.Gui.Application.html 89 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660
  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Class Application
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class Application
  11. ">
  12. <meta name="generator" content="docfx 2.59.4.0">
  13. <link rel="shortcut icon" href="../../favicon.ico">
  14. <link rel="stylesheet" href="../../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../../styles/docfx.css">
  16. <link rel="stylesheet" href="../../styles/main.css">
  17. <link href="https://fonts.googleapis.com/css?family=Source Sans Pro" rel="stylesheet">
  18. <link href="https://fonts.googleapis.com/css?family=Source Code Pro" rel="stylesheet">
  19. <meta property="docfx:navrel" content="../../toc.html">
  20. <meta property="docfx:tocrel" content="toc.html">
  21. <meta property="docfx:rel" content="../../">
  22. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  23. <div id="wrapper">
  24. <header>
  25. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  26. <div class="container">
  27. <div class="navbar-header">
  28. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  29. <span class="sr-only">Toggle navigation</span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. </button>
  34. <a class="navbar-brand" href="../../index.html">
  35. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  36. </a>
  37. </div>
  38. <div class="collapse navbar-collapse" id="navbar">
  39. <form class="navbar-form navbar-right" role="search" id="search">
  40. <div class="form-group">
  41. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. </nav>
  47. <div class="subnav navbar navbar-default">
  48. <div class="container hide-when-search" id="breadcrumb">
  49. <ul class="breadcrumb">
  50. <li></li>
  51. </ul>
  52. </div>
  53. </div>
  54. </header>
  55. <div class="container body-content">
  56. <div id="search-results">
  57. <div class="search-list">Search Results for <span></span></div>
  58. <div class="sr-items">
  59. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  60. </div>
  61. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  62. </div>
  63. </div>
  64. <div role="main" class="container body-content hide-when-search">
  65. <div class="sidenav hide-when-search">
  66. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  67. <div class="sidetoggle collapse" id="sidetoggle">
  68. <div id="sidetoc"></div>
  69. </div>
  70. </div>
  71. <div class="article row grid-right">
  72. <div class="col-md-10">
  73. <article class="content wrap" id="_content" data-uid="Terminal.Gui.Application">
  74. <h1 id="Terminal_Gui_Application" data-uid="Terminal.Gui.Application" class="text-break">Class Application
  75. </h1>
  76. <div class="markdown level0 summary">
  77. A static, singleton class providing the main application driver for Terminal.Gui apps.
  78. </div>
  79. <div class="markdown level0 conceptual"></div>
  80. <div class="inheritance">
  81. <h5>Inheritance</h5>
  82. <div class="level0"><span class="xref">System.Object</span></div>
  83. <div class="level1"><span class="xref">Application</span></div>
  84. </div>
  85. <h5 id="Terminal_Gui_Application_remarks"><strong>Remarks</strong></h5>
  86. <div class="markdown level0 remarks">
  87. <p>
  88. Creates a instance of <a class="xref" href="Terminal.Gui.MainLoop.html">MainLoop</a> to process input events, handle timers and
  89. other sources of data. It is accessible via the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_MainLoop">MainLoop</a> property.
  90. </p>
  91. <p>
  92. You can hook up to the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Iteration">Iteration</a> event to have your method
  93. invoked on each iteration of the <a class="xref" href="Terminal.Gui.MainLoop.html">MainLoop</a>.
  94. </p>
  95. <p>
  96. When invoked sets the SynchronizationContext to one that is tied
  97. to the mainloop, allowing user code to use async/await.
  98. </p>
  99. </div>
  100. <h5 id="Terminal_Gui_Application_examples"><strong>Examples</strong></h5>
  101. <pre><code>// A simple Terminal.Gui app that creates a window with a frame and title with
  102. // 5 rows/columns of padding.
  103. Application.Init();
  104. var win = new Window (&quot;Hello World - CTRL-Q to quit&quot;) {
  105. X = 5,
  106. Y = 5,
  107. Width = Dim.Fill (5),
  108. Height = Dim.Fill (5)
  109. };
  110. Application.Top.Add(win);
  111. Application.Run();
  112. Application.Shutdown();</code></pre>
  113. <div class="inheritedMembers">
  114. <h5>Inherited Members</h5>
  115. <div>
  116. <span class="xref">System.Object.Equals(System.Object)</span>
  117. </div>
  118. <div>
  119. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  120. </div>
  121. <div>
  122. <span class="xref">System.Object.GetHashCode()</span>
  123. </div>
  124. <div>
  125. <span class="xref">System.Object.GetType()</span>
  126. </div>
  127. <div>
  128. <span class="xref">System.Object.MemberwiseClone()</span>
  129. </div>
  130. <div>
  131. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  132. </div>
  133. <div>
  134. <span class="xref">System.Object.ToString()</span>
  135. </div>
  136. </div>
  137. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  138. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  139. <h5 id="Terminal_Gui_Application_syntax">Syntax</h5>
  140. <div class="codewrapper">
  141. <pre><code class="lang-csharp hljs">public static class Application</code></pre>
  142. </div>
  143. <h3 id="fields">Fields
  144. </h3>
  145. <span class="small pull-right mobile-hide">
  146. <span class="divider">|</span>
  147. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_Driver.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.Driver%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  148. </span>
  149. <span class="small pull-right mobile-hide">
  150. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L65">View Source</a>
  151. </span>
  152. <h4 id="Terminal_Gui_Application_Driver" data-uid="Terminal.Gui.Application.Driver">Driver</h4>
  153. <div class="markdown level1 summary">
  154. The current <a class="xref" href="Terminal.Gui.ConsoleDriver.html">ConsoleDriver</a> in use.
  155. </div>
  156. <div class="markdown level1 conceptual"></div>
  157. <h5 class="decalaration">Declaration</h5>
  158. <div class="codewrapper">
  159. <pre><code class="lang-csharp hljs">public static ConsoleDriver Driver</code></pre>
  160. </div>
  161. <h5 class="fieldValue">Field Value</h5>
  162. <table class="table table-bordered table-striped table-condensed">
  163. <thead>
  164. <tr>
  165. <th>Type</th>
  166. <th>Description</th>
  167. </tr>
  168. </thead>
  169. <tbody>
  170. <tr>
  171. <td><a class="xref" href="Terminal.Gui.ConsoleDriver.html">ConsoleDriver</a></td>
  172. <td></td>
  173. </tr>
  174. </tbody>
  175. </table>
  176. <span class="small pull-right mobile-hide">
  177. <span class="divider">|</span>
  178. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_Iteration.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.Iteration%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  179. </span>
  180. <span class="small pull-right mobile-hide">
  181. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L261">View Source</a>
  182. </span>
  183. <h4 id="Terminal_Gui_Application_Iteration" data-uid="Terminal.Gui.Application.Iteration">Iteration</h4>
  184. <div class="markdown level1 summary">
  185. This event is raised on each iteration of the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_MainLoop">MainLoop</a>.
  186. </div>
  187. <div class="markdown level1 conceptual"></div>
  188. <h5 class="decalaration">Declaration</h5>
  189. <div class="codewrapper">
  190. <pre><code class="lang-csharp hljs">public static Action Iteration</code></pre>
  191. </div>
  192. <h5 class="fieldValue">Field Value</h5>
  193. <table class="table table-bordered table-striped table-condensed">
  194. <thead>
  195. <tr>
  196. <th>Type</th>
  197. <th>Description</th>
  198. </tr>
  199. </thead>
  200. <tbody>
  201. <tr>
  202. <td><span class="xref">System.Action</span></td>
  203. <td></td>
  204. </tr>
  205. </tbody>
  206. </table>
  207. <span class="small pull-right mobile-hide">
  208. <span class="divider">|</span>
  209. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_Resized.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.Resized%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  210. </span>
  211. <span class="small pull-right mobile-hide">
  212. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L1578">View Source</a>
  213. </span>
  214. <h4 id="Terminal_Gui_Application_Resized" data-uid="Terminal.Gui.Application.Resized">Resized</h4>
  215. <div class="markdown level1 summary">
  216. Invoked when the terminal was resized. The new size of the terminal is provided.
  217. </div>
  218. <div class="markdown level1 conceptual"></div>
  219. <h5 class="decalaration">Declaration</h5>
  220. <div class="codewrapper">
  221. <pre><code class="lang-csharp hljs">public static Action&lt;Application.ResizedEventArgs&gt; Resized</code></pre>
  222. </div>
  223. <h5 class="fieldValue">Field Value</h5>
  224. <table class="table table-bordered table-striped table-condensed">
  225. <thead>
  226. <tr>
  227. <th>Type</th>
  228. <th>Description</th>
  229. </tr>
  230. </thead>
  231. <tbody>
  232. <tr>
  233. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Application.ResizedEventArgs.html">Application.ResizedEventArgs</a>&gt;</td>
  234. <td></td>
  235. </tr>
  236. </tbody>
  237. </table>
  238. <span class="small pull-right mobile-hide">
  239. <span class="divider">|</span>
  240. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_RootKeyEvent.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.RootKeyEvent%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  241. </span>
  242. <span class="small pull-right mobile-hide">
  243. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L785">View Source</a>
  244. </span>
  245. <h4 id="Terminal_Gui_Application_RootKeyEvent" data-uid="Terminal.Gui.Application.RootKeyEvent">RootKeyEvent</h4>
  246. <div class="markdown level1 summary">
  247. <p>
  248. Called for new KeyPress events before any processing is performed or
  249. views evaluate. Use for global key handling and/or debugging.
  250. </p>
  251. <p>Return true to suppress the KeyPress event</p>
  252. </div>
  253. <div class="markdown level1 conceptual"></div>
  254. <h5 class="decalaration">Declaration</h5>
  255. <div class="codewrapper">
  256. <pre><code class="lang-csharp hljs">public static Func&lt;KeyEvent, bool&gt; RootKeyEvent</code></pre>
  257. </div>
  258. <h5 class="fieldValue">Field Value</h5>
  259. <table class="table table-bordered table-striped table-condensed">
  260. <thead>
  261. <tr>
  262. <th>Type</th>
  263. <th>Description</th>
  264. </tr>
  265. </thead>
  266. <tbody>
  267. <tr>
  268. <td><span class="xref">System.Func</span>&lt;<a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a>, <span class="xref">System.Boolean</span>&gt;</td>
  269. <td></td>
  270. </tr>
  271. </tbody>
  272. </table>
  273. <span class="small pull-right mobile-hide">
  274. <span class="divider">|</span>
  275. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_RootMouseEvent.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.RootMouseEvent%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  276. </span>
  277. <span class="small pull-right mobile-hide">
  278. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L776">View Source</a>
  279. </span>
  280. <h4 id="Terminal_Gui_Application_RootMouseEvent" data-uid="Terminal.Gui.Application.RootMouseEvent">RootMouseEvent</h4>
  281. <div class="markdown level1 summary">
  282. Merely a debugging aid to see the raw mouse events
  283. </div>
  284. <div class="markdown level1 conceptual"></div>
  285. <h5 class="decalaration">Declaration</h5>
  286. <div class="codewrapper">
  287. <pre><code class="lang-csharp hljs">public static Action&lt;MouseEvent&gt; RootMouseEvent</code></pre>
  288. </div>
  289. <h5 class="fieldValue">Field Value</h5>
  290. <table class="table table-bordered table-striped table-condensed">
  291. <thead>
  292. <tr>
  293. <th>Type</th>
  294. <th>Description</th>
  295. </tr>
  296. </thead>
  297. <tbody>
  298. <tr>
  299. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a>&gt;</td>
  300. <td></td>
  301. </tr>
  302. </tbody>
  303. </table>
  304. <h3 id="properties">Properties
  305. </h3>
  306. <span class="small pull-right mobile-hide">
  307. <span class="divider">|</span>
  308. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_AlternateBackwardKey.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.AlternateBackwardKey%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  309. </span>
  310. <span class="small pull-right mobile-hide">
  311. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L168">View Source</a>
  312. </span>
  313. <a id="Terminal_Gui_Application_AlternateBackwardKey_" data-uid="Terminal.Gui.Application.AlternateBackwardKey*"></a>
  314. <h4 id="Terminal_Gui_Application_AlternateBackwardKey" data-uid="Terminal.Gui.Application.AlternateBackwardKey">AlternateBackwardKey</h4>
  315. <div class="markdown level1 summary">
  316. Alternative key to navigate backwards through views. Shift+Ctrl+Tab is the primary key.
  317. </div>
  318. <div class="markdown level1 conceptual"></div>
  319. <h5 class="decalaration">Declaration</h5>
  320. <div class="codewrapper">
  321. <pre><code class="lang-csharp hljs">public static Key AlternateBackwardKey { get; set; }</code></pre>
  322. </div>
  323. <h5 class="propertyValue">Property Value</h5>
  324. <table class="table table-bordered table-striped table-condensed">
  325. <thead>
  326. <tr>
  327. <th>Type</th>
  328. <th>Description</th>
  329. </tr>
  330. </thead>
  331. <tbody>
  332. <tr>
  333. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  334. <td></td>
  335. </tr>
  336. </tbody>
  337. </table>
  338. <span class="small pull-right mobile-hide">
  339. <span class="divider">|</span>
  340. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_AlternateForwardKey.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.AlternateForwardKey%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  341. </span>
  342. <span class="small pull-right mobile-hide">
  343. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L145">View Source</a>
  344. </span>
  345. <a id="Terminal_Gui_Application_AlternateForwardKey_" data-uid="Terminal.Gui.Application.AlternateForwardKey*"></a>
  346. <h4 id="Terminal_Gui_Application_AlternateForwardKey" data-uid="Terminal.Gui.Application.AlternateForwardKey">AlternateForwardKey</h4>
  347. <div class="markdown level1 summary">
  348. Alternative key to navigate forwards through views. Ctrl+Tab is the primary key.
  349. </div>
  350. <div class="markdown level1 conceptual"></div>
  351. <h5 class="decalaration">Declaration</h5>
  352. <div class="codewrapper">
  353. <pre><code class="lang-csharp hljs">public static Key AlternateForwardKey { get; set; }</code></pre>
  354. </div>
  355. <h5 class="propertyValue">Property Value</h5>
  356. <table class="table table-bordered table-striped table-condensed">
  357. <thead>
  358. <tr>
  359. <th>Type</th>
  360. <th>Description</th>
  361. </tr>
  362. </thead>
  363. <tbody>
  364. <tr>
  365. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  366. <td></td>
  367. </tr>
  368. </tbody>
  369. </table>
  370. <span class="small pull-right mobile-hide">
  371. <span class="divider">|</span>
  372. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_Current.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.Current%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  373. </span>
  374. <span class="small pull-right mobile-hide">
  375. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L106">View Source</a>
  376. </span>
  377. <a id="Terminal_Gui_Application_Current_" data-uid="Terminal.Gui.Application.Current*"></a>
  378. <h4 id="Terminal_Gui_Application_Current" data-uid="Terminal.Gui.Application.Current">Current</h4>
  379. <div class="markdown level1 summary">
  380. The current <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> object. This is updated when <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Run_System_Func_System_Exception_System_Boolean__">Run(Func&lt;Exception, Boolean&gt;)</a> enters and leaves to point to the current <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> .
  381. </div>
  382. <div class="markdown level1 conceptual"></div>
  383. <h5 class="decalaration">Declaration</h5>
  384. <div class="codewrapper">
  385. <pre><code class="lang-csharp hljs">public static Toplevel Current { get; }</code></pre>
  386. </div>
  387. <h5 class="propertyValue">Property Value</h5>
  388. <table class="table table-bordered table-striped table-condensed">
  389. <thead>
  390. <tr>
  391. <th>Type</th>
  392. <th>Description</th>
  393. </tr>
  394. </thead>
  395. <tbody>
  396. <tr>
  397. <td><a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a></td>
  398. <td>The current.</td>
  399. </tr>
  400. </tbody>
  401. </table>
  402. <span class="small pull-right mobile-hide">
  403. <span class="divider">|</span>
  404. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_EnableConsoleScrolling.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.EnableConsoleScrolling%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  405. </span>
  406. <span class="small pull-right mobile-hide">
  407. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L131">View Source</a>
  408. </span>
  409. <a id="Terminal_Gui_Application_EnableConsoleScrolling_" data-uid="Terminal.Gui.Application.EnableConsoleScrolling*"></a>
  410. <h4 id="Terminal_Gui_Application_EnableConsoleScrolling" data-uid="Terminal.Gui.Application.EnableConsoleScrolling">EnableConsoleScrolling</h4>
  411. <div class="markdown level1 summary">
  412. The current <a class="xref" href="Terminal.Gui.ConsoleDriver.html#Terminal_Gui_ConsoleDriver_EnableConsoleScrolling">EnableConsoleScrolling</a> used in the terminal.
  413. </div>
  414. <div class="markdown level1 conceptual"></div>
  415. <h5 class="decalaration">Declaration</h5>
  416. <div class="codewrapper">
  417. <pre><code class="lang-csharp hljs">[Obsolete(&quot;This API is deprecated and has no impact when enabled.&quot;, false)]
  418. public static bool EnableConsoleScrolling { get; set; }</code></pre>
  419. </div>
  420. <h5 class="propertyValue">Property Value</h5>
  421. <table class="table table-bordered table-striped table-condensed">
  422. <thead>
  423. <tr>
  424. <th>Type</th>
  425. <th>Description</th>
  426. </tr>
  427. </thead>
  428. <tbody>
  429. <tr>
  430. <td><span class="xref">System.Boolean</span></td>
  431. <td></td>
  432. </tr>
  433. </tbody>
  434. </table>
  435. <span class="small pull-right mobile-hide">
  436. <span class="divider">|</span>
  437. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_ExitRunLoopAfterFirstIteration.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.ExitRunLoopAfterFirstIteration%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  438. </span>
  439. <span class="small pull-right mobile-hide">
  440. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L232">View Source</a>
  441. </span>
  442. <a id="Terminal_Gui_Application_ExitRunLoopAfterFirstIteration_" data-uid="Terminal.Gui.Application.ExitRunLoopAfterFirstIteration*"></a>
  443. <h4 id="Terminal_Gui_Application_ExitRunLoopAfterFirstIteration" data-uid="Terminal.Gui.Application.ExitRunLoopAfterFirstIteration">ExitRunLoopAfterFirstIteration</h4>
  444. <div class="markdown level1 summary">
  445. Set to true to cause the RunLoop method to exit after the first iterations.
  446. Set to false (the default) to cause the RunLoop to continue running until Application.RequestStop() is called.
  447. </div>
  448. <div class="markdown level1 conceptual"></div>
  449. <h5 class="decalaration">Declaration</h5>
  450. <div class="codewrapper">
  451. <pre><code class="lang-csharp hljs">public static bool ExitRunLoopAfterFirstIteration { get; set; }</code></pre>
  452. </div>
  453. <h5 class="propertyValue">Property Value</h5>
  454. <table class="table table-bordered table-striped table-condensed">
  455. <thead>
  456. <tr>
  457. <th>Type</th>
  458. <th>Description</th>
  459. </tr>
  460. </thead>
  461. <tbody>
  462. <tr>
  463. <td><span class="xref">System.Boolean</span></td>
  464. <td></td>
  465. </tr>
  466. </tbody>
  467. </table>
  468. <span class="small pull-right mobile-hide">
  469. <span class="divider">|</span>
  470. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_HeightAsBuffer.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.HeightAsBuffer%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  471. </span>
  472. <span class="small pull-right mobile-hide">
  473. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L137">View Source</a>
  474. </span>
  475. <a id="Terminal_Gui_Application_HeightAsBuffer_" data-uid="Terminal.Gui.Application.HeightAsBuffer*"></a>
  476. <h4 id="Terminal_Gui_Application_HeightAsBuffer" data-uid="Terminal.Gui.Application.HeightAsBuffer">HeightAsBuffer</h4>
  477. <div class="markdown level1 summary">
  478. This API is deprecated; use <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_EnableConsoleScrolling">EnableConsoleScrolling</a> instead.
  479. </div>
  480. <div class="markdown level1 conceptual"></div>
  481. <h5 class="decalaration">Declaration</h5>
  482. <div class="codewrapper">
  483. <pre><code class="lang-csharp hljs">[Obsolete(&quot;This API is deprecated and has no impact when enabled.&quot;, false)]
  484. public static bool HeightAsBuffer { get; set; }</code></pre>
  485. </div>
  486. <h5 class="propertyValue">Property Value</h5>
  487. <table class="table table-bordered table-striped table-condensed">
  488. <thead>
  489. <tr>
  490. <th>Type</th>
  491. <th>Description</th>
  492. </tr>
  493. </thead>
  494. <tbody>
  495. <tr>
  496. <td><span class="xref">System.Boolean</span></td>
  497. <td></td>
  498. </tr>
  499. </tbody>
  500. </table>
  501. <span class="small pull-right mobile-hide">
  502. <span class="divider">|</span>
  503. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_IsMouseDisabled.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.IsMouseDisabled%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  504. </span>
  505. <span class="small pull-right mobile-hide">
  506. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L226">View Source</a>
  507. </span>
  508. <a id="Terminal_Gui_Application_IsMouseDisabled_" data-uid="Terminal.Gui.Application.IsMouseDisabled*"></a>
  509. <h4 id="Terminal_Gui_Application_IsMouseDisabled" data-uid="Terminal.Gui.Application.IsMouseDisabled">IsMouseDisabled</h4>
  510. <div class="markdown level1 summary">
  511. Disable or enable the mouse. The mouse is enabled by default.
  512. </div>
  513. <div class="markdown level1 conceptual"></div>
  514. <h5 class="decalaration">Declaration</h5>
  515. <div class="codewrapper">
  516. <pre><code class="lang-csharp hljs">public static bool IsMouseDisabled { get; set; }</code></pre>
  517. </div>
  518. <h5 class="propertyValue">Property Value</h5>
  519. <table class="table table-bordered table-striped table-condensed">
  520. <thead>
  521. <tr>
  522. <th>Type</th>
  523. <th>Description</th>
  524. </tr>
  525. </thead>
  526. <tbody>
  527. <tr>
  528. <td><span class="xref">System.Boolean</span></td>
  529. <td></td>
  530. </tr>
  531. </tbody>
  532. </table>
  533. <span class="small pull-right mobile-hide">
  534. <span class="divider">|</span>
  535. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_MainLoop.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.MainLoop%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  536. </span>
  537. <span class="small pull-right mobile-hide">
  538. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L221">View Source</a>
  539. </span>
  540. <a id="Terminal_Gui_Application_MainLoop_" data-uid="Terminal.Gui.Application.MainLoop*"></a>
  541. <h4 id="Terminal_Gui_Application_MainLoop" data-uid="Terminal.Gui.Application.MainLoop">MainLoop</h4>
  542. <div class="markdown level1 summary">
  543. The <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_MainLoop">MainLoop</a> driver for the application
  544. </div>
  545. <div class="markdown level1 conceptual"></div>
  546. <h5 class="decalaration">Declaration</h5>
  547. <div class="codewrapper">
  548. <pre><code class="lang-csharp hljs">public static MainLoop MainLoop { get; }</code></pre>
  549. </div>
  550. <h5 class="propertyValue">Property Value</h5>
  551. <table class="table table-bordered table-striped table-condensed">
  552. <thead>
  553. <tr>
  554. <th>Type</th>
  555. <th>Description</th>
  556. </tr>
  557. </thead>
  558. <tbody>
  559. <tr>
  560. <td><a class="xref" href="Terminal.Gui.MainLoop.html">MainLoop</a></td>
  561. <td>The main loop.</td>
  562. </tr>
  563. </tbody>
  564. </table>
  565. <span class="small pull-right mobile-hide">
  566. <span class="divider">|</span>
  567. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_MdiChildes.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.MdiChildes%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  568. </span>
  569. <span class="small pull-right mobile-hide">
  570. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L70">View Source</a>
  571. </span>
  572. <a id="Terminal_Gui_Application_MdiChildes_" data-uid="Terminal.Gui.Application.MdiChildes*"></a>
  573. <h4 id="Terminal_Gui_Application_MdiChildes" data-uid="Terminal.Gui.Application.MdiChildes">MdiChildes</h4>
  574. <div class="markdown level1 summary">
  575. Gets all the Mdi childes which represent all the not modal <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> from the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_MdiTop">MdiTop</a>.
  576. </div>
  577. <div class="markdown level1 conceptual"></div>
  578. <h5 class="decalaration">Declaration</h5>
  579. <div class="codewrapper">
  580. <pre><code class="lang-csharp hljs">public static List&lt;Toplevel&gt; MdiChildes { get; }</code></pre>
  581. </div>
  582. <h5 class="propertyValue">Property Value</h5>
  583. <table class="table table-bordered table-striped table-condensed">
  584. <thead>
  585. <tr>
  586. <th>Type</th>
  587. <th>Description</th>
  588. </tr>
  589. </thead>
  590. <tbody>
  591. <tr>
  592. <td><span class="xref">System.Collections.Generic.List</span>&lt;<a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>&gt;</td>
  593. <td></td>
  594. </tr>
  595. </tbody>
  596. </table>
  597. <span class="small pull-right mobile-hide">
  598. <span class="divider">|</span>
  599. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_MdiTop.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.MdiTop%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  600. </span>
  601. <span class="small pull-right mobile-hide">
  602. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L87">View Source</a>
  603. </span>
  604. <a id="Terminal_Gui_Application_MdiTop_" data-uid="Terminal.Gui.Application.MdiTop*"></a>
  605. <h4 id="Terminal_Gui_Application_MdiTop" data-uid="Terminal.Gui.Application.MdiTop">MdiTop</h4>
  606. <div class="markdown level1 summary">
  607. The <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> object used for the application on startup which <a class="xref" href="Terminal.Gui.Toplevel.html#Terminal_Gui_Toplevel_IsMdiContainer">IsMdiContainer</a> is true.
  608. </div>
  609. <div class="markdown level1 conceptual"></div>
  610. <h5 class="decalaration">Declaration</h5>
  611. <div class="codewrapper">
  612. <pre><code class="lang-csharp hljs">public static Toplevel MdiTop { get; }</code></pre>
  613. </div>
  614. <h5 class="propertyValue">Property Value</h5>
  615. <table class="table table-bordered table-striped table-condensed">
  616. <thead>
  617. <tr>
  618. <th>Type</th>
  619. <th>Description</th>
  620. </tr>
  621. </thead>
  622. <tbody>
  623. <tr>
  624. <td><a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a></td>
  625. <td></td>
  626. </tr>
  627. </tbody>
  628. </table>
  629. <span class="small pull-right mobile-hide">
  630. <span class="divider">|</span>
  631. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_MouseGrabView.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.MouseGrabView%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  632. </span>
  633. <span class="small pull-right mobile-hide">
  634. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L693">View Source</a>
  635. </span>
  636. <a id="Terminal_Gui_Application_MouseGrabView_" data-uid="Terminal.Gui.Application.MouseGrabView*"></a>
  637. <h4 id="Terminal_Gui_Application_MouseGrabView" data-uid="Terminal.Gui.Application.MouseGrabView">MouseGrabView</h4>
  638. <div class="markdown level1 summary">
  639. The view that grabbed the mouse, to where will be routed all the mouse events.
  640. </div>
  641. <div class="markdown level1 conceptual"></div>
  642. <h5 class="decalaration">Declaration</h5>
  643. <div class="codewrapper">
  644. <pre><code class="lang-csharp hljs">public static View MouseGrabView { get; }</code></pre>
  645. </div>
  646. <h5 class="propertyValue">Property Value</h5>
  647. <table class="table table-bordered table-striped table-condensed">
  648. <thead>
  649. <tr>
  650. <th>Type</th>
  651. <th>Description</th>
  652. </tr>
  653. </thead>
  654. <tbody>
  655. <tr>
  656. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  657. <td></td>
  658. </tr>
  659. </tbody>
  660. </table>
  661. <span class="small pull-right mobile-hide">
  662. <span class="divider">|</span>
  663. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_QuitKey.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.QuitKey%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  664. </span>
  665. <span class="small pull-right mobile-hide">
  666. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L191">View Source</a>
  667. </span>
  668. <a id="Terminal_Gui_Application_QuitKey_" data-uid="Terminal.Gui.Application.QuitKey*"></a>
  669. <h4 id="Terminal_Gui_Application_QuitKey" data-uid="Terminal.Gui.Application.QuitKey">QuitKey</h4>
  670. <div class="markdown level1 summary">
  671. Gets or sets the key to quit the application.
  672. </div>
  673. <div class="markdown level1 conceptual"></div>
  674. <h5 class="decalaration">Declaration</h5>
  675. <div class="codewrapper">
  676. <pre><code class="lang-csharp hljs">public static Key QuitKey { get; set; }</code></pre>
  677. </div>
  678. <h5 class="propertyValue">Property Value</h5>
  679. <table class="table table-bordered table-striped table-condensed">
  680. <thead>
  681. <tr>
  682. <th>Type</th>
  683. <th>Description</th>
  684. </tr>
  685. </thead>
  686. <tbody>
  687. <tr>
  688. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  689. <td></td>
  690. </tr>
  691. </tbody>
  692. </table>
  693. <span class="small pull-right mobile-hide">
  694. <span class="divider">|</span>
  695. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_SupportedCultures.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.SupportedCultures%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  696. </span>
  697. <span class="small pull-right mobile-hide">
  698. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L207">View Source</a>
  699. </span>
  700. <a id="Terminal_Gui_Application_SupportedCultures_" data-uid="Terminal.Gui.Application.SupportedCultures*"></a>
  701. <h4 id="Terminal_Gui_Application_SupportedCultures" data-uid="Terminal.Gui.Application.SupportedCultures">SupportedCultures</h4>
  702. <div class="markdown level1 summary">
  703. Gets all supported cultures by the application without the invariant language.
  704. </div>
  705. <div class="markdown level1 conceptual"></div>
  706. <h5 class="decalaration">Declaration</h5>
  707. <div class="codewrapper">
  708. <pre><code class="lang-csharp hljs">public static List&lt;CultureInfo&gt; SupportedCultures { get; }</code></pre>
  709. </div>
  710. <h5 class="propertyValue">Property Value</h5>
  711. <table class="table table-bordered table-striped table-condensed">
  712. <thead>
  713. <tr>
  714. <th>Type</th>
  715. <th>Description</th>
  716. </tr>
  717. </thead>
  718. <tbody>
  719. <tr>
  720. <td><span class="xref">System.Collections.Generic.List</span>&lt;<span class="xref">System.Globalization.CultureInfo</span>&gt;</td>
  721. <td></td>
  722. </tr>
  723. </tbody>
  724. </table>
  725. <span class="small pull-right mobile-hide">
  726. <span class="divider">|</span>
  727. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_Top.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.Top%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  728. </span>
  729. <span class="small pull-right mobile-hide">
  730. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L100">View Source</a>
  731. </span>
  732. <a id="Terminal_Gui_Application_Top_" data-uid="Terminal.Gui.Application.Top*"></a>
  733. <h4 id="Terminal_Gui_Application_Top" data-uid="Terminal.Gui.Application.Top">Top</h4>
  734. <div class="markdown level1 summary">
  735. The <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> object used for the application on startup (<a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Top">Top</a>)
  736. </div>
  737. <div class="markdown level1 conceptual"></div>
  738. <h5 class="decalaration">Declaration</h5>
  739. <div class="codewrapper">
  740. <pre><code class="lang-csharp hljs">public static Toplevel Top { get; }</code></pre>
  741. </div>
  742. <h5 class="propertyValue">Property Value</h5>
  743. <table class="table table-bordered table-striped table-condensed">
  744. <thead>
  745. <tr>
  746. <th>Type</th>
  747. <th>Description</th>
  748. </tr>
  749. </thead>
  750. <tbody>
  751. <tr>
  752. <td><a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a></td>
  753. <td>The top.</td>
  754. </tr>
  755. </tbody>
  756. </table>
  757. <span class="small pull-right mobile-hide">
  758. <span class="divider">|</span>
  759. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_UseSystemConsole.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.UseSystemConsole%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  760. </span>
  761. <span class="small pull-right mobile-hide">
  762. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L319">View Source</a>
  763. </span>
  764. <a id="Terminal_Gui_Application_UseSystemConsole_" data-uid="Terminal.Gui.Application.UseSystemConsole*"></a>
  765. <h4 id="Terminal_Gui_Application_UseSystemConsole" data-uid="Terminal.Gui.Application.UseSystemConsole">UseSystemConsole</h4>
  766. <div class="markdown level1 summary">
  767. If <span class="xref">true</span>, forces the use of the System.Console-based (see <span class="xref">Terminal.Gui.NetDriver</span>) driver. The default is <span class="xref">false</span>.
  768. </div>
  769. <div class="markdown level1 conceptual"></div>
  770. <h5 class="decalaration">Declaration</h5>
  771. <div class="codewrapper">
  772. <pre><code class="lang-csharp hljs">public static bool UseSystemConsole { get; set; }</code></pre>
  773. </div>
  774. <h5 class="propertyValue">Property Value</h5>
  775. <table class="table table-bordered table-striped table-condensed">
  776. <thead>
  777. <tr>
  778. <th>Type</th>
  779. <th>Description</th>
  780. </tr>
  781. </thead>
  782. <tbody>
  783. <tr>
  784. <td><span class="xref">System.Boolean</span></td>
  785. <td></td>
  786. </tr>
  787. </tbody>
  788. </table>
  789. <span class="small pull-right mobile-hide">
  790. <span class="divider">|</span>
  791. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_WantContinuousButtonPressedView.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.WantContinuousButtonPressedView%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  792. </span>
  793. <span class="small pull-right mobile-hide">
  794. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L111">View Source</a>
  795. </span>
  796. <a id="Terminal_Gui_Application_WantContinuousButtonPressedView_" data-uid="Terminal.Gui.Application.WantContinuousButtonPressedView*"></a>
  797. <h4 id="Terminal_Gui_Application_WantContinuousButtonPressedView" data-uid="Terminal.Gui.Application.WantContinuousButtonPressedView">WantContinuousButtonPressedView</h4>
  798. <div class="markdown level1 summary">
  799. The current <a class="xref" href="Terminal.Gui.View.html">View</a> object that wants continuous mouse button pressed events.
  800. </div>
  801. <div class="markdown level1 conceptual"></div>
  802. <h5 class="decalaration">Declaration</h5>
  803. <div class="codewrapper">
  804. <pre><code class="lang-csharp hljs">public static View WantContinuousButtonPressedView { get; }</code></pre>
  805. </div>
  806. <h5 class="propertyValue">Property Value</h5>
  807. <table class="table table-bordered table-striped table-condensed">
  808. <thead>
  809. <tr>
  810. <th>Type</th>
  811. <th>Description</th>
  812. </tr>
  813. </thead>
  814. <tbody>
  815. <tr>
  816. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  817. <td></td>
  818. </tr>
  819. </tbody>
  820. </table>
  821. <h3 id="methods">Methods
  822. </h3>
  823. <span class="small pull-right mobile-hide">
  824. <span class="divider">|</span>
  825. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_Begin_Terminal_Gui_Toplevel_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.Begin(Terminal.Gui.Toplevel)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  826. </span>
  827. <span class="small pull-right mobile-hide">
  828. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L960">View Source</a>
  829. </span>
  830. <a id="Terminal_Gui_Application_Begin_" data-uid="Terminal.Gui.Application.Begin*"></a>
  831. <h4 id="Terminal_Gui_Application_Begin_Terminal_Gui_Toplevel_" data-uid="Terminal.Gui.Application.Begin(Terminal.Gui.Toplevel)">Begin(Toplevel)</h4>
  832. <div class="markdown level1 summary">
  833. Building block API: Prepares the provided <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> for execution.
  834. </div>
  835. <div class="markdown level1 conceptual"></div>
  836. <h5 class="decalaration">Declaration</h5>
  837. <div class="codewrapper">
  838. <pre><code class="lang-csharp hljs">public static Application.RunState Begin(Toplevel toplevel)</code></pre>
  839. </div>
  840. <h5 class="parameters">Parameters</h5>
  841. <table class="table table-bordered table-striped table-condensed">
  842. <thead>
  843. <tr>
  844. <th>Type</th>
  845. <th>Name</th>
  846. <th>Description</th>
  847. </tr>
  848. </thead>
  849. <tbody>
  850. <tr>
  851. <td><a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a></td>
  852. <td><span class="parametername">toplevel</span></td>
  853. <td>The <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> to prepare execution for.</td>
  854. </tr>
  855. </tbody>
  856. </table>
  857. <h5 class="returns">Returns</h5>
  858. <table class="table table-bordered table-striped table-condensed">
  859. <thead>
  860. <tr>
  861. <th>Type</th>
  862. <th>Description</th>
  863. </tr>
  864. </thead>
  865. <tbody>
  866. <tr>
  867. <td><a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a></td>
  868. <td>The <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> handle that needs to be passed to the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_End_Terminal_Gui_Application_RunState_">End(Application.RunState)</a> method upon completion.</td>
  869. </tr>
  870. </tbody>
  871. </table>
  872. <span class="small pull-right mobile-hide">
  873. <span class="divider">|</span>
  874. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_DoEvents.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.DoEvents%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  875. </span>
  876. <span class="small pull-right mobile-hide">
  877. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L1689">View Source</a>
  878. </span>
  879. <a id="Terminal_Gui_Application_DoEvents_" data-uid="Terminal.Gui.Application.DoEvents*"></a>
  880. <h4 id="Terminal_Gui_Application_DoEvents" data-uid="Terminal.Gui.Application.DoEvents">DoEvents()</h4>
  881. <div class="markdown level1 summary">
  882. Wakes up the mainloop that might be waiting on input, must be thread safe.
  883. </div>
  884. <div class="markdown level1 conceptual"></div>
  885. <h5 class="decalaration">Declaration</h5>
  886. <div class="codewrapper">
  887. <pre><code class="lang-csharp hljs">public static void DoEvents()</code></pre>
  888. </div>
  889. <span class="small pull-right mobile-hide">
  890. <span class="divider">|</span>
  891. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_End_Terminal_Gui_Application_RunState_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.End(Terminal.Gui.Application.RunState)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  892. </span>
  893. <span class="small pull-right mobile-hide">
  894. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L1056">View Source</a>
  895. </span>
  896. <a id="Terminal_Gui_Application_End_" data-uid="Terminal.Gui.Application.End*"></a>
  897. <h4 id="Terminal_Gui_Application_End_Terminal_Gui_Application_RunState_" data-uid="Terminal.Gui.Application.End(Terminal.Gui.Application.RunState)">End(Application.RunState)</h4>
  898. <div class="markdown level1 summary">
  899. Building block API: completes the execution of a <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> that was started with <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Begin_Terminal_Gui_Toplevel_">Begin(Toplevel)</a> .
  900. </div>
  901. <div class="markdown level1 conceptual"></div>
  902. <h5 class="decalaration">Declaration</h5>
  903. <div class="codewrapper">
  904. <pre><code class="lang-csharp hljs">public static void End(Application.RunState runState)</code></pre>
  905. </div>
  906. <h5 class="parameters">Parameters</h5>
  907. <table class="table table-bordered table-striped table-condensed">
  908. <thead>
  909. <tr>
  910. <th>Type</th>
  911. <th>Name</th>
  912. <th>Description</th>
  913. </tr>
  914. </thead>
  915. <tbody>
  916. <tr>
  917. <td><a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a></td>
  918. <td><span class="parametername">runState</span></td>
  919. <td>The <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> returned by the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Begin_Terminal_Gui_Toplevel_">Begin(Toplevel)</a> method.</td>
  920. </tr>
  921. </tbody>
  922. </table>
  923. <span class="small pull-right mobile-hide">
  924. <span class="divider">|</span>
  925. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_EnsuresTopOnFront.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.EnsuresTopOnFront%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  926. </span>
  927. <span class="small pull-right mobile-hide">
  928. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L1697">View Source</a>
  929. </span>
  930. <a id="Terminal_Gui_Application_EnsuresTopOnFront_" data-uid="Terminal.Gui.Application.EnsuresTopOnFront*"></a>
  931. <h4 id="Terminal_Gui_Application_EnsuresTopOnFront" data-uid="Terminal.Gui.Application.EnsuresTopOnFront">EnsuresTopOnFront()</h4>
  932. <div class="markdown level1 summary">
  933. Ensures that the superview of the most focused view is on front.
  934. </div>
  935. <div class="markdown level1 conceptual"></div>
  936. <h5 class="decalaration">Declaration</h5>
  937. <div class="codewrapper">
  938. <pre><code class="lang-csharp hljs">public static void EnsuresTopOnFront()</code></pre>
  939. </div>
  940. <span class="small pull-right mobile-hide">
  941. <span class="divider">|</span>
  942. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_GrabMouse_Terminal_Gui_View_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.GrabMouse(Terminal.Gui.View)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  943. </span>
  944. <span class="small pull-right mobile-hide">
  945. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L720">View Source</a>
  946. </span>
  947. <a id="Terminal_Gui_Application_GrabMouse_" data-uid="Terminal.Gui.Application.GrabMouse*"></a>
  948. <h4 id="Terminal_Gui_Application_GrabMouse_Terminal_Gui_View_" data-uid="Terminal.Gui.Application.GrabMouse(Terminal.Gui.View)">GrabMouse(View)</h4>
  949. <div class="markdown level1 summary">
  950. Grabs the mouse, forcing all mouse events to be routed to the specified view until UngrabMouse is called.
  951. </div>
  952. <div class="markdown level1 conceptual"></div>
  953. <h5 class="decalaration">Declaration</h5>
  954. <div class="codewrapper">
  955. <pre><code class="lang-csharp hljs">public static void GrabMouse(View view)</code></pre>
  956. </div>
  957. <h5 class="parameters">Parameters</h5>
  958. <table class="table table-bordered table-striped table-condensed">
  959. <thead>
  960. <tr>
  961. <th>Type</th>
  962. <th>Name</th>
  963. <th>Description</th>
  964. </tr>
  965. </thead>
  966. <tbody>
  967. <tr>
  968. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  969. <td><span class="parametername">view</span></td>
  970. <td>View that will receive all mouse events until UngrabMouse is invoked.</td>
  971. </tr>
  972. </tbody>
  973. </table>
  974. <span class="small pull-right mobile-hide">
  975. <span class="divider">|</span>
  976. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_Init_Terminal_Gui_ConsoleDriver_Terminal_Gui_IMainLoopDriver_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.Init(Terminal.Gui.ConsoleDriver%2CTerminal.Gui.IMainLoopDriver)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  977. </span>
  978. <span class="small pull-right mobile-hide">
  979. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L351">View Source</a>
  980. </span>
  981. <a id="Terminal_Gui_Application_Init_" data-uid="Terminal.Gui.Application.Init*"></a>
  982. <h4 id="Terminal_Gui_Application_Init_Terminal_Gui_ConsoleDriver_Terminal_Gui_IMainLoopDriver_" data-uid="Terminal.Gui.Application.Init(Terminal.Gui.ConsoleDriver,Terminal.Gui.IMainLoopDriver)">Init(ConsoleDriver, IMainLoopDriver)</h4>
  983. <div class="markdown level1 summary">
  984. Initializes a new instance of <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a> Application.
  985. </div>
  986. <div class="markdown level1 conceptual"></div>
  987. <h5 class="decalaration">Declaration</h5>
  988. <div class="codewrapper">
  989. <pre><code class="lang-csharp hljs">public static void Init(ConsoleDriver driver = null, IMainLoopDriver mainLoopDriver = null)</code></pre>
  990. </div>
  991. <h5 class="parameters">Parameters</h5>
  992. <table class="table table-bordered table-striped table-condensed">
  993. <thead>
  994. <tr>
  995. <th>Type</th>
  996. <th>Name</th>
  997. <th>Description</th>
  998. </tr>
  999. </thead>
  1000. <tbody>
  1001. <tr>
  1002. <td><a class="xref" href="Terminal.Gui.ConsoleDriver.html">ConsoleDriver</a></td>
  1003. <td><span class="parametername">driver</span></td>
  1004. <td>
  1005. The <a class="xref" href="Terminal.Gui.ConsoleDriver.html">ConsoleDriver</a> to use. If not specified the default driver for the
  1006. platform will be used (see <span class="xref">Terminal.Gui.WindowsDriver</span>, <span class="xref">Terminal.Gui.CursesDriver</span>, and <span class="xref">Terminal.Gui.NetDriver</span>).</td>
  1007. </tr>
  1008. <tr>
  1009. <td><a class="xref" href="Terminal.Gui.IMainLoopDriver.html">IMainLoopDriver</a></td>
  1010. <td><span class="parametername">mainLoopDriver</span></td>
  1011. <td>
  1012. Specifies the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_MainLoop">MainLoop</a> to use.
  1013. Must not be <span class="xref">null</span> if <code data-dev-comment-type="paramref" class="paramref">driver</code> is not <span class="xref">null</span>.
  1014. </td>
  1015. </tr>
  1016. </tbody>
  1017. </table>
  1018. <span class="small pull-right mobile-hide">
  1019. <span class="divider">|</span>
  1020. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_MakeCenteredRect_Terminal_Gui_Size_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.MakeCenteredRect(Terminal.Gui.Size)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1021. </span>
  1022. <span class="small pull-right mobile-hide">
  1023. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L268">View Source</a>
  1024. </span>
  1025. <a id="Terminal_Gui_Application_MakeCenteredRect_" data-uid="Terminal.Gui.Application.MakeCenteredRect*"></a>
  1026. <h4 id="Terminal_Gui_Application_MakeCenteredRect_Terminal_Gui_Size_" data-uid="Terminal.Gui.Application.MakeCenteredRect(Terminal.Gui.Size)">MakeCenteredRect(Size)</h4>
  1027. <div class="markdown level1 summary">
  1028. Returns a rectangle that is centered in the screen for the provided size.
  1029. </div>
  1030. <div class="markdown level1 conceptual"></div>
  1031. <h5 class="decalaration">Declaration</h5>
  1032. <div class="codewrapper">
  1033. <pre><code class="lang-csharp hljs">public static Rect MakeCenteredRect(Size size)</code></pre>
  1034. </div>
  1035. <h5 class="parameters">Parameters</h5>
  1036. <table class="table table-bordered table-striped table-condensed">
  1037. <thead>
  1038. <tr>
  1039. <th>Type</th>
  1040. <th>Name</th>
  1041. <th>Description</th>
  1042. </tr>
  1043. </thead>
  1044. <tbody>
  1045. <tr>
  1046. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  1047. <td><span class="parametername">size</span></td>
  1048. <td>Size for the rectangle.</td>
  1049. </tr>
  1050. </tbody>
  1051. </table>
  1052. <h5 class="returns">Returns</h5>
  1053. <table class="table table-bordered table-striped table-condensed">
  1054. <thead>
  1055. <tr>
  1056. <th>Type</th>
  1057. <th>Description</th>
  1058. </tr>
  1059. </thead>
  1060. <tbody>
  1061. <tr>
  1062. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1063. <td>The centered rect.</td>
  1064. </tr>
  1065. </tbody>
  1066. </table>
  1067. <span class="small pull-right mobile-hide">
  1068. <span class="divider">|</span>
  1069. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_MoveNext.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.MoveNext%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1070. </span>
  1071. <span class="small pull-right mobile-hide">
  1072. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L1627">View Source</a>
  1073. </span>
  1074. <a id="Terminal_Gui_Application_MoveNext_" data-uid="Terminal.Gui.Application.MoveNext*"></a>
  1075. <h4 id="Terminal_Gui_Application_MoveNext" data-uid="Terminal.Gui.Application.MoveNext">MoveNext()</h4>
  1076. <div class="markdown level1 summary">
  1077. Move to the next Mdi child from the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_MdiTop">MdiTop</a>.
  1078. </div>
  1079. <div class="markdown level1 conceptual"></div>
  1080. <h5 class="decalaration">Declaration</h5>
  1081. <div class="codewrapper">
  1082. <pre><code class="lang-csharp hljs">public static void MoveNext()</code></pre>
  1083. </div>
  1084. <span class="small pull-right mobile-hide">
  1085. <span class="divider">|</span>
  1086. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_MovePrevious.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.MovePrevious%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1087. </span>
  1088. <span class="small pull-right mobile-hide">
  1089. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L1650">View Source</a>
  1090. </span>
  1091. <a id="Terminal_Gui_Application_MovePrevious_" data-uid="Terminal.Gui.Application.MovePrevious*"></a>
  1092. <h4 id="Terminal_Gui_Application_MovePrevious" data-uid="Terminal.Gui.Application.MovePrevious">MovePrevious()</h4>
  1093. <div class="markdown level1 summary">
  1094. Move to the previous Mdi child from the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_MdiTop">MdiTop</a>.
  1095. </div>
  1096. <div class="markdown level1 conceptual"></div>
  1097. <h5 class="decalaration">Declaration</h5>
  1098. <div class="codewrapper">
  1099. <pre><code class="lang-csharp hljs">public static void MovePrevious()</code></pre>
  1100. </div>
  1101. <span class="small pull-right mobile-hide">
  1102. <span class="divider">|</span>
  1103. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_Refresh.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.Refresh%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1104. </span>
  1105. <span class="small pull-right mobile-hide">
  1106. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L1168">View Source</a>
  1107. </span>
  1108. <a id="Terminal_Gui_Application_Refresh_" data-uid="Terminal.Gui.Application.Refresh*"></a>
  1109. <h4 id="Terminal_Gui_Application_Refresh" data-uid="Terminal.Gui.Application.Refresh">Refresh()</h4>
  1110. <div class="markdown level1 summary">
  1111. Triggers a refresh of the entire display.
  1112. </div>
  1113. <div class="markdown level1 conceptual"></div>
  1114. <h5 class="decalaration">Declaration</h5>
  1115. <div class="codewrapper">
  1116. <pre><code class="lang-csharp hljs">public static void Refresh()</code></pre>
  1117. </div>
  1118. <span class="small pull-right mobile-hide">
  1119. <span class="divider">|</span>
  1120. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_RequestStop_Terminal_Gui_Toplevel_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.RequestStop(Terminal.Gui.Toplevel)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1121. </span>
  1122. <span class="small pull-right mobile-hide">
  1123. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L1490">View Source</a>
  1124. </span>
  1125. <a id="Terminal_Gui_Application_RequestStop_" data-uid="Terminal.Gui.Application.RequestStop*"></a>
  1126. <h4 id="Terminal_Gui_Application_RequestStop_Terminal_Gui_Toplevel_" data-uid="Terminal.Gui.Application.RequestStop(Terminal.Gui.Toplevel)">RequestStop(Toplevel)</h4>
  1127. <div class="markdown level1 summary">
  1128. Stops running the most recent <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> or the <code data-dev-comment-type="paramref" class="paramref">top</code> if provided.
  1129. </div>
  1130. <div class="markdown level1 conceptual"></div>
  1131. <h5 class="decalaration">Declaration</h5>
  1132. <div class="codewrapper">
  1133. <pre><code class="lang-csharp hljs">public static void RequestStop(Toplevel top = null)</code></pre>
  1134. </div>
  1135. <h5 class="parameters">Parameters</h5>
  1136. <table class="table table-bordered table-striped table-condensed">
  1137. <thead>
  1138. <tr>
  1139. <th>Type</th>
  1140. <th>Name</th>
  1141. <th>Description</th>
  1142. </tr>
  1143. </thead>
  1144. <tbody>
  1145. <tr>
  1146. <td><a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a></td>
  1147. <td><span class="parametername">top</span></td>
  1148. <td>The toplevel to request stop.</td>
  1149. </tr>
  1150. </tbody>
  1151. </table>
  1152. <span class="small pull-right mobile-hide">
  1153. <span class="divider">|</span>
  1154. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_Run_System_Func_System_Exception_System_Boolean__.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.Run(System.Func%7BSystem.Exception%2CSystem.Boolean%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1155. </span>
  1156. <span class="small pull-right mobile-hide">
  1157. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L1367">View Source</a>
  1158. </span>
  1159. <a id="Terminal_Gui_Application_Run_" data-uid="Terminal.Gui.Application.Run*"></a>
  1160. <h4 id="Terminal_Gui_Application_Run_System_Func_System_Exception_System_Boolean__" data-uid="Terminal.Gui.Application.Run(System.Func{System.Exception,System.Boolean})">Run(Func&lt;Exception, Boolean&gt;)</h4>
  1161. <div class="markdown level1 summary">
  1162. Runs the application by calling <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Run_Terminal_Gui_Toplevel_System_Func_System_Exception_System_Boolean__">Run(Toplevel, Func&lt;Exception, Boolean&gt;)</a> with the value of <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Top">Top</a>.
  1163. </div>
  1164. <div class="markdown level1 conceptual"></div>
  1165. <h5 class="decalaration">Declaration</h5>
  1166. <div class="codewrapper">
  1167. <pre><code class="lang-csharp hljs">public static void Run(Func&lt;Exception, bool&gt; errorHandler = null)</code></pre>
  1168. </div>
  1169. <h5 class="parameters">Parameters</h5>
  1170. <table class="table table-bordered table-striped table-condensed">
  1171. <thead>
  1172. <tr>
  1173. <th>Type</th>
  1174. <th>Name</th>
  1175. <th>Description</th>
  1176. </tr>
  1177. </thead>
  1178. <tbody>
  1179. <tr>
  1180. <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Exception</span>, <span class="xref">System.Boolean</span>&gt;</td>
  1181. <td><span class="parametername">errorHandler</span></td>
  1182. <td></td>
  1183. </tr>
  1184. </tbody>
  1185. </table>
  1186. <span class="small pull-right mobile-hide">
  1187. <span class="divider">|</span>
  1188. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_Run_Terminal_Gui_Toplevel_System_Func_System_Exception_System_Boolean__.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.Run(Terminal.Gui.Toplevel%2CSystem.Func%7BSystem.Exception%2CSystem.Boolean%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1189. </span>
  1190. <span class="small pull-right mobile-hide">
  1191. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L1449">View Source</a>
  1192. </span>
  1193. <a id="Terminal_Gui_Application_Run_" data-uid="Terminal.Gui.Application.Run*"></a>
  1194. <h4 id="Terminal_Gui_Application_Run_Terminal_Gui_Toplevel_System_Func_System_Exception_System_Boolean__" data-uid="Terminal.Gui.Application.Run(Terminal.Gui.Toplevel,System.Func{System.Exception,System.Boolean})">Run(Toplevel, Func&lt;Exception, Boolean&gt;)</h4>
  1195. <div class="markdown level1 summary">
  1196. Runs the main loop on the given <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> container.
  1197. </div>
  1198. <div class="markdown level1 conceptual"></div>
  1199. <h5 class="decalaration">Declaration</h5>
  1200. <div class="codewrapper">
  1201. <pre><code class="lang-csharp hljs">public static void Run(Toplevel view, Func&lt;Exception, bool&gt; errorHandler = null)</code></pre>
  1202. </div>
  1203. <h5 class="parameters">Parameters</h5>
  1204. <table class="table table-bordered table-striped table-condensed">
  1205. <thead>
  1206. <tr>
  1207. <th>Type</th>
  1208. <th>Name</th>
  1209. <th>Description</th>
  1210. </tr>
  1211. </thead>
  1212. <tbody>
  1213. <tr>
  1214. <td><a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a></td>
  1215. <td><span class="parametername">view</span></td>
  1216. <td>The <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> to run modally.</td>
  1217. </tr>
  1218. <tr>
  1219. <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Exception</span>, <span class="xref">System.Boolean</span>&gt;</td>
  1220. <td><span class="parametername">errorHandler</span></td>
  1221. <td>RELEASE builds only: Handler for any unhandled exceptions (resumes when returns true, rethrows when null).</td>
  1222. </tr>
  1223. </tbody>
  1224. </table>
  1225. <span class="small pull-right mobile-hide">
  1226. <span class="divider">|</span>
  1227. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_Run__1_System_Func_System_Exception_System_Boolean__Terminal_Gui_ConsoleDriver_Terminal_Gui_IMainLoopDriver_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.Run%60%601(System.Func%7BSystem.Exception%2CSystem.Boolean%7D%2CTerminal.Gui.ConsoleDriver%2CTerminal.Gui.IMainLoopDriver)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1228. </span>
  1229. <span class="small pull-right mobile-hide">
  1230. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L1392">View Source</a>
  1231. </span>
  1232. <a id="Terminal_Gui_Application_Run_" data-uid="Terminal.Gui.Application.Run*"></a>
  1233. <h4 id="Terminal_Gui_Application_Run__1_System_Func_System_Exception_System_Boolean__Terminal_Gui_ConsoleDriver_Terminal_Gui_IMainLoopDriver_" data-uid="Terminal.Gui.Application.Run``1(System.Func{System.Exception,System.Boolean},Terminal.Gui.ConsoleDriver,Terminal.Gui.IMainLoopDriver)">Run&lt;T&gt;(Func&lt;Exception, Boolean&gt;, ConsoleDriver, IMainLoopDriver)</h4>
  1234. <div class="markdown level1 summary">
  1235. Runs the application by calling <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Run_Terminal_Gui_Toplevel_System_Func_System_Exception_System_Boolean__">Run(Toplevel, Func&lt;Exception, Boolean&gt;)</a>
  1236. with a new instance of the specified <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>-derived class.
  1237. <p>
  1238. Calling <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Init_Terminal_Gui_ConsoleDriver_Terminal_Gui_IMainLoopDriver_">Init(ConsoleDriver, IMainLoopDriver)</a> first is not needed as this function will initialze the application.
  1239. </p>
  1240. <p>
  1241. <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Shutdown">Shutdown()</a> must be called when the application is closing (typically after Run> has
  1242. returned) to ensure resources are cleaned up and terminal settings restored.
  1243. </p>
  1244. </div>
  1245. <div class="markdown level1 conceptual"></div>
  1246. <h5 class="decalaration">Declaration</h5>
  1247. <div class="codewrapper">
  1248. <pre><code class="lang-csharp hljs">public static void Run&lt;T&gt;(Func&lt;Exception, bool&gt; errorHandler = null, ConsoleDriver driver = null, IMainLoopDriver mainLoopDriver = null)
  1249. where T : Toplevel, new()</code></pre>
  1250. </div>
  1251. <h5 class="parameters">Parameters</h5>
  1252. <table class="table table-bordered table-striped table-condensed">
  1253. <thead>
  1254. <tr>
  1255. <th>Type</th>
  1256. <th>Name</th>
  1257. <th>Description</th>
  1258. </tr>
  1259. </thead>
  1260. <tbody>
  1261. <tr>
  1262. <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Exception</span>, <span class="xref">System.Boolean</span>&gt;</td>
  1263. <td><span class="parametername">errorHandler</span></td>
  1264. <td></td>
  1265. </tr>
  1266. <tr>
  1267. <td><a class="xref" href="Terminal.Gui.ConsoleDriver.html">ConsoleDriver</a></td>
  1268. <td><span class="parametername">driver</span></td>
  1269. <td>The <a class="xref" href="Terminal.Gui.ConsoleDriver.html">ConsoleDriver</a> to use. If not specified the default driver for the
  1270. platform will be used (<span class="xref">Terminal.Gui.WindowsDriver</span>, <span class="xref">Terminal.Gui.CursesDriver</span>, or <span class="xref">Terminal.Gui.NetDriver</span>).
  1271. This parameteter must be <span class="xref">null</span> if <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Init_Terminal_Gui_ConsoleDriver_Terminal_Gui_IMainLoopDriver_">Init(ConsoleDriver, IMainLoopDriver)</a> has already been called.
  1272. </td>
  1273. </tr>
  1274. <tr>
  1275. <td><a class="xref" href="Terminal.Gui.IMainLoopDriver.html">IMainLoopDriver</a></td>
  1276. <td><span class="parametername">mainLoopDriver</span></td>
  1277. <td>Specifies the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_MainLoop">MainLoop</a> to use.</td>
  1278. </tr>
  1279. </tbody>
  1280. </table>
  1281. <h5 class="typeParameters">Type Parameters</h5>
  1282. <table class="table table-bordered table-striped table-condensed">
  1283. <thead>
  1284. <tr>
  1285. <th>Name</th>
  1286. <th>Description</th>
  1287. </tr>
  1288. </thead>
  1289. <tbody>
  1290. <tr>
  1291. <td><span class="parametername">T</span></td>
  1292. <td></td>
  1293. </tr>
  1294. </tbody>
  1295. </table>
  1296. <span class="small pull-right mobile-hide">
  1297. <span class="divider">|</span>
  1298. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_RunLoop_Terminal_Gui_Application_RunState_System_Boolean_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.RunLoop(Terminal.Gui.Application.RunState%2CSystem.Boolean)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1299. </span>
  1300. <span class="small pull-right mobile-hide">
  1301. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L1194">View Source</a>
  1302. </span>
  1303. <a id="Terminal_Gui_Application_RunLoop_" data-uid="Terminal.Gui.Application.RunLoop*"></a>
  1304. <h4 id="Terminal_Gui_Application_RunLoop_Terminal_Gui_Application_RunState_System_Boolean_" data-uid="Terminal.Gui.Application.RunLoop(Terminal.Gui.Application.RunState,System.Boolean)">RunLoop(Application.RunState, Boolean)</h4>
  1305. <div class="markdown level1 summary">
  1306. Building block API: Runs the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_MainLoop">MainLoop</a> for the created <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>.
  1307. </div>
  1308. <div class="markdown level1 conceptual"></div>
  1309. <h5 class="decalaration">Declaration</h5>
  1310. <div class="codewrapper">
  1311. <pre><code class="lang-csharp hljs">public static void RunLoop(Application.RunState state, bool wait = true)</code></pre>
  1312. </div>
  1313. <h5 class="parameters">Parameters</h5>
  1314. <table class="table table-bordered table-striped table-condensed">
  1315. <thead>
  1316. <tr>
  1317. <th>Type</th>
  1318. <th>Name</th>
  1319. <th>Description</th>
  1320. </tr>
  1321. </thead>
  1322. <tbody>
  1323. <tr>
  1324. <td><a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a></td>
  1325. <td><span class="parametername">state</span></td>
  1326. <td>The state returned by the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Begin_Terminal_Gui_Toplevel_">Begin(Toplevel)</a> method.</td>
  1327. </tr>
  1328. <tr>
  1329. <td><span class="xref">System.Boolean</span></td>
  1330. <td><span class="parametername">wait</span></td>
  1331. <td>By default this is <span class="xref">true</span> which will execute the runloop waiting for events,
  1332. if set to <span class="xref">false</span>, a single iteration will execute.</td>
  1333. </tr>
  1334. </tbody>
  1335. </table>
  1336. <span class="small pull-right mobile-hide">
  1337. <span class="divider">|</span>
  1338. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_RunMainLoopIteration_Terminal_Gui_Application_RunState__System_Boolean_System_Boolean__.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.RunMainLoopIteration(Terminal.Gui.Application.RunState%40%2CSystem.Boolean%2CSystem.Boolean%40)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1339. </span>
  1340. <span class="small pull-right mobile-hide">
  1341. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L1218">View Source</a>
  1342. </span>
  1343. <a id="Terminal_Gui_Application_RunMainLoopIteration_" data-uid="Terminal.Gui.Application.RunMainLoopIteration*"></a>
  1344. <h4 id="Terminal_Gui_Application_RunMainLoopIteration_Terminal_Gui_Application_RunState__System_Boolean_System_Boolean__" data-uid="Terminal.Gui.Application.RunMainLoopIteration(Terminal.Gui.Application.RunState@,System.Boolean,System.Boolean@)">RunMainLoopIteration(ref Application.RunState, Boolean, ref Boolean)</h4>
  1345. <div class="markdown level1 summary">
  1346. Run one iteration of the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_MainLoop">MainLoop</a>.
  1347. </div>
  1348. <div class="markdown level1 conceptual"></div>
  1349. <h5 class="decalaration">Declaration</h5>
  1350. <div class="codewrapper">
  1351. <pre><code class="lang-csharp hljs">public static void RunMainLoopIteration(ref Application.RunState state, bool wait, ref bool firstIteration)</code></pre>
  1352. </div>
  1353. <h5 class="parameters">Parameters</h5>
  1354. <table class="table table-bordered table-striped table-condensed">
  1355. <thead>
  1356. <tr>
  1357. <th>Type</th>
  1358. <th>Name</th>
  1359. <th>Description</th>
  1360. </tr>
  1361. </thead>
  1362. <tbody>
  1363. <tr>
  1364. <td><a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a></td>
  1365. <td><span class="parametername">state</span></td>
  1366. <td>The state returned by <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Begin_Terminal_Gui_Toplevel_">Begin(Toplevel)</a>.</td>
  1367. </tr>
  1368. <tr>
  1369. <td><span class="xref">System.Boolean</span></td>
  1370. <td><span class="parametername">wait</span></td>
  1371. <td>If <span class="xref">true</span> will execute the runloop waiting for events. If <span class="xref">true</span>
  1372. will return after a single iteration.</td>
  1373. </tr>
  1374. <tr>
  1375. <td><span class="xref">System.Boolean</span></td>
  1376. <td><span class="parametername">firstIteration</span></td>
  1377. <td>Set to <span class="xref">true</span> if this is the first run loop iteration. Upon return,
  1378. it will be set to <span class="xref">false</span> if at least one iteration happened.</td>
  1379. </tr>
  1380. </tbody>
  1381. </table>
  1382. <span class="small pull-right mobile-hide">
  1383. <span class="divider">|</span>
  1384. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_Shutdown.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.Shutdown%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1385. </span>
  1386. <span class="small pull-right mobile-hide">
  1387. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L1113">View Source</a>
  1388. </span>
  1389. <a id="Terminal_Gui_Application_Shutdown_" data-uid="Terminal.Gui.Application.Shutdown*"></a>
  1390. <h4 id="Terminal_Gui_Application_Shutdown" data-uid="Terminal.Gui.Application.Shutdown">Shutdown()</h4>
  1391. <div class="markdown level1 summary">
  1392. Shutdown an application initialized with <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Init_Terminal_Gui_ConsoleDriver_Terminal_Gui_IMainLoopDriver_">Init(ConsoleDriver, IMainLoopDriver)</a>.
  1393. </div>
  1394. <div class="markdown level1 conceptual"></div>
  1395. <h5 class="decalaration">Declaration</h5>
  1396. <div class="codewrapper">
  1397. <pre><code class="lang-csharp hljs">public static void Shutdown()</code></pre>
  1398. </div>
  1399. <span class="small pull-right mobile-hide">
  1400. <span class="divider">|</span>
  1401. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_UngrabMouse.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.UngrabMouse%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1402. </span>
  1403. <span class="small pull-right mobile-hide">
  1404. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L734">View Source</a>
  1405. </span>
  1406. <a id="Terminal_Gui_Application_UngrabMouse_" data-uid="Terminal.Gui.Application.UngrabMouse*"></a>
  1407. <h4 id="Terminal_Gui_Application_UngrabMouse" data-uid="Terminal.Gui.Application.UngrabMouse">UngrabMouse()</h4>
  1408. <div class="markdown level1 summary">
  1409. Releases the mouse grab, so mouse events will be routed to the view on which the mouse is.
  1410. </div>
  1411. <div class="markdown level1 conceptual"></div>
  1412. <h5 class="decalaration">Declaration</h5>
  1413. <div class="codewrapper">
  1414. <pre><code class="lang-csharp hljs">public static void UngrabMouse()</code></pre>
  1415. </div>
  1416. <h3 id="events">Events
  1417. </h3>
  1418. <span class="small pull-right mobile-hide">
  1419. <span class="divider">|</span>
  1420. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_GrabbedMouse.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.GrabbedMouse%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1421. </span>
  1422. <span class="small pull-right mobile-hide">
  1423. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L708">View Source</a>
  1424. </span>
  1425. <h4 id="Terminal_Gui_Application_GrabbedMouse" data-uid="Terminal.Gui.Application.GrabbedMouse">GrabbedMouse</h4>
  1426. <div class="markdown level1 summary">
  1427. Event to be invoked when a view grab the mouse.
  1428. </div>
  1429. <div class="markdown level1 conceptual"></div>
  1430. <h5 class="decalaration">Declaration</h5>
  1431. <div class="codewrapper">
  1432. <pre><code class="lang-csharp hljs">public static event Action&lt;View&gt; GrabbedMouse</code></pre>
  1433. </div>
  1434. <h5 class="eventType">Event Type</h5>
  1435. <table class="table table-bordered table-striped table-condensed">
  1436. <thead>
  1437. <tr>
  1438. <th>Type</th>
  1439. <th>Description</th>
  1440. </tr>
  1441. </thead>
  1442. <tbody>
  1443. <tr>
  1444. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.View.html">View</a>&gt;</td>
  1445. <td></td>
  1446. </tr>
  1447. </tbody>
  1448. </table>
  1449. <span class="small pull-right mobile-hide">
  1450. <span class="divider">|</span>
  1451. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_GrabbingMouse.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.GrabbingMouse%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1452. </span>
  1453. <span class="small pull-right mobile-hide">
  1454. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L698">View Source</a>
  1455. </span>
  1456. <h4 id="Terminal_Gui_Application_GrabbingMouse" data-uid="Terminal.Gui.Application.GrabbingMouse">GrabbingMouse</h4>
  1457. <div class="markdown level1 summary">
  1458. Invoked when a view wants to grab the mouse; can be canceled.
  1459. </div>
  1460. <div class="markdown level1 conceptual"></div>
  1461. <h5 class="decalaration">Declaration</h5>
  1462. <div class="codewrapper">
  1463. <pre><code class="lang-csharp hljs">public static event Func&lt;View, bool&gt; GrabbingMouse</code></pre>
  1464. </div>
  1465. <h5 class="eventType">Event Type</h5>
  1466. <table class="table table-bordered table-striped table-condensed">
  1467. <thead>
  1468. <tr>
  1469. <th>Type</th>
  1470. <th>Description</th>
  1471. </tr>
  1472. </thead>
  1473. <tbody>
  1474. <tr>
  1475. <td><span class="xref">System.Func</span>&lt;<a class="xref" href="Terminal.Gui.View.html">View</a>, <span class="xref">System.Boolean</span>&gt;</td>
  1476. <td></td>
  1477. </tr>
  1478. </tbody>
  1479. </table>
  1480. <span class="small pull-right mobile-hide">
  1481. <span class="divider">|</span>
  1482. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_NotifyNewRunState.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.NotifyNewRunState%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1483. </span>
  1484. <span class="small pull-right mobile-hide">
  1485. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L243">View Source</a>
  1486. </span>
  1487. <h4 id="Terminal_Gui_Application_NotifyNewRunState" data-uid="Terminal.Gui.Application.NotifyNewRunState">NotifyNewRunState</h4>
  1488. <div class="markdown level1 summary">
  1489. Notify that a new <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> was created (<a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Begin_Terminal_Gui_Toplevel_">Begin(Toplevel)</a> was called). The token is created in
  1490. <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Begin_Terminal_Gui_Toplevel_">Begin(Toplevel)</a> and this event will be fired before that function exits.
  1491. </div>
  1492. <div class="markdown level1 conceptual"></div>
  1493. <h5 class="decalaration">Declaration</h5>
  1494. <div class="codewrapper">
  1495. <pre><code class="lang-csharp hljs">public static event Action&lt;Application.RunState&gt; NotifyNewRunState</code></pre>
  1496. </div>
  1497. <h5 class="eventType">Event Type</h5>
  1498. <table class="table table-bordered table-striped table-condensed">
  1499. <thead>
  1500. <tr>
  1501. <th>Type</th>
  1502. <th>Description</th>
  1503. </tr>
  1504. </thead>
  1505. <tbody>
  1506. <tr>
  1507. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a>&gt;</td>
  1508. <td></td>
  1509. </tr>
  1510. </tbody>
  1511. </table>
  1512. <span class="small pull-right mobile-hide">
  1513. <span class="divider">|</span>
  1514. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_NotifyStopRunState.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.NotifyStopRunState%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1515. </span>
  1516. <span class="small pull-right mobile-hide">
  1517. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L253">View Source</a>
  1518. </span>
  1519. <h4 id="Terminal_Gui_Application_NotifyStopRunState" data-uid="Terminal.Gui.Application.NotifyStopRunState">NotifyStopRunState</h4>
  1520. <div class="markdown level1 summary">
  1521. Notify that a existent <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> is stopping (<a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_End_Terminal_Gui_Application_RunState_">End(Application.RunState)</a> was called).
  1522. </div>
  1523. <div class="markdown level1 conceptual"></div>
  1524. <h5 class="decalaration">Declaration</h5>
  1525. <div class="codewrapper">
  1526. <pre><code class="lang-csharp hljs">public static event Action&lt;Toplevel&gt; NotifyStopRunState</code></pre>
  1527. </div>
  1528. <h5 class="eventType">Event Type</h5>
  1529. <table class="table table-bordered table-striped table-condensed">
  1530. <thead>
  1531. <tr>
  1532. <th>Type</th>
  1533. <th>Description</th>
  1534. </tr>
  1535. </thead>
  1536. <tbody>
  1537. <tr>
  1538. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>&gt;</td>
  1539. <td></td>
  1540. </tr>
  1541. </tbody>
  1542. </table>
  1543. <span class="small pull-right mobile-hide">
  1544. <span class="divider">|</span>
  1545. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_UnGrabbedMouse.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.UnGrabbedMouse%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1546. </span>
  1547. <span class="small pull-right mobile-hide">
  1548. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L713">View Source</a>
  1549. </span>
  1550. <h4 id="Terminal_Gui_Application_UnGrabbedMouse" data-uid="Terminal.Gui.Application.UnGrabbedMouse">UnGrabbedMouse</h4>
  1551. <div class="markdown level1 summary">
  1552. Event to be invoked when a view ungrab the mouse.
  1553. </div>
  1554. <div class="markdown level1 conceptual"></div>
  1555. <h5 class="decalaration">Declaration</h5>
  1556. <div class="codewrapper">
  1557. <pre><code class="lang-csharp hljs">public static event Action&lt;View&gt; UnGrabbedMouse</code></pre>
  1558. </div>
  1559. <h5 class="eventType">Event Type</h5>
  1560. <table class="table table-bordered table-striped table-condensed">
  1561. <thead>
  1562. <tr>
  1563. <th>Type</th>
  1564. <th>Description</th>
  1565. </tr>
  1566. </thead>
  1567. <tbody>
  1568. <tr>
  1569. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.View.html">View</a>&gt;</td>
  1570. <td></td>
  1571. </tr>
  1572. </tbody>
  1573. </table>
  1574. <span class="small pull-right mobile-hide">
  1575. <span class="divider">|</span>
  1576. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application_UnGrabbingMouse.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application.UnGrabbingMouse%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  1577. </span>
  1578. <span class="small pull-right mobile-hide">
  1579. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L703">View Source</a>
  1580. </span>
  1581. <h4 id="Terminal_Gui_Application_UnGrabbingMouse" data-uid="Terminal.Gui.Application.UnGrabbingMouse">UnGrabbingMouse</h4>
  1582. <div class="markdown level1 summary">
  1583. Invoked when a view wants ungrab the mouse; can be canceled.
  1584. </div>
  1585. <div class="markdown level1 conceptual"></div>
  1586. <h5 class="decalaration">Declaration</h5>
  1587. <div class="codewrapper">
  1588. <pre><code class="lang-csharp hljs">public static event Func&lt;View, bool&gt; UnGrabbingMouse</code></pre>
  1589. </div>
  1590. <h5 class="eventType">Event Type</h5>
  1591. <table class="table table-bordered table-striped table-condensed">
  1592. <thead>
  1593. <tr>
  1594. <th>Type</th>
  1595. <th>Description</th>
  1596. </tr>
  1597. </thead>
  1598. <tbody>
  1599. <tr>
  1600. <td><span class="xref">System.Func</span>&lt;<a class="xref" href="Terminal.Gui.View.html">View</a>, <span class="xref">System.Boolean</span>&gt;</td>
  1601. <td></td>
  1602. </tr>
  1603. </tbody>
  1604. </table>
  1605. </article>
  1606. </div>
  1607. <div class="hidden-sm col-md-2" role="complementary">
  1608. <div class="sideaffix">
  1609. <div class="contribution">
  1610. <ul class="nav">
  1611. <li>
  1612. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_Application.md&amp;value=---%0Auid%3A%20Terminal.Gui.Application%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
  1613. </li>
  1614. <li>
  1615. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/Application.cs/#L59" class="contribution-link">View Source</a>
  1616. </li>
  1617. </ul>
  1618. </div>
  1619. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  1620. <h5>In This Article</h5>
  1621. <div></div>
  1622. </nav>
  1623. </div>
  1624. </div>
  1625. </div>
  1626. </div>
  1627. <footer>
  1628. <div class="grad-bottom"></div>
  1629. <div class="footer">
  1630. <div class="container">
  1631. <span class="pull-right">
  1632. <a href="#top">Back to top</a>
  1633. </span>
  1634. <span>Generated by <strong>DocFX</strong></span>
  1635. </div>
  1636. </div>
  1637. </footer>
  1638. </div>
  1639. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  1640. <script type="text/javascript" src="../../styles/docfx.js"></script>
  1641. <script type="text/javascript" src="../../styles/main.js"></script>
  1642. </body>
  1643. </html>