Terminal.Gui.Autocomplete.html 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953
  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 Autocomplete
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class Autocomplete
  11. ">
  12. <meta name="generator" content="docfx 2.59.3.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="../../toc.html">
  18. <meta property="docfx:tocrel" content="toc.html">
  19. <meta property="docfx:rel" content="../../">
  20. </head>
  21. <body data-spy="scroll" data-target="#affix" data-offset="120">
  22. <div id="wrapper">
  23. <header>
  24. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="../../index.html">
  34. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  35. </a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="navbar">
  38. <form class="navbar-form navbar-right" role="search" id="search">
  39. <div class="form-group">
  40. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. <div class="subnav navbar navbar-default">
  47. <div class="container hide-when-search" id="breadcrumb">
  48. <ul class="breadcrumb">
  49. <li></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </header>
  54. <div class="container body-content">
  55. <div id="search-results">
  56. <div class="search-list">Search Results for <span></span></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  61. </div>
  62. </div>
  63. <div role="main" class="container body-content hide-when-search">
  64. <div class="sidenav hide-when-search">
  65. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  66. <div class="sidetoggle collapse" id="sidetoggle">
  67. <div id="sidetoc"></div>
  68. </div>
  69. </div>
  70. <div class="article row grid-right">
  71. <div class="col-md-10">
  72. <article class="content wrap" id="_content" data-uid="Terminal.Gui.Autocomplete">
  73. <h1 id="Terminal_Gui_Autocomplete" data-uid="Terminal.Gui.Autocomplete" class="text-break">Class Autocomplete
  74. </h1>
  75. <div class="markdown level0 summary">
  76. Renders an overlay on another view at a given point that allows selecting
  77. from a range of &apos;autocomplete&apos; options.
  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">Autocomplete</span></div>
  84. <div class="level2"><a class="xref" href="Terminal.Gui.TextFieldAutocomplete.html">TextFieldAutocomplete</a></div>
  85. <div class="level2"><a class="xref" href="Terminal.Gui.TextViewAutocomplete.html">TextViewAutocomplete</a></div>
  86. </div>
  87. <div class="implements">
  88. <h5>Implements</h5>
  89. <div><a class="xref" href="Terminal.Gui.IAutocomplete.html">IAutocomplete</a></div>
  90. </div>
  91. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  92. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  93. <h5 id="Terminal_Gui_Autocomplete_syntax">Syntax</h5>
  94. <div class="codewrapper">
  95. <pre><code class="lang-csharp hljs">public abstract class Autocomplete : Object, IAutocomplete</code></pre>
  96. </div>
  97. <h3 id="constructors">Constructors
  98. </h3>
  99. <a id="Terminal_Gui_Autocomplete__ctor_" data-uid="Terminal.Gui.Autocomplete.#ctor*"></a>
  100. <h4 id="Terminal_Gui_Autocomplete__ctor" data-uid="Terminal.Gui.Autocomplete.#ctor">Autocomplete()</h4>
  101. <div class="markdown level1 summary"></div>
  102. <div class="markdown level1 conceptual"></div>
  103. <h5 class="decalaration">Declaration</h5>
  104. <div class="codewrapper">
  105. <pre><code class="lang-csharp hljs">protected Autocomplete()</code></pre>
  106. </div>
  107. <h3 id="properties">Properties
  108. </h3>
  109. <a id="Terminal_Gui_Autocomplete_AllSuggestions_" data-uid="Terminal.Gui.Autocomplete.AllSuggestions*"></a>
  110. <h4 id="Terminal_Gui_Autocomplete_AllSuggestions" data-uid="Terminal.Gui.Autocomplete.AllSuggestions">AllSuggestions</h4>
  111. <div class="markdown level1 summary">
  112. The full set of all strings that can be suggested.
  113. </div>
  114. <div class="markdown level1 conceptual"></div>
  115. <h5 class="decalaration">Declaration</h5>
  116. <div class="codewrapper">
  117. <pre><code class="lang-csharp hljs">public virtual List&lt;string&gt; AllSuggestions { get; set; }</code></pre>
  118. </div>
  119. <h5 class="propertyValue">Property Value</h5>
  120. <table class="table table-bordered table-striped table-condensed">
  121. <thead>
  122. <tr>
  123. <th>Type</th>
  124. <th>Description</th>
  125. </tr>
  126. </thead>
  127. <tbody>
  128. <tr>
  129. <td><span class="xref">System.Collections.Generic.List</span>&lt;<span class="xref">System.String</span>&gt;</td>
  130. <td></td>
  131. </tr>
  132. </tbody>
  133. </table>
  134. <a id="Terminal_Gui_Autocomplete_CloseKey_" data-uid="Terminal.Gui.Autocomplete.CloseKey*"></a>
  135. <h4 id="Terminal_Gui_Autocomplete_CloseKey" data-uid="Terminal.Gui.Autocomplete.CloseKey">CloseKey</h4>
  136. <div class="markdown level1 summary">
  137. The key that the user can press to close the currently popped autocomplete menu
  138. </div>
  139. <div class="markdown level1 conceptual"></div>
  140. <h5 class="decalaration">Declaration</h5>
  141. <div class="codewrapper">
  142. <pre><code class="lang-csharp hljs">public virtual Key CloseKey { get; set; }</code></pre>
  143. </div>
  144. <h5 class="propertyValue">Property Value</h5>
  145. <table class="table table-bordered table-striped table-condensed">
  146. <thead>
  147. <tr>
  148. <th>Type</th>
  149. <th>Description</th>
  150. </tr>
  151. </thead>
  152. <tbody>
  153. <tr>
  154. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  155. <td></td>
  156. </tr>
  157. </tbody>
  158. </table>
  159. <a id="Terminal_Gui_Autocomplete_ColorScheme_" data-uid="Terminal.Gui.Autocomplete.ColorScheme*"></a>
  160. <h4 id="Terminal_Gui_Autocomplete_ColorScheme" data-uid="Terminal.Gui.Autocomplete.ColorScheme">ColorScheme</h4>
  161. <div class="markdown level1 summary">
  162. The colors to use to render the overlay. Accessing this property before
  163. the Application has been initialized will cause an error
  164. </div>
  165. <div class="markdown level1 conceptual"></div>
  166. <h5 class="decalaration">Declaration</h5>
  167. <div class="codewrapper">
  168. <pre><code class="lang-csharp hljs">public virtual ColorScheme ColorScheme { get; set; }</code></pre>
  169. </div>
  170. <h5 class="propertyValue">Property Value</h5>
  171. <table class="table table-bordered table-striped table-condensed">
  172. <thead>
  173. <tr>
  174. <th>Type</th>
  175. <th>Description</th>
  176. </tr>
  177. </thead>
  178. <tbody>
  179. <tr>
  180. <td><a class="xref" href="Terminal.Gui.ColorScheme.html">ColorScheme</a></td>
  181. <td></td>
  182. </tr>
  183. </tbody>
  184. </table>
  185. <a id="Terminal_Gui_Autocomplete_HostControl_" data-uid="Terminal.Gui.Autocomplete.HostControl*"></a>
  186. <h4 id="Terminal_Gui_Autocomplete_HostControl" data-uid="Terminal.Gui.Autocomplete.HostControl">HostControl</h4>
  187. <div class="markdown level1 summary">
  188. The host control to handle.
  189. </div>
  190. <div class="markdown level1 conceptual"></div>
  191. <h5 class="decalaration">Declaration</h5>
  192. <div class="codewrapper">
  193. <pre><code class="lang-csharp hljs">public virtual View HostControl { get; set; }</code></pre>
  194. </div>
  195. <h5 class="propertyValue">Property Value</h5>
  196. <table class="table table-bordered table-striped table-condensed">
  197. <thead>
  198. <tr>
  199. <th>Type</th>
  200. <th>Description</th>
  201. </tr>
  202. </thead>
  203. <tbody>
  204. <tr>
  205. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  206. <td></td>
  207. </tr>
  208. </tbody>
  209. </table>
  210. <a id="Terminal_Gui_Autocomplete_MaxHeight_" data-uid="Terminal.Gui.Autocomplete.MaxHeight*"></a>
  211. <h4 id="Terminal_Gui_Autocomplete_MaxHeight" data-uid="Terminal.Gui.Autocomplete.MaxHeight">MaxHeight</h4>
  212. <div class="markdown level1 summary">
  213. The maximum number of visible rows in the autocomplete dropdown to render
  214. </div>
  215. <div class="markdown level1 conceptual"></div>
  216. <h5 class="decalaration">Declaration</h5>
  217. <div class="codewrapper">
  218. <pre><code class="lang-csharp hljs">public virtual int MaxHeight { get; set; }</code></pre>
  219. </div>
  220. <h5 class="propertyValue">Property Value</h5>
  221. <table class="table table-bordered table-striped table-condensed">
  222. <thead>
  223. <tr>
  224. <th>Type</th>
  225. <th>Description</th>
  226. </tr>
  227. </thead>
  228. <tbody>
  229. <tr>
  230. <td><span class="xref">System.Int32</span></td>
  231. <td></td>
  232. </tr>
  233. </tbody>
  234. </table>
  235. <a id="Terminal_Gui_Autocomplete_MaxWidth_" data-uid="Terminal.Gui.Autocomplete.MaxWidth*"></a>
  236. <h4 id="Terminal_Gui_Autocomplete_MaxWidth" data-uid="Terminal.Gui.Autocomplete.MaxWidth">MaxWidth</h4>
  237. <div class="markdown level1 summary">
  238. The maximum width of the autocomplete dropdown
  239. </div>
  240. <div class="markdown level1 conceptual"></div>
  241. <h5 class="decalaration">Declaration</h5>
  242. <div class="codewrapper">
  243. <pre><code class="lang-csharp hljs">public virtual int MaxWidth { get; set; }</code></pre>
  244. </div>
  245. <h5 class="propertyValue">Property Value</h5>
  246. <table class="table table-bordered table-striped table-condensed">
  247. <thead>
  248. <tr>
  249. <th>Type</th>
  250. <th>Description</th>
  251. </tr>
  252. </thead>
  253. <tbody>
  254. <tr>
  255. <td><span class="xref">System.Int32</span></td>
  256. <td></td>
  257. </tr>
  258. </tbody>
  259. </table>
  260. <a id="Terminal_Gui_Autocomplete_PopupInsideContainer_" data-uid="Terminal.Gui.Autocomplete.PopupInsideContainer*"></a>
  261. <h4 id="Terminal_Gui_Autocomplete_PopupInsideContainer" data-uid="Terminal.Gui.Autocomplete.PopupInsideContainer">PopupInsideContainer</h4>
  262. <div class="markdown level1 summary">
  263. Gets or sets If the popup is displayed inside or outside the host limits.
  264. </div>
  265. <div class="markdown level1 conceptual"></div>
  266. <h5 class="decalaration">Declaration</h5>
  267. <div class="codewrapper">
  268. <pre><code class="lang-csharp hljs">public bool PopupInsideContainer { get; set; }</code></pre>
  269. </div>
  270. <h5 class="propertyValue">Property Value</h5>
  271. <table class="table table-bordered table-striped table-condensed">
  272. <thead>
  273. <tr>
  274. <th>Type</th>
  275. <th>Description</th>
  276. </tr>
  277. </thead>
  278. <tbody>
  279. <tr>
  280. <td><span class="xref">System.Boolean</span></td>
  281. <td></td>
  282. </tr>
  283. </tbody>
  284. </table>
  285. <a id="Terminal_Gui_Autocomplete_Reopen_" data-uid="Terminal.Gui.Autocomplete.Reopen*"></a>
  286. <h4 id="Terminal_Gui_Autocomplete_Reopen" data-uid="Terminal.Gui.Autocomplete.Reopen">Reopen</h4>
  287. <div class="markdown level1 summary">
  288. The key that the user can press to reopen the currently popped autocomplete menu
  289. </div>
  290. <div class="markdown level1 conceptual"></div>
  291. <h5 class="decalaration">Declaration</h5>
  292. <div class="codewrapper">
  293. <pre><code class="lang-csharp hljs">public virtual Key Reopen { get; set; }</code></pre>
  294. </div>
  295. <h5 class="propertyValue">Property Value</h5>
  296. <table class="table table-bordered table-striped table-condensed">
  297. <thead>
  298. <tr>
  299. <th>Type</th>
  300. <th>Description</th>
  301. </tr>
  302. </thead>
  303. <tbody>
  304. <tr>
  305. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  306. <td></td>
  307. </tr>
  308. </tbody>
  309. </table>
  310. <a id="Terminal_Gui_Autocomplete_ScrollOffset_" data-uid="Terminal.Gui.Autocomplete.ScrollOffset*"></a>
  311. <h4 id="Terminal_Gui_Autocomplete_ScrollOffset" data-uid="Terminal.Gui.Autocomplete.ScrollOffset">ScrollOffset</h4>
  312. <div class="markdown level1 summary">
  313. When more suggestions are available than can be rendered the user
  314. can scroll down the dropdown list. This indicates how far down they
  315. have gone
  316. </div>
  317. <div class="markdown level1 conceptual"></div>
  318. <h5 class="decalaration">Declaration</h5>
  319. <div class="codewrapper">
  320. <pre><code class="lang-csharp hljs">public virtual int ScrollOffset { get; set; }</code></pre>
  321. </div>
  322. <h5 class="propertyValue">Property Value</h5>
  323. <table class="table table-bordered table-striped table-condensed">
  324. <thead>
  325. <tr>
  326. <th>Type</th>
  327. <th>Description</th>
  328. </tr>
  329. </thead>
  330. <tbody>
  331. <tr>
  332. <td><span class="xref">System.Int32</span></td>
  333. <td></td>
  334. </tr>
  335. </tbody>
  336. </table>
  337. <a id="Terminal_Gui_Autocomplete_SelectedIdx_" data-uid="Terminal.Gui.Autocomplete.SelectedIdx*"></a>
  338. <h4 id="Terminal_Gui_Autocomplete_SelectedIdx" data-uid="Terminal.Gui.Autocomplete.SelectedIdx">SelectedIdx</h4>
  339. <div class="markdown level1 summary">
  340. The currently selected index into <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_Suggestions">Suggestions</a> that the user has highlighted
  341. </div>
  342. <div class="markdown level1 conceptual"></div>
  343. <h5 class="decalaration">Declaration</h5>
  344. <div class="codewrapper">
  345. <pre><code class="lang-csharp hljs">public virtual int SelectedIdx { get; set; }</code></pre>
  346. </div>
  347. <h5 class="propertyValue">Property Value</h5>
  348. <table class="table table-bordered table-striped table-condensed">
  349. <thead>
  350. <tr>
  351. <th>Type</th>
  352. <th>Description</th>
  353. </tr>
  354. </thead>
  355. <tbody>
  356. <tr>
  357. <td><span class="xref">System.Int32</span></td>
  358. <td></td>
  359. </tr>
  360. </tbody>
  361. </table>
  362. <a id="Terminal_Gui_Autocomplete_SelectionKey_" data-uid="Terminal.Gui.Autocomplete.SelectionKey*"></a>
  363. <h4 id="Terminal_Gui_Autocomplete_SelectionKey" data-uid="Terminal.Gui.Autocomplete.SelectionKey">SelectionKey</h4>
  364. <div class="markdown level1 summary">
  365. The key that the user must press to accept the currently selected autocomplete suggestion
  366. </div>
  367. <div class="markdown level1 conceptual"></div>
  368. <h5 class="decalaration">Declaration</h5>
  369. <div class="codewrapper">
  370. <pre><code class="lang-csharp hljs">public virtual Key SelectionKey { get; set; }</code></pre>
  371. </div>
  372. <h5 class="propertyValue">Property Value</h5>
  373. <table class="table table-bordered table-striped table-condensed">
  374. <thead>
  375. <tr>
  376. <th>Type</th>
  377. <th>Description</th>
  378. </tr>
  379. </thead>
  380. <tbody>
  381. <tr>
  382. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  383. <td></td>
  384. </tr>
  385. </tbody>
  386. </table>
  387. <a id="Terminal_Gui_Autocomplete_Suggestions_" data-uid="Terminal.Gui.Autocomplete.Suggestions*"></a>
  388. <h4 id="Terminal_Gui_Autocomplete_Suggestions" data-uid="Terminal.Gui.Autocomplete.Suggestions">Suggestions</h4>
  389. <div class="markdown level1 summary">
  390. The strings that form the current list of suggestions to render
  391. based on what the user has typed so far.
  392. </div>
  393. <div class="markdown level1 conceptual"></div>
  394. <h5 class="decalaration">Declaration</h5>
  395. <div class="codewrapper">
  396. <pre><code class="lang-csharp hljs">public virtual ReadOnlyCollection&lt;string&gt; Suggestions { get; set; }</code></pre>
  397. </div>
  398. <h5 class="propertyValue">Property Value</h5>
  399. <table class="table table-bordered table-striped table-condensed">
  400. <thead>
  401. <tr>
  402. <th>Type</th>
  403. <th>Description</th>
  404. </tr>
  405. </thead>
  406. <tbody>
  407. <tr>
  408. <td><span class="xref">System.Collections.ObjectModel.ReadOnlyCollection</span>&lt;<span class="xref">System.String</span>&gt;</td>
  409. <td></td>
  410. </tr>
  411. </tbody>
  412. </table>
  413. <a id="Terminal_Gui_Autocomplete_Visible_" data-uid="Terminal.Gui.Autocomplete.Visible*"></a>
  414. <h4 id="Terminal_Gui_Autocomplete_Visible" data-uid="Terminal.Gui.Autocomplete.Visible">Visible</h4>
  415. <div class="markdown level1 summary">
  416. True if the autocomplete should be considered open and visible
  417. </div>
  418. <div class="markdown level1 conceptual"></div>
  419. <h5 class="decalaration">Declaration</h5>
  420. <div class="codewrapper">
  421. <pre><code class="lang-csharp hljs">public virtual bool Visible { get; set; }</code></pre>
  422. </div>
  423. <h5 class="propertyValue">Property Value</h5>
  424. <table class="table table-bordered table-striped table-condensed">
  425. <thead>
  426. <tr>
  427. <th>Type</th>
  428. <th>Description</th>
  429. </tr>
  430. </thead>
  431. <tbody>
  432. <tr>
  433. <td><span class="xref">System.Boolean</span></td>
  434. <td></td>
  435. </tr>
  436. </tbody>
  437. </table>
  438. <h3 id="methods">Methods
  439. </h3>
  440. <a id="Terminal_Gui_Autocomplete_ClearSuggestions_" data-uid="Terminal.Gui.Autocomplete.ClearSuggestions*"></a>
  441. <h4 id="Terminal_Gui_Autocomplete_ClearSuggestions" data-uid="Terminal.Gui.Autocomplete.ClearSuggestions">ClearSuggestions()</h4>
  442. <div class="markdown level1 summary">
  443. Clears <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_Suggestions">Suggestions</a>
  444. </div>
  445. <div class="markdown level1 conceptual"></div>
  446. <h5 class="decalaration">Declaration</h5>
  447. <div class="codewrapper">
  448. <pre><code class="lang-csharp hljs">public virtual void ClearSuggestions()</code></pre>
  449. </div>
  450. <a id="Terminal_Gui_Autocomplete_Close_" data-uid="Terminal.Gui.Autocomplete.Close*"></a>
  451. <h4 id="Terminal_Gui_Autocomplete_Close" data-uid="Terminal.Gui.Autocomplete.Close">Close()</h4>
  452. <div class="markdown level1 summary">
  453. Closes the Autocomplete context menu if it is showing and <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_ClearSuggestions">ClearSuggestions()</a>
  454. </div>
  455. <div class="markdown level1 conceptual"></div>
  456. <h5 class="decalaration">Declaration</h5>
  457. <div class="codewrapper">
  458. <pre><code class="lang-csharp hljs">protected void Close()</code></pre>
  459. </div>
  460. <a id="Terminal_Gui_Autocomplete_DeleteTextBackwards_" data-uid="Terminal.Gui.Autocomplete.DeleteTextBackwards*"></a>
  461. <h4 id="Terminal_Gui_Autocomplete_DeleteTextBackwards" data-uid="Terminal.Gui.Autocomplete.DeleteTextBackwards">DeleteTextBackwards()</h4>
  462. <div class="markdown level1 summary">
  463. Deletes the text backwards before insert the selected text in the <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_HostControl">HostControl</a>.
  464. </div>
  465. <div class="markdown level1 conceptual"></div>
  466. <h5 class="decalaration">Declaration</h5>
  467. <div class="codewrapper">
  468. <pre><code class="lang-csharp hljs">protected abstract void DeleteTextBackwards()</code></pre>
  469. </div>
  470. <a id="Terminal_Gui_Autocomplete_EnsureSelectedIdxIsValid_" data-uid="Terminal.Gui.Autocomplete.EnsureSelectedIdxIsValid*"></a>
  471. <h4 id="Terminal_Gui_Autocomplete_EnsureSelectedIdxIsValid" data-uid="Terminal.Gui.Autocomplete.EnsureSelectedIdxIsValid">EnsureSelectedIdxIsValid()</h4>
  472. <div class="markdown level1 summary">
  473. Updates <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_SelectedIdx">SelectedIdx</a> to be a valid index within <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_Suggestions">Suggestions</a>
  474. </div>
  475. <div class="markdown level1 conceptual"></div>
  476. <h5 class="decalaration">Declaration</h5>
  477. <div class="codewrapper">
  478. <pre><code class="lang-csharp hljs">public virtual void EnsureSelectedIdxIsValid()</code></pre>
  479. </div>
  480. <a id="Terminal_Gui_Autocomplete_GenerateSuggestions_" data-uid="Terminal.Gui.Autocomplete.GenerateSuggestions*"></a>
  481. <h4 id="Terminal_Gui_Autocomplete_GenerateSuggestions" data-uid="Terminal.Gui.Autocomplete.GenerateSuggestions">GenerateSuggestions()</h4>
  482. <div class="markdown level1 summary">
  483. Populates <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_Suggestions">Suggestions</a> with all strings in <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_AllSuggestions">AllSuggestions</a> that
  484. match with the current cursor position/text in the <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_HostControl">HostControl</a>
  485. </div>
  486. <div class="markdown level1 conceptual"></div>
  487. <h5 class="decalaration">Declaration</h5>
  488. <div class="codewrapper">
  489. <pre><code class="lang-csharp hljs">public virtual void GenerateSuggestions()</code></pre>
  490. </div>
  491. <a id="Terminal_Gui_Autocomplete_GetCurrentWord_" data-uid="Terminal.Gui.Autocomplete.GetCurrentWord*"></a>
  492. <h4 id="Terminal_Gui_Autocomplete_GetCurrentWord" data-uid="Terminal.Gui.Autocomplete.GetCurrentWord">GetCurrentWord()</h4>
  493. <div class="markdown level1 summary">
  494. Returns the currently selected word from the <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_HostControl">HostControl</a>.
  495. <p>
  496. When overriding this method views can make use of <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_IdxToWord_System_Collections_Generic_List_System_Rune__System_Int32_">IdxToWord(List&lt;Rune&gt;, Int32)</a>
  497. </p>
  498. </div>
  499. <div class="markdown level1 conceptual"></div>
  500. <h5 class="decalaration">Declaration</h5>
  501. <div class="codewrapper">
  502. <pre><code class="lang-csharp hljs">protected abstract string GetCurrentWord()</code></pre>
  503. </div>
  504. <h5 class="returns">Returns</h5>
  505. <table class="table table-bordered table-striped table-condensed">
  506. <thead>
  507. <tr>
  508. <th>Type</th>
  509. <th>Description</th>
  510. </tr>
  511. </thead>
  512. <tbody>
  513. <tr>
  514. <td><span class="xref">System.String</span></td>
  515. <td></td>
  516. </tr>
  517. </tbody>
  518. </table>
  519. <a id="Terminal_Gui_Autocomplete_IdxToWord_" data-uid="Terminal.Gui.Autocomplete.IdxToWord*"></a>
  520. <h4 id="Terminal_Gui_Autocomplete_IdxToWord_System_Collections_Generic_List_System_Rune__System_Int32_" data-uid="Terminal.Gui.Autocomplete.IdxToWord(System.Collections.Generic.List{System.Rune},System.Int32)">IdxToWord(List&lt;Rune&gt;, Int32)</h4>
  521. <div class="markdown level1 summary">
  522. <p>
  523. Given a <code data-dev-comment-type="paramref" class="paramref">line</code> of characters, returns the word which ends at <code data-dev-comment-type="paramref" class="paramref">idx</code>
  524. or null. Also returns null if the <code data-dev-comment-type="paramref" class="paramref">idx</code> is positioned in the middle of a word.
  525. </p>
  526. <p>Use this method to determine whether autocomplete should be shown when the cursor is at
  527. a given point in a line and to get the word from which suggestions should be generated.</p>
  528. </div>
  529. <div class="markdown level1 conceptual"></div>
  530. <h5 class="decalaration">Declaration</h5>
  531. <div class="codewrapper">
  532. <pre><code class="lang-csharp hljs">protected virtual string IdxToWord(List&lt;Rune&gt; line, int idx)</code></pre>
  533. </div>
  534. <h5 class="parameters">Parameters</h5>
  535. <table class="table table-bordered table-striped table-condensed">
  536. <thead>
  537. <tr>
  538. <th>Type</th>
  539. <th>Name</th>
  540. <th>Description</th>
  541. </tr>
  542. </thead>
  543. <tbody>
  544. <tr>
  545. <td><span class="xref">System.Collections.Generic.List</span>&lt;<span class="xref">System.Rune</span>&gt;</td>
  546. <td><span class="parametername">line</span></td>
  547. <td></td>
  548. </tr>
  549. <tr>
  550. <td><span class="xref">System.Int32</span></td>
  551. <td><span class="parametername">idx</span></td>
  552. <td></td>
  553. </tr>
  554. </tbody>
  555. </table>
  556. <h5 class="returns">Returns</h5>
  557. <table class="table table-bordered table-striped table-condensed">
  558. <thead>
  559. <tr>
  560. <th>Type</th>
  561. <th>Description</th>
  562. </tr>
  563. </thead>
  564. <tbody>
  565. <tr>
  566. <td><span class="xref">System.String</span></td>
  567. <td></td>
  568. </tr>
  569. </tbody>
  570. </table>
  571. <a id="Terminal_Gui_Autocomplete_InsertSelection_" data-uid="Terminal.Gui.Autocomplete.InsertSelection*"></a>
  572. <h4 id="Terminal_Gui_Autocomplete_InsertSelection_System_String_" data-uid="Terminal.Gui.Autocomplete.InsertSelection(System.String)">InsertSelection(String)</h4>
  573. <div class="markdown level1 summary">
  574. Called when the user confirms a selection at the current cursor location in
  575. the <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_HostControl">HostControl</a>. The <code data-dev-comment-type="paramref" class="paramref">accepted</code> string
  576. is the full autocomplete word to be inserted. Typically a host will have to
  577. remove some characters such that the <code data-dev-comment-type="paramref" class="paramref">accepted</code> string
  578. completes the word instead of simply being appended.
  579. </div>
  580. <div class="markdown level1 conceptual"></div>
  581. <h5 class="decalaration">Declaration</h5>
  582. <div class="codewrapper">
  583. <pre><code class="lang-csharp hljs">protected virtual bool InsertSelection(string accepted)</code></pre>
  584. </div>
  585. <h5 class="parameters">Parameters</h5>
  586. <table class="table table-bordered table-striped table-condensed">
  587. <thead>
  588. <tr>
  589. <th>Type</th>
  590. <th>Name</th>
  591. <th>Description</th>
  592. </tr>
  593. </thead>
  594. <tbody>
  595. <tr>
  596. <td><span class="xref">System.String</span></td>
  597. <td><span class="parametername">accepted</span></td>
  598. <td></td>
  599. </tr>
  600. </tbody>
  601. </table>
  602. <h5 class="returns">Returns</h5>
  603. <table class="table table-bordered table-striped table-condensed">
  604. <thead>
  605. <tr>
  606. <th>Type</th>
  607. <th>Description</th>
  608. </tr>
  609. </thead>
  610. <tbody>
  611. <tr>
  612. <td><span class="xref">System.Boolean</span></td>
  613. <td>True if the insertion was possible otherwise false</td>
  614. </tr>
  615. </tbody>
  616. </table>
  617. <a id="Terminal_Gui_Autocomplete_InsertText_" data-uid="Terminal.Gui.Autocomplete.InsertText*"></a>
  618. <h4 id="Terminal_Gui_Autocomplete_InsertText_System_String_" data-uid="Terminal.Gui.Autocomplete.InsertText(System.String)">InsertText(String)</h4>
  619. <div class="markdown level1 summary">
  620. Inser the selected text in the <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_HostControl">HostControl</a>.
  621. </div>
  622. <div class="markdown level1 conceptual"></div>
  623. <h5 class="decalaration">Declaration</h5>
  624. <div class="codewrapper">
  625. <pre><code class="lang-csharp hljs">protected abstract void InsertText(string accepted)</code></pre>
  626. </div>
  627. <h5 class="parameters">Parameters</h5>
  628. <table class="table table-bordered table-striped table-condensed">
  629. <thead>
  630. <tr>
  631. <th>Type</th>
  632. <th>Name</th>
  633. <th>Description</th>
  634. </tr>
  635. </thead>
  636. <tbody>
  637. <tr>
  638. <td><span class="xref">System.String</span></td>
  639. <td><span class="parametername">accepted</span></td>
  640. <td></td>
  641. </tr>
  642. </tbody>
  643. </table>
  644. <a id="Terminal_Gui_Autocomplete_IsWordChar_" data-uid="Terminal.Gui.Autocomplete.IsWordChar*"></a>
  645. <h4 id="Terminal_Gui_Autocomplete_IsWordChar_System_Rune_" data-uid="Terminal.Gui.Autocomplete.IsWordChar(System.Rune)">IsWordChar(Rune)</h4>
  646. <div class="markdown level1 summary">
  647. Return true if the given symbol should be considered part of a word
  648. and can be contained in matches. Base behavior is to use <span class="xref">System.Char.IsLetterOrDigit(System.Char)</span>
  649. </div>
  650. <div class="markdown level1 conceptual"></div>
  651. <h5 class="decalaration">Declaration</h5>
  652. <div class="codewrapper">
  653. <pre><code class="lang-csharp hljs">public virtual bool IsWordChar(Rune rune)</code></pre>
  654. </div>
  655. <h5 class="parameters">Parameters</h5>
  656. <table class="table table-bordered table-striped table-condensed">
  657. <thead>
  658. <tr>
  659. <th>Type</th>
  660. <th>Name</th>
  661. <th>Description</th>
  662. </tr>
  663. </thead>
  664. <tbody>
  665. <tr>
  666. <td><span class="xref">System.Rune</span></td>
  667. <td><span class="parametername">rune</span></td>
  668. <td></td>
  669. </tr>
  670. </tbody>
  671. </table>
  672. <h5 class="returns">Returns</h5>
  673. <table class="table table-bordered table-striped table-condensed">
  674. <thead>
  675. <tr>
  676. <th>Type</th>
  677. <th>Description</th>
  678. </tr>
  679. </thead>
  680. <tbody>
  681. <tr>
  682. <td><span class="xref">System.Boolean</span></td>
  683. <td></td>
  684. </tr>
  685. </tbody>
  686. </table>
  687. <a id="Terminal_Gui_Autocomplete_MouseEvent_" data-uid="Terminal.Gui.Autocomplete.MouseEvent*"></a>
  688. <h4 id="Terminal_Gui_Autocomplete_MouseEvent_Terminal_Gui_MouseEvent_System_Boolean_" data-uid="Terminal.Gui.Autocomplete.MouseEvent(Terminal.Gui.MouseEvent,System.Boolean)">MouseEvent(MouseEvent, Boolean)</h4>
  689. <div class="markdown level1 summary">
  690. Handle mouse events before <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_HostControl">HostControl</a> e.g. to make mouse events like
  691. report/click apply to the autocomplete control instead of changing the cursor position in
  692. the underlying text view.
  693. </div>
  694. <div class="markdown level1 conceptual"></div>
  695. <h5 class="decalaration">Declaration</h5>
  696. <div class="codewrapper">
  697. <pre><code class="lang-csharp hljs">public virtual bool MouseEvent(MouseEvent me, bool fromHost = false)</code></pre>
  698. </div>
  699. <h5 class="parameters">Parameters</h5>
  700. <table class="table table-bordered table-striped table-condensed">
  701. <thead>
  702. <tr>
  703. <th>Type</th>
  704. <th>Name</th>
  705. <th>Description</th>
  706. </tr>
  707. </thead>
  708. <tbody>
  709. <tr>
  710. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  711. <td><span class="parametername">me</span></td>
  712. <td>The mouse event.</td>
  713. </tr>
  714. <tr>
  715. <td><span class="xref">System.Boolean</span></td>
  716. <td><span class="parametername">fromHost</span></td>
  717. <td>If was called from the popup or from the host.</td>
  718. </tr>
  719. </tbody>
  720. </table>
  721. <h5 class="returns">Returns</h5>
  722. <table class="table table-bordered table-striped table-condensed">
  723. <thead>
  724. <tr>
  725. <th>Type</th>
  726. <th>Description</th>
  727. </tr>
  728. </thead>
  729. <tbody>
  730. <tr>
  731. <td><span class="xref">System.Boolean</span></td>
  732. <td><code>true</code>if the mouse can be handled <code>false</code>otherwise.</td>
  733. </tr>
  734. </tbody>
  735. </table>
  736. <a id="Terminal_Gui_Autocomplete_MoveDown_" data-uid="Terminal.Gui.Autocomplete.MoveDown*"></a>
  737. <h4 id="Terminal_Gui_Autocomplete_MoveDown" data-uid="Terminal.Gui.Autocomplete.MoveDown">MoveDown()</h4>
  738. <div class="markdown level1 summary">
  739. Moves the selection in the Autocomplete context menu down one
  740. </div>
  741. <div class="markdown level1 conceptual"></div>
  742. <h5 class="decalaration">Declaration</h5>
  743. <div class="codewrapper">
  744. <pre><code class="lang-csharp hljs">protected void MoveDown()</code></pre>
  745. </div>
  746. <a id="Terminal_Gui_Autocomplete_MoveUp_" data-uid="Terminal.Gui.Autocomplete.MoveUp*"></a>
  747. <h4 id="Terminal_Gui_Autocomplete_MoveUp" data-uid="Terminal.Gui.Autocomplete.MoveUp">MoveUp()</h4>
  748. <div class="markdown level1 summary">
  749. Moves the selection in the Autocomplete context menu up one
  750. </div>
  751. <div class="markdown level1 conceptual"></div>
  752. <h5 class="decalaration">Declaration</h5>
  753. <div class="codewrapper">
  754. <pre><code class="lang-csharp hljs">protected void MoveUp()</code></pre>
  755. </div>
  756. <a id="Terminal_Gui_Autocomplete_ProcessKey_" data-uid="Terminal.Gui.Autocomplete.ProcessKey*"></a>
  757. <h4 id="Terminal_Gui_Autocomplete_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.Autocomplete.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  758. <div class="markdown level1 summary">
  759. Handle key events before <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_HostControl">HostControl</a> e.g. to make key events like
  760. up/down apply to the autocomplete control instead of changing the cursor position in
  761. the underlying text view.
  762. </div>
  763. <div class="markdown level1 conceptual"></div>
  764. <h5 class="decalaration">Declaration</h5>
  765. <div class="codewrapper">
  766. <pre><code class="lang-csharp hljs">public virtual bool ProcessKey(KeyEvent kb)</code></pre>
  767. </div>
  768. <h5 class="parameters">Parameters</h5>
  769. <table class="table table-bordered table-striped table-condensed">
  770. <thead>
  771. <tr>
  772. <th>Type</th>
  773. <th>Name</th>
  774. <th>Description</th>
  775. </tr>
  776. </thead>
  777. <tbody>
  778. <tr>
  779. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  780. <td><span class="parametername">kb</span></td>
  781. <td>The key event.</td>
  782. </tr>
  783. </tbody>
  784. </table>
  785. <h5 class="returns">Returns</h5>
  786. <table class="table table-bordered table-striped table-condensed">
  787. <thead>
  788. <tr>
  789. <th>Type</th>
  790. <th>Description</th>
  791. </tr>
  792. </thead>
  793. <tbody>
  794. <tr>
  795. <td><span class="xref">System.Boolean</span></td>
  796. <td><code>true</code>if the key can be handled <code>false</code>otherwise.</td>
  797. </tr>
  798. </tbody>
  799. </table>
  800. <a id="Terminal_Gui_Autocomplete_RenderOverlay_" data-uid="Terminal.Gui.Autocomplete.RenderOverlay*"></a>
  801. <h4 id="Terminal_Gui_Autocomplete_RenderOverlay_Terminal_Gui_Point_" data-uid="Terminal.Gui.Autocomplete.RenderOverlay(Terminal.Gui.Point)">RenderOverlay(Point)</h4>
  802. <div class="markdown level1 summary">
  803. Renders the autocomplete dialog inside or outside the given <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_HostControl">HostControl</a> at the
  804. given point.
  805. </div>
  806. <div class="markdown level1 conceptual"></div>
  807. <h5 class="decalaration">Declaration</h5>
  808. <div class="codewrapper">
  809. <pre><code class="lang-csharp hljs">public virtual void RenderOverlay(Point renderAt)</code></pre>
  810. </div>
  811. <h5 class="parameters">Parameters</h5>
  812. <table class="table table-bordered table-striped table-condensed">
  813. <thead>
  814. <tr>
  815. <th>Type</th>
  816. <th>Name</th>
  817. <th>Description</th>
  818. </tr>
  819. </thead>
  820. <tbody>
  821. <tr>
  822. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  823. <td><span class="parametername">renderAt</span></td>
  824. <td></td>
  825. </tr>
  826. </tbody>
  827. </table>
  828. <a id="Terminal_Gui_Autocomplete_RenderSelectedIdxByMouse_" data-uid="Terminal.Gui.Autocomplete.RenderSelectedIdxByMouse*"></a>
  829. <h4 id="Terminal_Gui_Autocomplete_RenderSelectedIdxByMouse_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.Autocomplete.RenderSelectedIdxByMouse(Terminal.Gui.MouseEvent)">RenderSelectedIdxByMouse(MouseEvent)</h4>
  830. <div class="markdown level1 summary">
  831. Render the current selection in the Autocomplete context menu by the mouse reporting.
  832. </div>
  833. <div class="markdown level1 conceptual"></div>
  834. <h5 class="decalaration">Declaration</h5>
  835. <div class="codewrapper">
  836. <pre><code class="lang-csharp hljs">protected void RenderSelectedIdxByMouse(MouseEvent me)</code></pre>
  837. </div>
  838. <h5 class="parameters">Parameters</h5>
  839. <table class="table table-bordered table-striped table-condensed">
  840. <thead>
  841. <tr>
  842. <th>Type</th>
  843. <th>Name</th>
  844. <th>Description</th>
  845. </tr>
  846. </thead>
  847. <tbody>
  848. <tr>
  849. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  850. <td><span class="parametername">me</span></td>
  851. <td></td>
  852. </tr>
  853. </tbody>
  854. </table>
  855. <a id="Terminal_Gui_Autocomplete_ReopenSuggestions_" data-uid="Terminal.Gui.Autocomplete.ReopenSuggestions*"></a>
  856. <h4 id="Terminal_Gui_Autocomplete_ReopenSuggestions" data-uid="Terminal.Gui.Autocomplete.ReopenSuggestions">ReopenSuggestions()</h4>
  857. <div class="markdown level1 summary">
  858. Reopen the popup after it has been closed.
  859. </div>
  860. <div class="markdown level1 conceptual"></div>
  861. <h5 class="decalaration">Declaration</h5>
  862. <div class="codewrapper">
  863. <pre><code class="lang-csharp hljs">protected bool ReopenSuggestions()</code></pre>
  864. </div>
  865. <h5 class="returns">Returns</h5>
  866. <table class="table table-bordered table-striped table-condensed">
  867. <thead>
  868. <tr>
  869. <th>Type</th>
  870. <th>Description</th>
  871. </tr>
  872. </thead>
  873. <tbody>
  874. <tr>
  875. <td><span class="xref">System.Boolean</span></td>
  876. <td></td>
  877. </tr>
  878. </tbody>
  879. </table>
  880. <a id="Terminal_Gui_Autocomplete_Select_" data-uid="Terminal.Gui.Autocomplete.Select*"></a>
  881. <h4 id="Terminal_Gui_Autocomplete_Select" data-uid="Terminal.Gui.Autocomplete.Select">Select()</h4>
  882. <div class="markdown level1 summary">
  883. Completes the autocomplete selection process. Called when user hits the <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_SelectionKey">SelectionKey</a>.
  884. </div>
  885. <div class="markdown level1 conceptual"></div>
  886. <h5 class="decalaration">Declaration</h5>
  887. <div class="codewrapper">
  888. <pre><code class="lang-csharp hljs">protected bool Select()</code></pre>
  889. </div>
  890. <h5 class="returns">Returns</h5>
  891. <table class="table table-bordered table-striped table-condensed">
  892. <thead>
  893. <tr>
  894. <th>Type</th>
  895. <th>Description</th>
  896. </tr>
  897. </thead>
  898. <tbody>
  899. <tr>
  900. <td><span class="xref">System.Boolean</span></td>
  901. <td></td>
  902. </tr>
  903. </tbody>
  904. </table>
  905. <h3 id="implements">Implements</h3>
  906. <div>
  907. <a class="xref" href="Terminal.Gui.IAutocomplete.html">IAutocomplete</a>
  908. </div>
  909. </article>
  910. </div>
  911. <div class="hidden-sm col-md-2" role="complementary">
  912. <div class="sideaffix">
  913. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  914. <h5>In This Article</h5>
  915. <div></div>
  916. </nav>
  917. </div>
  918. </div>
  919. </div>
  920. </div>
  921. <footer>
  922. <div class="grad-bottom"></div>
  923. <div class="footer">
  924. <div class="container">
  925. <span class="pull-right">
  926. <a href="#top">Back to top</a>
  927. </span>
  928. <span>Generated by <strong>DocFX</strong></span>
  929. </div>
  930. </div>
  931. </footer>
  932. </div>
  933. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  934. <script type="text/javascript" src="../../styles/docfx.js"></script>
  935. <script type="text/javascript" src="../../styles/main.js"></script>
  936. </body>
  937. </html>