Terminal.Gui.ConsoleDriver.html 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  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 ConsoleDriver
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class ConsoleDriver
  11. ">
  12. <meta name="generator" content="docfx 2.18.2.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. <meta property="docfx:navrel" content="">
  18. <meta property="docfx:tocrel" content="../toc.html">
  19. </head>
  20. <body data-spy="scroll" data-target="#affix">
  21. <div id="wrapper">
  22. <header>
  23. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  24. <div class="container">
  25. <div class="navbar-header">
  26. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  27. <span class="sr-only">Toggle navigation</span>
  28. <span class="icon-bar"></span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. </button>
  32. <a class="navbar-brand" href="../../index.html">
  33. <img id="logo" class="svg" src="../../logo.svg" alt="">
  34. </a>
  35. </div>
  36. <div class="collapse navbar-collapse" id="navbar">
  37. <form class="navbar-form navbar-right" role="search" id="search">
  38. <div class="form-group">
  39. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. </nav>
  45. <div class="subnav navbar navbar-default">
  46. <div class="container hide-when-search" id="breadcrumb">
  47. <ul class="breadcrumb">
  48. <li></li>
  49. </ul>
  50. </div>
  51. </div>
  52. </header>
  53. <div role="main" class="container body-content hide-when-search">
  54. <div class="sidenav hide-when-search">
  55. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  56. <div class="sidetoggle collapse" id="sidetoggle">
  57. <div id="sidetoc"></div>
  58. </div>
  59. </div>
  60. <div class="article row grid-right">
  61. <div class="col-md-10">
  62. <article class="content wrap" id="_content" data-uid="Terminal.Gui.ConsoleDriver">
  63. <h1 id="Terminal_Gui_ConsoleDriver" data-uid="Terminal.Gui.ConsoleDriver">Class ConsoleDriver
  64. </h1>
  65. <div class="markdown level0 summary"><p>ConsoleDriver is an abstract class that defines the requirements for a console driver. One implementation if the CursesDriver, and another one uses the .NET Console one.</p>
  66. </div>
  67. <div class="markdown level0 conceptual"></div>
  68. <div class="inheritance">
  69. <h5>Inheritance</h5>
  70. <div class="level0"><span class="xref">System.Object</span></div>
  71. <div class="level1"><span class="xref">ConsoleDriver</span></div>
  72. </div>
  73. <h6><strong>Namespace</strong>: <a class="xref" href="../Terminal.Gui.html">Terminal.Gui</a></h6>
  74. <h6><strong>Assembly</strong>: Terminal.dll</h6>
  75. <h5 id="Terminal_Gui_ConsoleDriver_syntax">Syntax</h5>
  76. <div class="codewrapper">
  77. <pre><code class="lang-csharp hljs">public abstract class ConsoleDriver</code></pre>
  78. </div>
  79. <h3 id="constructors">Constructors
  80. </h3>
  81. <a id="Terminal_Gui_ConsoleDriver__ctor_" data-uid="Terminal.Gui.ConsoleDriver.#ctor*"></a>
  82. <h4 id="Terminal_Gui_ConsoleDriver__ctor" data-uid="Terminal.Gui.ConsoleDriver.#ctor">ConsoleDriver()</h4>
  83. <div class="markdown level1 summary"></div>
  84. <div class="markdown level1 conceptual"></div>
  85. <h5 class="decalaration">Declaration</h5>
  86. <div class="codewrapper">
  87. <pre><code class="lang-csharp hljs">protected ConsoleDriver ();</code></pre>
  88. </div>
  89. <h3 id="properties">Properties
  90. </h3>
  91. <a id="Terminal_Gui_ConsoleDriver_Clip_" data-uid="Terminal.Gui.ConsoleDriver.Clip*"></a>
  92. <h4 id="Terminal_Gui_ConsoleDriver_Clip" data-uid="Terminal.Gui.ConsoleDriver.Clip">Clip</h4>
  93. <div class="markdown level1 summary"><p>Controls the current clipping region that AddCh/AddStr is subject to.</p>
  94. </div>
  95. <div class="markdown level1 conceptual"></div>
  96. <h5 class="decalaration">Declaration</h5>
  97. <div class="codewrapper">
  98. <pre><code class="lang-csharp hljs">public Terminal.Gui.Rect Clip { get; set; }</code></pre>
  99. </div>
  100. <h5 class="propertyValue">Property Value</h5>
  101. <table class="table table-bordered table-striped table-condensed">
  102. <thead>
  103. <tr>
  104. <th>Type</th>
  105. <th>Description</th>
  106. </tr>
  107. </thead>
  108. <tbody>
  109. <tr>
  110. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  111. <td><p>The clip.</p>
  112. </td>
  113. </tr>
  114. </tbody>
  115. </table>
  116. <a id="Terminal_Gui_ConsoleDriver_Cols_" data-uid="Terminal.Gui.ConsoleDriver.Cols*"></a>
  117. <h4 id="Terminal_Gui_ConsoleDriver_Cols" data-uid="Terminal.Gui.ConsoleDriver.Cols">Cols</h4>
  118. <div class="markdown level1 summary"><p>The current number of columns in the terminal.</p>
  119. </div>
  120. <div class="markdown level1 conceptual"></div>
  121. <h5 class="decalaration">Declaration</h5>
  122. <div class="codewrapper">
  123. <pre><code class="lang-csharp hljs">public abstract int Cols { get; }</code></pre>
  124. </div>
  125. <h5 class="propertyValue">Property Value</h5>
  126. <table class="table table-bordered table-striped table-condensed">
  127. <thead>
  128. <tr>
  129. <th>Type</th>
  130. <th>Description</th>
  131. </tr>
  132. </thead>
  133. <tbody>
  134. <tr>
  135. <td><span class="xref">System.Int32</span></td>
  136. <td><p>To be added.</p>
  137. </td>
  138. </tr>
  139. </tbody>
  140. </table>
  141. <a id="Terminal_Gui_ConsoleDriver_Rows_" data-uid="Terminal.Gui.ConsoleDriver.Rows*"></a>
  142. <h4 id="Terminal_Gui_ConsoleDriver_Rows" data-uid="Terminal.Gui.ConsoleDriver.Rows">Rows</h4>
  143. <div class="markdown level1 summary"><p>The current number of rows in the terminal.</p>
  144. </div>
  145. <div class="markdown level1 conceptual"></div>
  146. <h5 class="decalaration">Declaration</h5>
  147. <div class="codewrapper">
  148. <pre><code class="lang-csharp hljs">public abstract int Rows { get; }</code></pre>
  149. </div>
  150. <h5 class="propertyValue">Property Value</h5>
  151. <table class="table table-bordered table-striped table-condensed">
  152. <thead>
  153. <tr>
  154. <th>Type</th>
  155. <th>Description</th>
  156. </tr>
  157. </thead>
  158. <tbody>
  159. <tr>
  160. <td><span class="xref">System.Int32</span></td>
  161. <td><p>To be added.</p>
  162. </td>
  163. </tr>
  164. </tbody>
  165. </table>
  166. <h3 id="methods">Methods
  167. </h3>
  168. <a id="Terminal_Gui_ConsoleDriver_AddCh_" data-uid="Terminal.Gui.ConsoleDriver.AddCh*"></a>
  169. <h4 id="Terminal_Gui_ConsoleDriver_AddCh_System_Int32_" data-uid="Terminal.Gui.ConsoleDriver.AddCh(System.Int32)">AddCh(Int32)</h4>
  170. <div class="markdown level1 summary"><p>Adds the specified rune to the display at the current cursor position</p>
  171. </div>
  172. <div class="markdown level1 conceptual"></div>
  173. <h5 class="decalaration">Declaration</h5>
  174. <div class="codewrapper">
  175. <pre><code class="lang-csharp hljs">public abstract void AddCh (int rune);</code></pre>
  176. </div>
  177. <h5 class="parameters">Parameters</h5>
  178. <table class="table table-bordered table-striped table-condensed">
  179. <thead>
  180. <tr>
  181. <th>Type</th>
  182. <th>Name</th>
  183. <th>Description</th>
  184. </tr>
  185. </thead>
  186. <tbody>
  187. <tr>
  188. <td><span class="xref">System.Int32</span></td>
  189. <td><span class="parametername">rune</span></td>
  190. <td><p>Rune to add.</p>
  191. </td>
  192. </tr>
  193. </tbody>
  194. </table>
  195. <a id="Terminal_Gui_ConsoleDriver_AddSpecial_" data-uid="Terminal.Gui.ConsoleDriver.AddSpecial*"></a>
  196. <h4 id="Terminal_Gui_ConsoleDriver_AddSpecial_Terminal_Gui_SpecialChar_" data-uid="Terminal.Gui.ConsoleDriver.AddSpecial(Terminal.Gui.SpecialChar)">AddSpecial(SpecialChar)</h4>
  197. <div class="markdown level1 summary"><p>Draws a special characters in the screen</p>
  198. </div>
  199. <div class="markdown level1 conceptual"></div>
  200. <h5 class="decalaration">Declaration</h5>
  201. <div class="codewrapper">
  202. <pre><code class="lang-csharp hljs">public abstract void AddSpecial (Terminal.Gui.SpecialChar ch);</code></pre>
  203. </div>
  204. <h5 class="parameters">Parameters</h5>
  205. <table class="table table-bordered table-striped table-condensed">
  206. <thead>
  207. <tr>
  208. <th>Type</th>
  209. <th>Name</th>
  210. <th>Description</th>
  211. </tr>
  212. </thead>
  213. <tbody>
  214. <tr>
  215. <td><a class="xref" href="Terminal.Gui.SpecialChar.html">SpecialChar</a></td>
  216. <td><span class="parametername">ch</span></td>
  217. <td><p>Ch.</p>
  218. </td>
  219. </tr>
  220. </tbody>
  221. </table>
  222. <a id="Terminal_Gui_ConsoleDriver_AddStr_" data-uid="Terminal.Gui.ConsoleDriver.AddStr*"></a>
  223. <h4 id="Terminal_Gui_ConsoleDriver_AddStr_System_String_" data-uid="Terminal.Gui.ConsoleDriver.AddStr(System.String)">AddStr(String)</h4>
  224. <div class="markdown level1 summary"><p>Adds the specified</p>
  225. </div>
  226. <div class="markdown level1 conceptual"></div>
  227. <h5 class="decalaration">Declaration</h5>
  228. <div class="codewrapper">
  229. <pre><code class="lang-csharp hljs">public abstract void AddStr (string str);</code></pre>
  230. </div>
  231. <h5 class="parameters">Parameters</h5>
  232. <table class="table table-bordered table-striped table-condensed">
  233. <thead>
  234. <tr>
  235. <th>Type</th>
  236. <th>Name</th>
  237. <th>Description</th>
  238. </tr>
  239. </thead>
  240. <tbody>
  241. <tr>
  242. <td><span class="xref">System.String</span></td>
  243. <td><span class="parametername">str</span></td>
  244. <td><p>String.</p>
  245. </td>
  246. </tr>
  247. </tbody>
  248. </table>
  249. <a id="Terminal_Gui_ConsoleDriver_DrawFrame_" data-uid="Terminal.Gui.ConsoleDriver.DrawFrame*"></a>
  250. <h4 id="Terminal_Gui_ConsoleDriver_DrawFrame_Terminal_Gui_Rect_System_Boolean_" data-uid="Terminal.Gui.ConsoleDriver.DrawFrame(Terminal.Gui.Rect,System.Boolean)">DrawFrame(Rect, Boolean)</h4>
  251. <div class="markdown level1 summary"></div>
  252. <div class="markdown level1 conceptual"></div>
  253. <h5 class="decalaration">Declaration</h5>
  254. <div class="codewrapper">
  255. <pre><code class="lang-csharp hljs">public abstract void DrawFrame (Terminal.Gui.Rect region, bool fill);</code></pre>
  256. </div>
  257. <h5 class="parameters">Parameters</h5>
  258. <table class="table table-bordered table-striped table-condensed">
  259. <thead>
  260. <tr>
  261. <th>Type</th>
  262. <th>Name</th>
  263. <th>Description</th>
  264. </tr>
  265. </thead>
  266. <tbody>
  267. <tr>
  268. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  269. <td><span class="parametername">region</span></td>
  270. <td><p>To be added.</p>
  271. </td>
  272. </tr>
  273. <tr>
  274. <td><span class="xref">System.Boolean</span></td>
  275. <td><span class="parametername">fill</span></td>
  276. <td><p>To be added.</p>
  277. </td>
  278. </tr>
  279. </tbody>
  280. </table>
  281. <a id="Terminal_Gui_ConsoleDriver_End_" data-uid="Terminal.Gui.ConsoleDriver.End*"></a>
  282. <h4 id="Terminal_Gui_ConsoleDriver_End" data-uid="Terminal.Gui.ConsoleDriver.End">End()</h4>
  283. <div class="markdown level1 summary"><p>Ends the execution of the console driver.</p>
  284. </div>
  285. <div class="markdown level1 conceptual"></div>
  286. <h5 class="decalaration">Declaration</h5>
  287. <div class="codewrapper">
  288. <pre><code class="lang-csharp hljs">public abstract void End ();</code></pre>
  289. </div>
  290. <a id="Terminal_Gui_ConsoleDriver_Init_" data-uid="Terminal.Gui.ConsoleDriver.Init*"></a>
  291. <h4 id="Terminal_Gui_ConsoleDriver_Init_System_Action_" data-uid="Terminal.Gui.ConsoleDriver.Init(System.Action)">Init(Action)</h4>
  292. <div class="markdown level1 summary"><p>Initializes the driver</p>
  293. </div>
  294. <div class="markdown level1 conceptual"></div>
  295. <h5 class="decalaration">Declaration</h5>
  296. <div class="codewrapper">
  297. <pre><code class="lang-csharp hljs">public abstract void Init (Action terminalResized);</code></pre>
  298. </div>
  299. <h5 class="parameters">Parameters</h5>
  300. <table class="table table-bordered table-striped table-condensed">
  301. <thead>
  302. <tr>
  303. <th>Type</th>
  304. <th>Name</th>
  305. <th>Description</th>
  306. </tr>
  307. </thead>
  308. <tbody>
  309. <tr>
  310. <td><span class="xref">System.Action</span></td>
  311. <td><span class="parametername">terminalResized</span></td>
  312. <td><p>Method to invoke when the terminal is resized.</p>
  313. </td>
  314. </tr>
  315. </tbody>
  316. </table>
  317. <a id="Terminal_Gui_ConsoleDriver_Move_" data-uid="Terminal.Gui.ConsoleDriver.Move*"></a>
  318. <h4 id="Terminal_Gui_ConsoleDriver_Move_System_Int32_System_Int32_" data-uid="Terminal.Gui.ConsoleDriver.Move(System.Int32,System.Int32)">Move(Int32, Int32)</h4>
  319. <div class="markdown level1 summary"><p>Moves the cursor to the specified column and row.</p>
  320. </div>
  321. <div class="markdown level1 conceptual"></div>
  322. <h5 class="decalaration">Declaration</h5>
  323. <div class="codewrapper">
  324. <pre><code class="lang-csharp hljs">public abstract void Move (int col, int row);</code></pre>
  325. </div>
  326. <h5 class="parameters">Parameters</h5>
  327. <table class="table table-bordered table-striped table-condensed">
  328. <thead>
  329. <tr>
  330. <th>Type</th>
  331. <th>Name</th>
  332. <th>Description</th>
  333. </tr>
  334. </thead>
  335. <tbody>
  336. <tr>
  337. <td><span class="xref">System.Int32</span></td>
  338. <td><span class="parametername">col</span></td>
  339. <td><p>Column to move the cursor to.</p>
  340. </td>
  341. </tr>
  342. <tr>
  343. <td><span class="xref">System.Int32</span></td>
  344. <td><span class="parametername">row</span></td>
  345. <td><p>Row to move the cursor to.</p>
  346. </td>
  347. </tr>
  348. </tbody>
  349. </table>
  350. <a id="Terminal_Gui_ConsoleDriver_PrepareToRun_" data-uid="Terminal.Gui.ConsoleDriver.PrepareToRun*"></a>
  351. <h4 id="Terminal_Gui_ConsoleDriver_PrepareToRun_Mono_Terminal_MainLoop_System_Action_Terminal_Gui_KeyEvent__System_Action_Terminal_Gui_MouseEvent__" data-uid="Terminal.Gui.ConsoleDriver.PrepareToRun(Mono.Terminal.MainLoop,System.Action{Terminal.Gui.KeyEvent},System.Action{Terminal.Gui.MouseEvent})">PrepareToRun(MainLoop, Action&lt;KeyEvent&gt;, Action&lt;MouseEvent&gt;)</h4>
  352. <div class="markdown level1 summary"></div>
  353. <div class="markdown level1 conceptual"></div>
  354. <h5 class="decalaration">Declaration</h5>
  355. <div class="codewrapper">
  356. <pre><code class="lang-csharp hljs">public abstract void PrepareToRun (Mono.Terminal.MainLoop mainLoop, Action&lt;Terminal.Gui.KeyEvent&gt; target, Action&lt;Terminal.Gui.MouseEvent&gt; mouse);</code></pre>
  357. </div>
  358. <h5 class="parameters">Parameters</h5>
  359. <table class="table table-bordered table-striped table-condensed">
  360. <thead>
  361. <tr>
  362. <th>Type</th>
  363. <th>Name</th>
  364. <th>Description</th>
  365. </tr>
  366. </thead>
  367. <tbody>
  368. <tr>
  369. <td><span class="xref">Mono.Terminal.MainLoop</span></td>
  370. <td><span class="parametername">mainLoop</span></td>
  371. <td><p>To be added.</p>
  372. </td>
  373. </tr>
  374. <tr>
  375. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a>&gt;</td>
  376. <td><span class="parametername">target</span></td>
  377. <td><p>To be added.</p>
  378. </td>
  379. </tr>
  380. <tr>
  381. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a>&gt;</td>
  382. <td><span class="parametername">mouse</span></td>
  383. <td><p>To be added.</p>
  384. </td>
  385. </tr>
  386. </tbody>
  387. </table>
  388. <a id="Terminal_Gui_ConsoleDriver_RedrawTop_" data-uid="Terminal.Gui.ConsoleDriver.RedrawTop*"></a>
  389. <h4 id="Terminal_Gui_ConsoleDriver_RedrawTop" data-uid="Terminal.Gui.ConsoleDriver.RedrawTop">RedrawTop()</h4>
  390. <div class="markdown level1 summary"></div>
  391. <div class="markdown level1 conceptual"></div>
  392. <h5 class="decalaration">Declaration</h5>
  393. <div class="codewrapper">
  394. <pre><code class="lang-csharp hljs">public abstract void RedrawTop ();</code></pre>
  395. </div>
  396. <a id="Terminal_Gui_ConsoleDriver_Refresh_" data-uid="Terminal.Gui.ConsoleDriver.Refresh*"></a>
  397. <h4 id="Terminal_Gui_ConsoleDriver_Refresh" data-uid="Terminal.Gui.ConsoleDriver.Refresh">Refresh()</h4>
  398. <div class="markdown level1 summary"><p>Updates the screen to reflect all the changes that have been done to the display buffer</p>
  399. </div>
  400. <div class="markdown level1 conceptual"></div>
  401. <h5 class="decalaration">Declaration</h5>
  402. <div class="codewrapper">
  403. <pre><code class="lang-csharp hljs">public abstract void Refresh ();</code></pre>
  404. </div>
  405. <a id="Terminal_Gui_ConsoleDriver_SetAttribute_" data-uid="Terminal.Gui.ConsoleDriver.SetAttribute*"></a>
  406. <h4 id="Terminal_Gui_ConsoleDriver_SetAttribute_Terminal_Gui_Attribute_" data-uid="Terminal.Gui.ConsoleDriver.SetAttribute(Terminal.Gui.Attribute)">SetAttribute(Attribute)</h4>
  407. <div class="markdown level1 summary"></div>
  408. <div class="markdown level1 conceptual"></div>
  409. <h5 class="decalaration">Declaration</h5>
  410. <div class="codewrapper">
  411. <pre><code class="lang-csharp hljs">public abstract void SetAttribute (Terminal.Gui.Attribute c);</code></pre>
  412. </div>
  413. <h5 class="parameters">Parameters</h5>
  414. <table class="table table-bordered table-striped table-condensed">
  415. <thead>
  416. <tr>
  417. <th>Type</th>
  418. <th>Name</th>
  419. <th>Description</th>
  420. </tr>
  421. </thead>
  422. <tbody>
  423. <tr>
  424. <td><a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a></td>
  425. <td><span class="parametername">c</span></td>
  426. <td><p>To be added.</p>
  427. </td>
  428. </tr>
  429. </tbody>
  430. </table>
  431. <a id="Terminal_Gui_ConsoleDriver_SetColors_" data-uid="Terminal.Gui.ConsoleDriver.SetColors*"></a>
  432. <h4 id="Terminal_Gui_ConsoleDriver_SetColors_System_ConsoleColor_System_ConsoleColor_" data-uid="Terminal.Gui.ConsoleDriver.SetColors(System.ConsoleColor,System.ConsoleColor)">SetColors(ConsoleColor, ConsoleColor)</h4>
  433. <div class="markdown level1 summary"></div>
  434. <div class="markdown level1 conceptual"></div>
  435. <h5 class="decalaration">Declaration</h5>
  436. <div class="codewrapper">
  437. <pre><code class="lang-csharp hljs">public abstract void SetColors (ConsoleColor foreground, ConsoleColor background);</code></pre>
  438. </div>
  439. <h5 class="parameters">Parameters</h5>
  440. <table class="table table-bordered table-striped table-condensed">
  441. <thead>
  442. <tr>
  443. <th>Type</th>
  444. <th>Name</th>
  445. <th>Description</th>
  446. </tr>
  447. </thead>
  448. <tbody>
  449. <tr>
  450. <td><span class="xref">System.ConsoleColor</span></td>
  451. <td><span class="parametername">foreground</span></td>
  452. <td><p>To be added.</p>
  453. </td>
  454. </tr>
  455. <tr>
  456. <td><span class="xref">System.ConsoleColor</span></td>
  457. <td><span class="parametername">background</span></td>
  458. <td><p>To be added.</p>
  459. </td>
  460. </tr>
  461. </tbody>
  462. </table>
  463. <a id="Terminal_Gui_ConsoleDriver_SetColors_" data-uid="Terminal.Gui.ConsoleDriver.SetColors*"></a>
  464. <h4 id="Terminal_Gui_ConsoleDriver_SetColors_System_Int16_System_Int16_" data-uid="Terminal.Gui.ConsoleDriver.SetColors(System.Int16,System.Int16)">SetColors(Int16, Int16)</h4>
  465. <div class="markdown level1 summary"><p>Advanced uses - set colors to any pre-set pairs, you would need to init_color
  466. that independently with the R, G, B values.</p>
  467. </div>
  468. <div class="markdown level1 conceptual"></div>
  469. <h5 class="decalaration">Declaration</h5>
  470. <div class="codewrapper">
  471. <pre><code class="lang-csharp hljs">public abstract void SetColors (short foregroundColorId, short backgroundColorId);</code></pre>
  472. </div>
  473. <h5 class="parameters">Parameters</h5>
  474. <table class="table table-bordered table-striped table-condensed">
  475. <thead>
  476. <tr>
  477. <th>Type</th>
  478. <th>Name</th>
  479. <th>Description</th>
  480. </tr>
  481. </thead>
  482. <tbody>
  483. <tr>
  484. <td><span class="xref">System.Int16</span></td>
  485. <td><span class="parametername">foregroundColorId</span></td>
  486. <td><p>Foreground color identifier.</p>
  487. </td>
  488. </tr>
  489. <tr>
  490. <td><span class="xref">System.Int16</span></td>
  491. <td><span class="parametername">backgroundColorId</span></td>
  492. <td><p>Background color identifier.</p>
  493. </td>
  494. </tr>
  495. </tbody>
  496. </table>
  497. <a id="Terminal_Gui_ConsoleDriver_StartReportingMouseMoves_" data-uid="Terminal.Gui.ConsoleDriver.StartReportingMouseMoves*"></a>
  498. <h4 id="Terminal_Gui_ConsoleDriver_StartReportingMouseMoves" data-uid="Terminal.Gui.ConsoleDriver.StartReportingMouseMoves">StartReportingMouseMoves()</h4>
  499. <div class="markdown level1 summary"></div>
  500. <div class="markdown level1 conceptual"></div>
  501. <h5 class="decalaration">Declaration</h5>
  502. <div class="codewrapper">
  503. <pre><code class="lang-csharp hljs">public abstract void StartReportingMouseMoves ();</code></pre>
  504. </div>
  505. <a id="Terminal_Gui_ConsoleDriver_StopReportingMouseMoves_" data-uid="Terminal.Gui.ConsoleDriver.StopReportingMouseMoves*"></a>
  506. <h4 id="Terminal_Gui_ConsoleDriver_StopReportingMouseMoves" data-uid="Terminal.Gui.ConsoleDriver.StopReportingMouseMoves">StopReportingMouseMoves()</h4>
  507. <div class="markdown level1 summary"></div>
  508. <div class="markdown level1 conceptual"></div>
  509. <h5 class="decalaration">Declaration</h5>
  510. <div class="codewrapper">
  511. <pre><code class="lang-csharp hljs">public abstract void StopReportingMouseMoves ();</code></pre>
  512. </div>
  513. <a id="Terminal_Gui_ConsoleDriver_Suspend_" data-uid="Terminal.Gui.ConsoleDriver.Suspend*"></a>
  514. <h4 id="Terminal_Gui_ConsoleDriver_Suspend" data-uid="Terminal.Gui.ConsoleDriver.Suspend">Suspend()</h4>
  515. <div class="markdown level1 summary"><p>Suspend the application, typically needs to save the state, suspend the app and upon return, reset the console driver.</p>
  516. </div>
  517. <div class="markdown level1 conceptual"></div>
  518. <h5 class="decalaration">Declaration</h5>
  519. <div class="codewrapper">
  520. <pre><code class="lang-csharp hljs">public abstract void Suspend ();</code></pre>
  521. </div>
  522. </article>
  523. </div>
  524. <div class="hidden-sm col-md-2" role="complementary">
  525. <div class="sideaffix">
  526. <div class="contribution">
  527. <ul class="nav">
  528. </ul>
  529. </div>
  530. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  531. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  532. </nav>
  533. </div>
  534. </div>
  535. </div>
  536. </div>
  537. <footer>
  538. <div class="grad-bottom"></div>
  539. <div class="footer">
  540. <div class="container">
  541. <span class="pull-right">
  542. <a href="#top">Back to top</a>
  543. </span>
  544. <span>Copyright © 2015-2017 Microsoft<br>Generated by <strong>DocFX</strong></span>
  545. </div>
  546. </div>
  547. </footer>
  548. </div>
  549. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  550. <script type="text/javascript" src="../../styles/docfx.js"></script>
  551. <script type="text/javascript" src="../../styles/main.js"></script>
  552. </body>
  553. </html>