Terminal.html 87 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Terminal Class Reference</title>
  5. <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
  6. <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
  7. <meta charset='utf-8'>
  8. <script src="../js/jquery.min.js" defer></script>
  9. <script src="../js/jazzy.js" defer></script>
  10. </head>
  11. <body>
  12. <a name="//apple_ref/swift/Class/Terminal" class="dashAnchor"></a>
  13. <a title="Terminal Class Reference"></a>
  14. <header>
  15. <div class="content-wrapper">
  16. <p><a href="../index.html">SwiftTerm 1.0 Docs</a> (65% documented)</p>
  17. <p class="header-right"><a href="https://github.com/migueldeicaza/SwiftTerm"><img src="../img/gh.png"/>View on GitHub</a></p>
  18. <p class="header-right"><a href="dash-feed://https%3A%2F%2Fmigueldeicaza%2Egithub%2Eio%2FSwiftTerm%2Fdocsets%2FSwiftTerm%2Exml"><img src="../img/dash.png"/>Install in Dash</a></p>
  19. </div>
  20. </header>
  21. <div class="content-wrapper">
  22. <p id="breadcrumbs">
  23. <a href="../index.html">SwiftTerm Reference</a>
  24. <img id="carat" src="../img/carat.png" />
  25. Terminal Class Reference
  26. </p>
  27. </div>
  28. <div class="content-wrapper">
  29. <nav class="sidebar">
  30. <ul class="nav-groups">
  31. <li class="nav-group-name">
  32. <a href="../Classes.html">Classes</a>
  33. <ul class="nav-group-tasks">
  34. <li class="nav-group-task">
  35. <a href="../Classes/Color.html">Color</a>
  36. </li>
  37. <li class="nav-group-task">
  38. <a href="../Classes/HeadlessTerminal.html">HeadlessTerminal</a>
  39. </li>
  40. <li class="nav-group-task">
  41. <a href="../Classes/LocalProcess.html">LocalProcess</a>
  42. </li>
  43. <li class="nav-group-task">
  44. <a href="../Classes/LocalProcessTerminalView.html">LocalProcessTerminalView</a>
  45. </li>
  46. <li class="nav-group-task">
  47. <a href="../Classes/PseudoTerminalHelpers.html">PseudoTerminalHelpers</a>
  48. </li>
  49. <li class="nav-group-task">
  50. <a href="../Classes/Terminal.html">Terminal</a>
  51. </li>
  52. <li class="nav-group-task">
  53. <a href="../Classes/Terminal/MouseMode.html">– MouseMode</a>
  54. </li>
  55. <li class="nav-group-task">
  56. <a href="../Classes/Terminal/WindowManipulationCommand.html">– WindowManipulationCommand</a>
  57. </li>
  58. <li class="nav-group-task">
  59. <a href="../Classes/TerminalAccessory.html">TerminalAccessory</a>
  60. </li>
  61. <li class="nav-group-task">
  62. <a href="../Classes/TerminalDebugView.html">TerminalDebugView</a>
  63. </li>
  64. <li class="nav-group-task">
  65. <a href="../Classes/TerminalView.html">TerminalView</a>
  66. </li>
  67. <li class="nav-group-task">
  68. <a href="../Classes/TerminalView/Font.html">– Font</a>
  69. </li>
  70. <li class="nav-group-task">
  71. <a href="../Classes/TerminalView.html">TerminalView</a>
  72. </li>
  73. <li class="nav-group-task">
  74. <a href="../Classes/TerminalView/Font.html">– Font</a>
  75. </li>
  76. </ul>
  77. </li>
  78. <li class="nav-group-name">
  79. <a href="../Enums.html">Enumerations</a>
  80. <ul class="nav-group-tasks">
  81. <li class="nav-group-task">
  82. <a href="../Enums/CursorStyle.html">CursorStyle</a>
  83. </li>
  84. </ul>
  85. </li>
  86. <li class="nav-group-name">
  87. <a href="../Extensions.html">Extensions</a>
  88. <ul class="nav-group-tasks">
  89. <li class="nav-group-task">
  90. <a href="../Extensions/TerminalViewDelegate.html">TerminalViewDelegate</a>
  91. </li>
  92. </ul>
  93. </li>
  94. <li class="nav-group-name">
  95. <a href="../Protocols.html">Protocols</a>
  96. <ul class="nav-group-tasks">
  97. <li class="nav-group-task">
  98. <a href="../Protocols/LocalProcessDelegate.html">LocalProcessDelegate</a>
  99. </li>
  100. <li class="nav-group-task">
  101. <a href="../Protocols/LocalProcessTerminalViewDelegate.html">LocalProcessTerminalViewDelegate</a>
  102. </li>
  103. <li class="nav-group-task">
  104. <a href="../Protocols/TerminalDelegate.html">TerminalDelegate</a>
  105. </li>
  106. <li class="nav-group-task">
  107. <a href="../Protocols/TerminalViewDelegate.html">TerminalViewDelegate</a>
  108. </li>
  109. </ul>
  110. </li>
  111. <li class="nav-group-name">
  112. <a href="../Structs.html">Structures</a>
  113. <ul class="nav-group-tasks">
  114. <li class="nav-group-task">
  115. <a href="../Structs/Attribute.html">Attribute</a>
  116. </li>
  117. <li class="nav-group-task">
  118. <a href="../Structs/Attribute/Color.html">– Color</a>
  119. </li>
  120. <li class="nav-group-task">
  121. <a href="../Structs/CharData.html">CharData</a>
  122. </li>
  123. <li class="nav-group-task">
  124. <a href="../Structs/CharacterStyle.html">CharacterStyle</a>
  125. </li>
  126. <li class="nav-group-task">
  127. <a href="../Structs/TerminalOptions.html">TerminalOptions</a>
  128. </li>
  129. <li class="nav-group-task">
  130. <a href="../Structs/TinyAtom.html">TinyAtom</a>
  131. </li>
  132. </ul>
  133. </li>
  134. <li class="nav-group-name">
  135. <a href="../Typealiases.html">Type Aliases</a>
  136. <ul class="nav-group-tasks">
  137. <li class="nav-group-task">
  138. <a href="../Typealiases.html#/s:9SwiftTerm7TTImagea">TTImage</a>
  139. </li>
  140. </ul>
  141. </li>
  142. </ul>
  143. </nav>
  144. <article class="main-content">
  145. <section>
  146. <section class="section">
  147. <h1>Terminal</h1>
  148. <div class="declaration">
  149. <div class="language">
  150. <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">class</span> <span class="kt">Terminal</span></code></pre>
  151. </div>
  152. </div>
  153. <p>The <code>Terminal</code> class provides the terminal emulation engine, and can be used to feed data to the
  154. terminal emulator. Typically users will intereact with a higher-level implementation that provides a
  155. UI toolkit-specific rendering and connects the input to the UI toolkit.</p>
  156. <p>A front-end would draw the contents of the terminal, and take input from the user, which is in turn
  157. either mapped to one of the public APIs here, or if it is user input is passed to the <code>feed</code> methods here.</p>
  158. <p>The terminal is also connected to a backend that is conneted to the client, and data from this
  159. client is fed into the emulator by calling the <code>sendResponse method</code></p>
  160. <p>The behavior of the terminal is configured by implementing the <code><a href="../Protocols/TerminalDelegate.html">TerminalDelegate</a></code> protocol
  161. that is provided in the constructor call.</p>
  162. </section>
  163. <section class="section task-group-section">
  164. <div class="task-group">
  165. <ul>
  166. <li class="item">
  167. <div>
  168. <code>
  169. <a name="/s:9SwiftTerm8TerminalC4colsSivp"></a>
  170. <a name="//apple_ref/swift/Property/cols" class="dashAnchor"></a>
  171. <a class="token" href="#/s:9SwiftTerm8TerminalC4colsSivp">cols</a>
  172. </code>
  173. </div>
  174. <div class="height-container">
  175. <div class="pointer-container"></div>
  176. <section class="section">
  177. <div class="pointer"></div>
  178. <div class="abstract">
  179. <p>The current terminal columns (counting from 1)</p>
  180. </div>
  181. <div class="declaration">
  182. <h4>Declaration</h4>
  183. <div class="language">
  184. <p class="aside-title">Swift</p>
  185. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">private(set)</span> <span class="k">var</span> <span class="nv">cols</span><span class="p">:</span> <span class="kt">Int</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>
  186. </div>
  187. </div>
  188. <div class="slightly-smaller">
  189. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L181">Show on GitHub</a>
  190. </div>
  191. </section>
  192. </div>
  193. </li>
  194. <li class="item">
  195. <div>
  196. <code>
  197. <a name="/s:9SwiftTerm8TerminalC4rowsSivp"></a>
  198. <a name="//apple_ref/swift/Property/rows" class="dashAnchor"></a>
  199. <a class="token" href="#/s:9SwiftTerm8TerminalC4rowsSivp">rows</a>
  200. </code>
  201. </div>
  202. <div class="height-container">
  203. <div class="pointer-container"></div>
  204. <section class="section">
  205. <div class="pointer"></div>
  206. <div class="abstract">
  207. <p>The current terminal rows (counting from 1)</p>
  208. </div>
  209. <div class="declaration">
  210. <h4>Declaration</h4>
  211. <div class="language">
  212. <p class="aside-title">Swift</p>
  213. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">private(set)</span> <span class="k">var</span> <span class="nv">rows</span><span class="p">:</span> <span class="kt">Int</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>
  214. </div>
  215. </div>
  216. <div class="slightly-smaller">
  217. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L184">Show on GitHub</a>
  218. </div>
  219. </section>
  220. </div>
  221. </li>
  222. <li class="item">
  223. <div>
  224. <code>
  225. <a name="/s:9SwiftTerm8TerminalC17applicationCursorSbvp"></a>
  226. <a name="//apple_ref/swift/Property/applicationCursor" class="dashAnchor"></a>
  227. <a class="token" href="#/s:9SwiftTerm8TerminalC17applicationCursorSbvp">applicationCursor</a>
  228. </code>
  229. </div>
  230. <div class="height-container">
  231. <div class="pointer-container"></div>
  232. <section class="section">
  233. <div class="pointer"></div>
  234. <div class="abstract">
  235. <p>Undocumented</p>
  236. </div>
  237. <div class="declaration">
  238. <h4>Declaration</h4>
  239. <div class="language">
  240. <p class="aside-title">Swift</p>
  241. <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">applicationCursor</span><span class="p">:</span> <span class="kt">Bool</span></code></pre>
  242. </div>
  243. </div>
  244. <div class="slightly-smaller">
  245. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L">Show on GitHub</a>
  246. </div>
  247. </section>
  248. </div>
  249. </li>
  250. <li class="item">
  251. <div>
  252. <code>
  253. <a name="/s:9SwiftTerm8TerminalC20hostCurrentDirectorySSSgvp"></a>
  254. <a name="//apple_ref/swift/Property/hostCurrentDirectory" class="dashAnchor"></a>
  255. <a class="token" href="#/s:9SwiftTerm8TerminalC20hostCurrentDirectorySSSgvp">hostCurrentDirectory</a>
  256. </code>
  257. </div>
  258. <div class="height-container">
  259. <div class="pointer-container"></div>
  260. <section class="section">
  261. <div class="pointer"></div>
  262. <div class="abstract">
  263. <p>This variable if set, contains an URI representing the host and directory of the process running in the terminal
  264. it is often used by applciations to track the working directory. It might be nil, or might not be correct, the
  265. contents are entirely under the control of the remote application, and require the terminal to be trusted
  266. (see the <code>isProcessTrusted</code> method in the <code><a href="../Protocols/TerminalDelegate.html">TerminalDelegate</a></code>). When this is set the
  267. <code>hostCurrentDirectoryUpdated</code> method on the delegate is invoked.</p>
  268. </div>
  269. <div class="declaration">
  270. <h4>Declaration</h4>
  271. <div class="language">
  272. <p class="aside-title">Swift</p>
  273. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">private(set)</span> <span class="k">var</span> <span class="nv">hostCurrentDirectory</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>
  274. </div>
  275. </div>
  276. <div class="slightly-smaller">
  277. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L241">Show on GitHub</a>
  278. </div>
  279. </section>
  280. </div>
  281. </li>
  282. <li class="item">
  283. <div>
  284. <code>
  285. <a name="/s:9SwiftTerm8TerminalC15foregroundColorAA0E0Cvp"></a>
  286. <a name="//apple_ref/swift/Property/foregroundColor" class="dashAnchor"></a>
  287. <a class="token" href="#/s:9SwiftTerm8TerminalC15foregroundColorAA0E0Cvp">foregroundColor</a>
  288. </code>
  289. </div>
  290. <div class="height-container">
  291. <div class="pointer-container"></div>
  292. <section class="section">
  293. <div class="pointer"></div>
  294. <div class="abstract">
  295. <p>This tracks the current foreground color for the application.</p>
  296. </div>
  297. <div class="declaration">
  298. <h4>Declaration</h4>
  299. <div class="language">
  300. <p class="aside-title">Swift</p>
  301. <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">foregroundColor</span><span class="p">:</span> <span class="kt"><a href="../Classes/Color.html">Color</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>
  302. </div>
  303. </div>
  304. <div class="slightly-smaller">
  305. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L281-L290">Show on GitHub</a>
  306. </div>
  307. </section>
  308. </div>
  309. </li>
  310. <li class="item">
  311. <div>
  312. <code>
  313. <a name="/s:9SwiftTerm8TerminalC15backgroundColorAA0E0Cvp"></a>
  314. <a name="//apple_ref/swift/Property/backgroundColor" class="dashAnchor"></a>
  315. <a class="token" href="#/s:9SwiftTerm8TerminalC15backgroundColorAA0E0Cvp">backgroundColor</a>
  316. </code>
  317. </div>
  318. <div class="height-container">
  319. <div class="pointer-container"></div>
  320. <section class="section">
  321. <div class="pointer"></div>
  322. <div class="abstract">
  323. <p>This tracks the current background color for the application.</p>
  324. </div>
  325. <div class="declaration">
  326. <h4>Declaration</h4>
  327. <div class="language">
  328. <p class="aside-title">Swift</p>
  329. <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">backgroundColor</span><span class="p">:</span> <span class="kt"><a href="../Classes/Color.html">Color</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>
  330. </div>
  331. </div>
  332. <div class="slightly-smaller">
  333. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L292-L301">Show on GitHub</a>
  334. </div>
  335. </section>
  336. </div>
  337. </li>
  338. <li class="item">
  339. <div>
  340. <code>
  341. <a name="/s:9SwiftTerm8TerminalC9MouseModeO"></a>
  342. <a name="//apple_ref/swift/Enum/MouseMode" class="dashAnchor"></a>
  343. <a class="token" href="#/s:9SwiftTerm8TerminalC9MouseModeO">MouseMode</a>
  344. </code>
  345. </div>
  346. <div class="height-container">
  347. <div class="pointer-container"></div>
  348. <section class="section">
  349. <div class="pointer"></div>
  350. <div class="abstract">
  351. <p>Represents the mouse operation mode that the terminal is currently using and higher level
  352. implementations should use the functions in this enumeration to determine what events to
  353. send</p>
  354. <a href="../Classes/Terminal/MouseMode.html" class="slightly-smaller">See more</a>
  355. </div>
  356. <div class="declaration">
  357. <h4>Declaration</h4>
  358. <div class="language">
  359. <p class="aside-title">Swift</p>
  360. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">MouseMode</span></code></pre>
  361. </div>
  362. </div>
  363. <div class="slightly-smaller">
  364. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L307-L355">Show on GitHub</a>
  365. </div>
  366. </section>
  367. </div>
  368. </li>
  369. <li class="item">
  370. <div>
  371. <code>
  372. <a name="/s:9SwiftTerm8TerminalC9mouseModeAC05MouseE0Ovp"></a>
  373. <a name="//apple_ref/swift/Property/mouseMode" class="dashAnchor"></a>
  374. <a class="token" href="#/s:9SwiftTerm8TerminalC9mouseModeAC05MouseE0Ovp">mouseMode</a>
  375. </code>
  376. </div>
  377. <div class="height-container">
  378. <div class="pointer-container"></div>
  379. <section class="section">
  380. <div class="pointer"></div>
  381. <div class="abstract">
  382. <p>Undocumented</p>
  383. </div>
  384. <div class="declaration">
  385. <h4>Declaration</h4>
  386. <div class="language">
  387. <p class="aside-title">Swift</p>
  388. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">private(set)</span> <span class="k">var</span> <span class="nv">mouseMode</span><span class="p">:</span> <span class="kt"><a href="../Classes/Terminal/MouseMode.html">MouseMode</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>
  389. </div>
  390. </div>
  391. <div class="slightly-smaller">
  392. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L357-L361">Show on GitHub</a>
  393. </div>
  394. </section>
  395. </div>
  396. </li>
  397. <li class="item">
  398. <div>
  399. <code>
  400. <a name="/s:9SwiftTerm8TerminalC7getDimsSi4cols_Si4rowstyF"></a>
  401. <a name="//apple_ref/swift/Method/getDims()" class="dashAnchor"></a>
  402. <a class="token" href="#/s:9SwiftTerm8TerminalC7getDimsSi4cols_Si4rowstyF">getDims()</a>
  403. </code>
  404. </div>
  405. <div class="height-container">
  406. <div class="pointer-container"></div>
  407. <section class="section">
  408. <div class="pointer"></div>
  409. <div class="abstract">
  410. <p>Undocumented</p>
  411. </div>
  412. <div class="declaration">
  413. <h4>Declaration</h4>
  414. <div class="language">
  415. <p class="aside-title">Swift</p>
  416. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">getDims</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="nv">cols</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">rows</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span></code></pre>
  417. </div>
  418. </div>
  419. <div class="slightly-smaller">
  420. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L380-L383">Show on GitHub</a>
  421. </div>
  422. </section>
  423. </div>
  424. </li>
  425. <li class="item">
  426. <div>
  427. <code>
  428. <a name="/s:9SwiftTerm8TerminalC8delegate7optionsAcA0C8Delegate_p_AA0C7OptionsVtcfc"></a>
  429. <a name="//apple_ref/swift/Method/init(delegate:options:)" class="dashAnchor"></a>
  430. <a class="token" href="#/s:9SwiftTerm8TerminalC8delegate7optionsAcA0C8Delegate_p_AA0C7OptionsVtcfc">init(delegate:<wbr>options:<wbr>)</a>
  431. </code>
  432. </div>
  433. <div class="height-container">
  434. <div class="pointer-container"></div>
  435. <section class="section">
  436. <div class="pointer"></div>
  437. <div class="abstract">
  438. <p>Undocumented</p>
  439. </div>
  440. <div class="declaration">
  441. <h4>Declaration</h4>
  442. <div class="language">
  443. <p class="aside-title">Swift</p>
  444. <pre class="highlight swift"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">delegate</span><span class="p">:</span> <span class="kt"><a href="../Protocols/TerminalDelegate.html">TerminalDelegate</a></span><span class="p">,</span> <span class="nv">options</span><span class="p">:</span> <span class="kt"><a href="../Structs/TerminalOptions.html">TerminalOptions</a></span> <span class="o">=</span> <span class="kt"><a href="../Structs/TerminalOptions.html">TerminalOptions</a></span><span class="o">.</span><span class="k">default</span><span class="p">)</span></code></pre>
  445. </div>
  446. </div>
  447. <div class="slightly-smaller">
  448. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L385-L394">Show on GitHub</a>
  449. </div>
  450. </section>
  451. </div>
  452. </li>
  453. <li class="item">
  454. <div>
  455. <code>
  456. <a name="/s:9SwiftTerm8TerminalC11getCharData3col3rowAA0eF0VSgSi_SitF"></a>
  457. <a name="//apple_ref/swift/Method/getCharData(col:row:)" class="dashAnchor"></a>
  458. <a class="token" href="#/s:9SwiftTerm8TerminalC11getCharData3col3rowAA0eF0VSgSi_SitF">getCharData(col:<wbr>row:<wbr>)</a>
  459. </code>
  460. </div>
  461. <div class="height-container">
  462. <div class="pointer-container"></div>
  463. <section class="section">
  464. <div class="pointer"></div>
  465. <div class="abstract">
  466. <p>Returns the CharData at the specified column and row, these are zero-based</p>
  467. </div>
  468. <div class="declaration">
  469. <h4>Declaration</h4>
  470. <div class="language">
  471. <p class="aside-title">Swift</p>
  472. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">getCharData</span><span class="p">(</span><span class="nv">col</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">row</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Structs/CharData.html">CharData</a></span><span class="p">?</span></code></pre>
  473. </div>
  474. </div>
  475. <div>
  476. <h4>Parameters</h4>
  477. <table class="graybox">
  478. <tbody>
  479. <tr>
  480. <td>
  481. <code>
  482. <em>col</em>
  483. </code>
  484. </td>
  485. <td>
  486. <div>
  487. <p>column to retrieve, starts at 0</p>
  488. </div>
  489. </td>
  490. </tr>
  491. <tr>
  492. <td>
  493. <code>
  494. <em>row</em>
  495. </code>
  496. </td>
  497. <td>
  498. <div>
  499. <p>row to retrieve, starts at 0</p>
  500. </div>
  501. </td>
  502. </tr>
  503. </tbody>
  504. </table>
  505. </div>
  506. <div>
  507. <h4>Return Value</h4>
  508. <p>nil if the col or row are out of bounds, or the CharData contained in that cell otherwise</p>
  509. </div>
  510. <div class="slightly-smaller">
  511. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L410-L419">Show on GitHub</a>
  512. </div>
  513. </section>
  514. </div>
  515. </li>
  516. <li class="item">
  517. <div>
  518. <code>
  519. <a name="/s:9SwiftTerm8TerminalC12getCharacter3col3rowSJSgSi_SitF"></a>
  520. <a name="//apple_ref/swift/Method/getCharacter(col:row:)" class="dashAnchor"></a>
  521. <a class="token" href="#/s:9SwiftTerm8TerminalC12getCharacter3col3rowSJSgSi_SitF">getCharacter(col:<wbr>row:<wbr>)</a>
  522. </code>
  523. </div>
  524. <div class="height-container">
  525. <div class="pointer-container"></div>
  526. <section class="section">
  527. <div class="pointer"></div>
  528. <div class="abstract">
  529. <p>Returns the character at the specified column and row, these are zero-based</p>
  530. </div>
  531. <div class="declaration">
  532. <h4>Declaration</h4>
  533. <div class="language">
  534. <p class="aside-title">Swift</p>
  535. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">getCharacter</span><span class="p">(</span><span class="nv">col</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">row</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Character</span><span class="p">?</span></code></pre>
  536. </div>
  537. </div>
  538. <div>
  539. <h4>Parameters</h4>
  540. <table class="graybox">
  541. <tbody>
  542. <tr>
  543. <td>
  544. <code>
  545. <em>col</em>
  546. </code>
  547. </td>
  548. <td>
  549. <div>
  550. <p>column to retrieve, starts at 0</p>
  551. </div>
  552. </td>
  553. </tr>
  554. <tr>
  555. <td>
  556. <code>
  557. <em>row</em>
  558. </code>
  559. </td>
  560. <td>
  561. <div>
  562. <p>row to retrieve, starts at 0</p>
  563. </div>
  564. </td>
  565. </tr>
  566. </tbody>
  567. </table>
  568. </div>
  569. <div>
  570. <h4>Return Value</h4>
  571. <p>nil if the col or row are out of bounds, or the Character contained in that cell otherwise</p>
  572. </div>
  573. <div class="slightly-smaller">
  574. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L426-L429">Show on GitHub</a>
  575. </div>
  576. </section>
  577. </div>
  578. </li>
  579. <li class="item">
  580. <div>
  581. <code>
  582. <a name="/s:9SwiftTerm8TerminalC25WindowManipulationCommandO"></a>
  583. <a name="//apple_ref/swift/Enum/WindowManipulationCommand" class="dashAnchor"></a>
  584. <a class="token" href="#/s:9SwiftTerm8TerminalC25WindowManipulationCommandO">WindowManipulationCommand</a>
  585. </code>
  586. </div>
  587. <div class="height-container">
  588. <div class="pointer-container"></div>
  589. <section class="section">
  590. <div class="pointer"></div>
  591. <div class="abstract">
  592. <p>Commands send to the <code>windowCommand</code> delegate for the front-end to implement capabilities
  593. on behalf of the client. The expected return strings in some of these enumeration values is documented
  594. below. Returns are only expected for the enum values that start with the prefix <code>report</code></p>
  595. <a href="../Classes/Terminal/WindowManipulationCommand.html" class="slightly-smaller">See more</a>
  596. </div>
  597. <div class="declaration">
  598. <h4>Declaration</h4>
  599. <div class="language">
  600. <p class="aside-title">Swift</p>
  601. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">WindowManipulationCommand</span></code></pre>
  602. </div>
  603. </div>
  604. <div class="slightly-smaller">
  605. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L2073-L2111">Show on GitHub</a>
  606. </div>
  607. </section>
  608. </div>
  609. </li>
  610. <li class="item">
  611. <div>
  612. <code>
  613. <a name="/s:9SwiftTerm8TerminalC9softResetyyF"></a>
  614. <a name="//apple_ref/swift/Method/softReset()" class="dashAnchor"></a>
  615. <a class="token" href="#/s:9SwiftTerm8TerminalC9softResetyyF">softReset()</a>
  616. </code>
  617. </div>
  618. <div class="height-container">
  619. <div class="pointer-container"></div>
  620. <section class="section">
  621. <div class="pointer"></div>
  622. <div class="abstract">
  623. <p>Performs a terminal soft-reset, the equivalent of the DECSTR sequence
  624. For a full reset see <code>resetToInitialState</code></p>
  625. </div>
  626. <div class="declaration">
  627. <h4>Declaration</h4>
  628. <div class="language">
  629. <p class="aside-title">Swift</p>
  630. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">softReset</span><span class="p">()</span></code></pre>
  631. </div>
  632. </div>
  633. <div class="slightly-smaller">
  634. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L2471-L2474">Show on GitHub</a>
  635. </div>
  636. </section>
  637. </div>
  638. </li>
  639. <li class="item">
  640. <div>
  641. <code>
  642. <a name="/s:9SwiftTerm8TerminalC12sendResponse4textySS_tF"></a>
  643. <a name="//apple_ref/swift/Method/sendResponse(text:)" class="dashAnchor"></a>
  644. <a class="token" href="#/s:9SwiftTerm8TerminalC12sendResponse4textySS_tF">sendResponse(text:<wbr>)</a>
  645. </code>
  646. </div>
  647. <div class="height-container">
  648. <div class="pointer-container"></div>
  649. <section class="section">
  650. <div class="pointer"></div>
  651. <div class="abstract">
  652. <p>Sends the provided text to the connected backend</p>
  653. </div>
  654. <div class="declaration">
  655. <h4>Declaration</h4>
  656. <div class="language">
  657. <p class="aside-title">Swift</p>
  658. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">sendResponse</span><span class="p">(</span><span class="nv">text</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span></code></pre>
  659. </div>
  660. </div>
  661. <div class="slightly-smaller">
  662. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L3665-L3668">Show on GitHub</a>
  663. </div>
  664. </section>
  665. </div>
  666. </li>
  667. <li class="item">
  668. <div>
  669. <code>
  670. <a name="/s:9SwiftTerm8TerminalC12sendResponseyyypd_tF"></a>
  671. <a name="//apple_ref/swift/Method/sendResponse(_:)" class="dashAnchor"></a>
  672. <a class="token" href="#/s:9SwiftTerm8TerminalC12sendResponseyyypd_tF">sendResponse(_:<wbr>)</a>
  673. </code>
  674. </div>
  675. <div class="height-container">
  676. <div class="pointer-container"></div>
  677. <section class="section">
  678. <div class="pointer"></div>
  679. <div class="abstract">
  680. <p>Undocumented</p>
  681. </div>
  682. <div class="declaration">
  683. <h4>Declaration</h4>
  684. <div class="language">
  685. <p class="aside-title">Swift</p>
  686. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">sendResponse</span><span class="p">(</span><span class="n">_</span> <span class="nv">items</span><span class="p">:</span> <span class="kt">Any</span><span class="o">...</span><span class="p">)</span></code></pre>
  687. </div>
  688. </div>
  689. <div class="slightly-smaller">
  690. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L3670-L3686">Show on GitHub</a>
  691. </div>
  692. </section>
  693. </div>
  694. </li>
  695. <li class="item">
  696. <div>
  697. <code>
  698. <a name="/s:9SwiftTerm8TerminalC9silentLogSbvp"></a>
  699. <a name="//apple_ref/swift/Property/silentLog" class="dashAnchor"></a>
  700. <a class="token" href="#/s:9SwiftTerm8TerminalC9silentLogSbvp">silentLog</a>
  701. </code>
  702. </div>
  703. <div class="height-container">
  704. <div class="pointer-container"></div>
  705. <section class="section">
  706. <div class="pointer"></div>
  707. <div class="abstract">
  708. <p>Undocumented</p>
  709. </div>
  710. <div class="declaration">
  711. <h4>Declaration</h4>
  712. <div class="language">
  713. <p class="aside-title">Swift</p>
  714. <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">silentLog</span><span class="p">:</span> <span class="kt">Bool</span></code></pre>
  715. </div>
  716. </div>
  717. <div class="slightly-smaller">
  718. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L">Show on GitHub</a>
  719. </div>
  720. </section>
  721. </div>
  722. </li>
  723. <li class="item">
  724. <div>
  725. <code>
  726. <a name="/s:9SwiftTerm8TerminalC5erroryySSF"></a>
  727. <a name="//apple_ref/swift/Method/error(_:)" class="dashAnchor"></a>
  728. <a class="token" href="#/s:9SwiftTerm8TerminalC5erroryySSF">error(_:<wbr>)</a>
  729. </code>
  730. </div>
  731. <div class="height-container">
  732. <div class="pointer-container"></div>
  733. <section class="section">
  734. <div class="pointer"></div>
  735. <div class="abstract">
  736. <p>Undocumented</p>
  737. </div>
  738. <div class="declaration">
  739. <h4>Declaration</h4>
  740. <div class="language">
  741. <p class="aside-title">Swift</p>
  742. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">error</span><span class="p">(</span><span class="n">_</span> <span class="nv">text</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span></code></pre>
  743. </div>
  744. </div>
  745. <div class="slightly-smaller">
  746. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L3690-L3695">Show on GitHub</a>
  747. </div>
  748. </section>
  749. </div>
  750. </li>
  751. <li class="item">
  752. <div>
  753. <code>
  754. <a name="/s:9SwiftTerm8TerminalC3logyySSF"></a>
  755. <a name="//apple_ref/swift/Method/log(_:)" class="dashAnchor"></a>
  756. <a class="token" href="#/s:9SwiftTerm8TerminalC3logyySSF">log(_:<wbr>)</a>
  757. </code>
  758. </div>
  759. <div class="height-container">
  760. <div class="pointer-container"></div>
  761. <section class="section">
  762. <div class="pointer"></div>
  763. <div class="abstract">
  764. <p>Undocumented</p>
  765. </div>
  766. <div class="declaration">
  767. <h4>Declaration</h4>
  768. <div class="language">
  769. <p class="aside-title">Swift</p>
  770. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">log</span><span class="p">(</span><span class="n">_</span> <span class="nv">text</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span></code></pre>
  771. </div>
  772. </div>
  773. <div class="slightly-smaller">
  774. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L3697-L3702">Show on GitHub</a>
  775. </div>
  776. </section>
  777. </div>
  778. </li>
  779. <li class="item">
  780. <div>
  781. <code>
  782. <a name="/s:9SwiftTerm8TerminalC4feed9byteArrayySays5UInt8VG_tF"></a>
  783. <a name="//apple_ref/swift/Method/feed(byteArray:)" class="dashAnchor"></a>
  784. <a class="token" href="#/s:9SwiftTerm8TerminalC4feed9byteArrayySays5UInt8VG_tF">feed(byteArray:<wbr>)</a>
  785. </code>
  786. </div>
  787. <div class="height-container">
  788. <div class="pointer-container"></div>
  789. <section class="section">
  790. <div class="pointer"></div>
  791. <div class="abstract">
  792. <p>Processes the provided byte-array coming from the backend</p>
  793. </div>
  794. <div class="declaration">
  795. <h4>Declaration</h4>
  796. <div class="language">
  797. <p class="aside-title">Swift</p>
  798. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">feed</span><span class="p">(</span><span class="nv">byteArray</span><span class="p">:</span> <span class="p">[</span><span class="kt">UInt8</span><span class="p">])</span></code></pre>
  799. </div>
  800. </div>
  801. <div class="slightly-smaller">
  802. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L3707-L3710">Show on GitHub</a>
  803. </div>
  804. </section>
  805. </div>
  806. </li>
  807. <li class="item">
  808. <div>
  809. <code>
  810. <a name="/s:9SwiftTerm8TerminalC4feed4textySS_tF"></a>
  811. <a name="//apple_ref/swift/Method/feed(text:)" class="dashAnchor"></a>
  812. <a class="token" href="#/s:9SwiftTerm8TerminalC4feed4textySS_tF">feed(text:<wbr>)</a>
  813. </code>
  814. </div>
  815. <div class="height-container">
  816. <div class="pointer-container"></div>
  817. <section class="section">
  818. <div class="pointer"></div>
  819. <div class="abstract">
  820. <p>Undocumented</p>
  821. </div>
  822. <div class="declaration">
  823. <h4>Declaration</h4>
  824. <div class="language">
  825. <p class="aside-title">Swift</p>
  826. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">feed</span><span class="p">(</span><span class="nv">text</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span></code></pre>
  827. </div>
  828. </div>
  829. <div class="slightly-smaller">
  830. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L3712-L3715">Show on GitHub</a>
  831. </div>
  832. </section>
  833. </div>
  834. </li>
  835. <li class="item">
  836. <div>
  837. <code>
  838. <a name="/s:9SwiftTerm8TerminalC4feed6bufferys10ArraySliceVys5UInt8VG_tF"></a>
  839. <a name="//apple_ref/swift/Method/feed(buffer:)" class="dashAnchor"></a>
  840. <a class="token" href="#/s:9SwiftTerm8TerminalC4feed6bufferys10ArraySliceVys5UInt8VG_tF">feed(buffer:<wbr>)</a>
  841. </code>
  842. </div>
  843. <div class="height-container">
  844. <div class="pointer-container"></div>
  845. <section class="section">
  846. <div class="pointer"></div>
  847. <div class="abstract">
  848. <p>Undocumented</p>
  849. </div>
  850. <div class="declaration">
  851. <h4>Declaration</h4>
  852. <div class="language">
  853. <p class="aside-title">Swift</p>
  854. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">feed</span><span class="p">(</span><span class="nv">buffer</span><span class="p">:</span> <span class="kt">ArraySlice</span><span class="o">&lt;</span><span class="kt">UInt8</span><span class="o">&gt;</span><span class="p">)</span></code></pre>
  855. </div>
  856. </div>
  857. <div class="slightly-smaller">
  858. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L3717-L3720">Show on GitHub</a>
  859. </div>
  860. </section>
  861. </div>
  862. </li>
  863. <li class="item">
  864. <div>
  865. <code>
  866. <a name="/s:9SwiftTerm8TerminalC5parse6bufferys10ArraySliceVys5UInt8VG_tF"></a>
  867. <a name="//apple_ref/swift/Method/parse(buffer:)" class="dashAnchor"></a>
  868. <a class="token" href="#/s:9SwiftTerm8TerminalC5parse6bufferys10ArraySliceVys5UInt8VG_tF">parse(buffer:<wbr>)</a>
  869. </code>
  870. </div>
  871. <div class="height-container">
  872. <div class="pointer-container"></div>
  873. <section class="section">
  874. <div class="pointer"></div>
  875. <div class="abstract">
  876. <p>Undocumented</p>
  877. </div>
  878. <div class="declaration">
  879. <h4>Declaration</h4>
  880. <div class="language">
  881. <p class="aside-title">Swift</p>
  882. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">parse</span><span class="p">(</span><span class="nv">buffer</span><span class="p">:</span> <span class="kt">ArraySlice</span><span class="o">&lt;</span><span class="kt">UInt8</span><span class="o">&gt;</span><span class="p">)</span></code></pre>
  883. </div>
  884. </div>
  885. <div class="slightly-smaller">
  886. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L3722-L3725">Show on GitHub</a>
  887. </div>
  888. </section>
  889. </div>
  890. </li>
  891. <li class="item">
  892. <div>
  893. <code>
  894. <a name="/s:9SwiftTerm8TerminalC16updateFullScreenyyF"></a>
  895. <a name="//apple_ref/swift/Method/updateFullScreen()" class="dashAnchor"></a>
  896. <a class="token" href="#/s:9SwiftTerm8TerminalC16updateFullScreenyyF">updateFullScreen()</a>
  897. </code>
  898. </div>
  899. <div class="height-container">
  900. <div class="pointer-container"></div>
  901. <section class="section">
  902. <div class="pointer"></div>
  903. <div class="abstract">
  904. <p>Undocumented</p>
  905. </div>
  906. <div class="declaration">
  907. <h4>Declaration</h4>
  908. <div class="language">
  909. <p class="aside-title">Swift</p>
  910. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">updateFullScreen</span><span class="p">()</span></code></pre>
  911. </div>
  912. </div>
  913. <div class="slightly-smaller">
  914. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L3746-L3750">Show on GitHub</a>
  915. </div>
  916. </section>
  917. </div>
  918. </li>
  919. <li class="item">
  920. <div>
  921. <code>
  922. <a name="/s:9SwiftTerm8TerminalC14getUpdateRangeSi6startY_Si4endYtSgyF"></a>
  923. <a name="//apple_ref/swift/Method/getUpdateRange()" class="dashAnchor"></a>
  924. <a class="token" href="#/s:9SwiftTerm8TerminalC14getUpdateRangeSi6startY_Si4endYtSgyF">getUpdateRange()</a>
  925. </code>
  926. </div>
  927. <div class="height-container">
  928. <div class="pointer-container"></div>
  929. <section class="section">
  930. <div class="pointer"></div>
  931. <div class="abstract">
  932. <p>Returns the starting and ending lines that need to be redrawn, or nil
  933. if no part of the screen needs to be updated.</p>
  934. </div>
  935. <div class="declaration">
  936. <h4>Declaration</h4>
  937. <div class="language">
  938. <p class="aside-title">Swift</p>
  939. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">getUpdateRange</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="nv">startY</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">endY</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)?</span></code></pre>
  940. </div>
  941. </div>
  942. <div class="slightly-smaller">
  943. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L3756-L3764">Show on GitHub</a>
  944. </div>
  945. </section>
  946. </div>
  947. </li>
  948. <li class="item">
  949. <div>
  950. <code>
  951. <a name="/s:9SwiftTerm8TerminalC16clearUpdateRangeyyF"></a>
  952. <a name="//apple_ref/swift/Method/clearUpdateRange()" class="dashAnchor"></a>
  953. <a class="token" href="#/s:9SwiftTerm8TerminalC16clearUpdateRangeyyF">clearUpdateRange()</a>
  954. </code>
  955. </div>
  956. <div class="height-container">
  957. <div class="pointer-container"></div>
  958. <section class="section">
  959. <div class="pointer"></div>
  960. <div class="abstract">
  961. <p>Clears the state of the pending display redraw region.</p>
  962. </div>
  963. <div class="declaration">
  964. <h4>Declaration</h4>
  965. <div class="language">
  966. <p class="aside-title">Swift</p>
  967. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">clearUpdateRange</span><span class="p">()</span></code></pre>
  968. </div>
  969. </div>
  970. <div class="slightly-smaller">
  971. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L3769-L3773">Show on GitHub</a>
  972. </div>
  973. </section>
  974. </div>
  975. </li>
  976. <li class="item">
  977. <div>
  978. <code>
  979. <a name="/s:9SwiftTerm8TerminalC17getCursorLocationSi_SityF"></a>
  980. <a name="//apple_ref/swift/Method/getCursorLocation()" class="dashAnchor"></a>
  981. <a class="token" href="#/s:9SwiftTerm8TerminalC17getCursorLocationSi_SityF">getCursorLocation()</a>
  982. </code>
  983. </div>
  984. <div class="height-container">
  985. <div class="pointer-container"></div>
  986. <section class="section">
  987. <div class="pointer"></div>
  988. <div class="abstract">
  989. <p>Zero-based (row, column) of cursor location relative to visible part of display.</p>
  990. </div>
  991. <div class="declaration">
  992. <h4>Declaration</h4>
  993. <div class="language">
  994. <p class="aside-title">Swift</p>
  995. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">getCursorLocation</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt">Int</span><span class="p">,</span> <span class="kt">Int</span><span class="p">)</span></code></pre>
  996. </div>
  997. </div>
  998. <div class="slightly-smaller">
  999. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L3778-L3780">Show on GitHub</a>
  1000. </div>
  1001. </section>
  1002. </div>
  1003. </li>
  1004. <li class="item">
  1005. <div>
  1006. <code>
  1007. <a name="/s:9SwiftTerm8TerminalC16getTopVisibleRowSiyF"></a>
  1008. <a name="//apple_ref/swift/Method/getTopVisibleRow()" class="dashAnchor"></a>
  1009. <a class="token" href="#/s:9SwiftTerm8TerminalC16getTopVisibleRowSiyF">getTopVisibleRow()</a>
  1010. </code>
  1011. </div>
  1012. <div class="height-container">
  1013. <div class="pointer-container"></div>
  1014. <section class="section">
  1015. <div class="pointer"></div>
  1016. <div class="abstract">
  1017. <p>Uppermost visible row.</p>
  1018. </div>
  1019. <div class="declaration">
  1020. <h4>Declaration</h4>
  1021. <div class="language">
  1022. <p class="aside-title">Swift</p>
  1023. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">getTopVisibleRow</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Int</span></code></pre>
  1024. </div>
  1025. </div>
  1026. <div class="slightly-smaller">
  1027. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L3785-L3787">Show on GitHub</a>
  1028. </div>
  1029. </section>
  1030. </div>
  1031. </li>
  1032. <li class="item">
  1033. <div>
  1034. <code>
  1035. <a name="/s:9SwiftTerm8TerminalC19resetToInitialStateyyF"></a>
  1036. <a name="//apple_ref/swift/Method/resetToInitialState()" class="dashAnchor"></a>
  1037. <a class="token" href="#/s:9SwiftTerm8TerminalC19resetToInitialStateyyF">resetToInitialState()</a>
  1038. </code>
  1039. </div>
  1040. <div class="height-container">
  1041. <div class="pointer-container"></div>
  1042. <section class="section">
  1043. <div class="pointer"></div>
  1044. <div class="abstract">
  1045. <p>This performs a full reset of the terminal, like a soft reset, but additionally resets the buffer conents and scroll area.
  1046. for a soft reset see <code>softReset</code></p>
  1047. </div>
  1048. <div class="declaration">
  1049. <h4>Declaration</h4>
  1050. <div class="language">
  1051. <p class="aside-title">Swift</p>
  1052. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">resetToInitialState</span><span class="p">()</span></code></pre>
  1053. </div>
  1054. </div>
  1055. <div class="slightly-smaller">
  1056. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L3792-L3801">Show on GitHub</a>
  1057. </div>
  1058. </section>
  1059. </div>
  1060. </li>
  1061. <li class="item">
  1062. <div>
  1063. <code>
  1064. <a name="/s:9SwiftTerm8TerminalC6scroll9isWrappedySb_tF"></a>
  1065. <a name="//apple_ref/swift/Method/scroll(isWrapped:)" class="dashAnchor"></a>
  1066. <a class="token" href="#/s:9SwiftTerm8TerminalC6scroll9isWrappedySb_tF">scroll(isWrapped:<wbr>)</a>
  1067. </code>
  1068. </div>
  1069. <div class="height-container">
  1070. <div class="pointer-container"></div>
  1071. <section class="section">
  1072. <div class="pointer"></div>
  1073. <div class="abstract">
  1074. <p>Undocumented</p>
  1075. </div>
  1076. <div class="declaration">
  1077. <h4>Declaration</h4>
  1078. <div class="language">
  1079. <p class="aside-title">Swift</p>
  1080. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">scroll</span><span class="p">(</span><span class="nv">isWrapped</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">false</span><span class="p">)</span></code></pre>
  1081. </div>
  1082. </div>
  1083. <div class="slightly-smaller">
  1084. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L3867-L3937">Show on GitHub</a>
  1085. </div>
  1086. </section>
  1087. </div>
  1088. </li>
  1089. <li class="item">
  1090. <div>
  1091. <code>
  1092. <a name="/s:9SwiftTerm8TerminalC12emitLineFeedyyF"></a>
  1093. <a name="//apple_ref/swift/Method/emitLineFeed()" class="dashAnchor"></a>
  1094. <a class="token" href="#/s:9SwiftTerm8TerminalC12emitLineFeedyyF">emitLineFeed()</a>
  1095. </code>
  1096. </div>
  1097. <div class="height-container">
  1098. <div class="pointer-container"></div>
  1099. <section class="section">
  1100. <div class="pointer"></div>
  1101. <div class="abstract">
  1102. <p>Undocumented</p>
  1103. </div>
  1104. <div class="declaration">
  1105. <h4>Declaration</h4>
  1106. <div class="language">
  1107. <p class="aside-title">Swift</p>
  1108. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">emitLineFeed</span><span class="p">()</span></code></pre>
  1109. </div>
  1110. </div>
  1111. <div class="slightly-smaller">
  1112. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L3939-L3942">Show on GitHub</a>
  1113. </div>
  1114. </section>
  1115. </div>
  1116. </li>
  1117. <li class="item">
  1118. <div>
  1119. <code>
  1120. <a name="/s:9SwiftTerm8TerminalC6resize4cols4rowsySi_SitF"></a>
  1121. <a name="//apple_ref/swift/Method/resize(cols:rows:)" class="dashAnchor"></a>
  1122. <a class="token" href="#/s:9SwiftTerm8TerminalC6resize4cols4rowsySi_SitF">resize(cols:<wbr>rows:<wbr>)</a>
  1123. </code>
  1124. </div>
  1125. <div class="height-container">
  1126. <div class="pointer-container"></div>
  1127. <section class="section">
  1128. <div class="pointer"></div>
  1129. <div class="abstract">
  1130. <p>Undocumented</p>
  1131. </div>
  1132. <div class="declaration">
  1133. <h4>Declaration</h4>
  1134. <div class="language">
  1135. <p class="aside-title">Swift</p>
  1136. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">resize</span><span class="p">(</span><span class="nv">cols</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">rows</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span></code></pre>
  1137. </div>
  1138. </div>
  1139. <div class="slightly-smaller">
  1140. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L4022-L4035">Show on GitHub</a>
  1141. </div>
  1142. </section>
  1143. </div>
  1144. </li>
  1145. <li class="item">
  1146. <div>
  1147. <code>
  1148. <a name="/s:9SwiftTerm8TerminalC7refresh8startRow03endF0ySi_SitF"></a>
  1149. <a name="//apple_ref/swift/Method/refresh(startRow:endRow:)" class="dashAnchor"></a>
  1150. <a class="token" href="#/s:9SwiftTerm8TerminalC7refresh8startRow03endF0ySi_SitF">refresh(startRow:<wbr>endRow:<wbr>)</a>
  1151. </code>
  1152. </div>
  1153. <div class="height-container">
  1154. <div class="pointer-container"></div>
  1155. <section class="section">
  1156. <div class="pointer"></div>
  1157. <div class="abstract">
  1158. <p>Registers that the region between startRow and endRow was modified and needs to be updated by the</p>
  1159. </div>
  1160. <div class="declaration">
  1161. <h4>Declaration</h4>
  1162. <div class="language">
  1163. <p class="aside-title">Swift</p>
  1164. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">refresh</span><span class="p">(</span><span class="nv">startRow</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">endRow</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span></code></pre>
  1165. </div>
  1166. </div>
  1167. <div class="slightly-smaller">
  1168. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L4045-L4055">Show on GitHub</a>
  1169. </div>
  1170. </section>
  1171. </div>
  1172. </li>
  1173. <li class="item">
  1174. <div>
  1175. <code>
  1176. <a name="/s:9SwiftTerm8TerminalC10showCursoryyF"></a>
  1177. <a name="//apple_ref/swift/Method/showCursor()" class="dashAnchor"></a>
  1178. <a class="token" href="#/s:9SwiftTerm8TerminalC10showCursoryyF">showCursor()</a>
  1179. </code>
  1180. </div>
  1181. <div class="height-container">
  1182. <div class="pointer-container"></div>
  1183. <section class="section">
  1184. <div class="pointer"></div>
  1185. <div class="abstract">
  1186. <p>Undocumented</p>
  1187. </div>
  1188. <div class="declaration">
  1189. <h4>Declaration</h4>
  1190. <div class="language">
  1191. <p class="aside-title">Swift</p>
  1192. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">showCursor</span><span class="p">()</span></code></pre>
  1193. </div>
  1194. </div>
  1195. <div class="slightly-smaller">
  1196. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L4057-L4065">Show on GitHub</a>
  1197. </div>
  1198. </section>
  1199. </div>
  1200. </li>
  1201. <li class="item">
  1202. <div>
  1203. <code>
  1204. <a name="/s:9SwiftTerm8TerminalC10hideCursoryyF"></a>
  1205. <a name="//apple_ref/swift/Method/hideCursor()" class="dashAnchor"></a>
  1206. <a class="token" href="#/s:9SwiftTerm8TerminalC10hideCursoryyF">hideCursor()</a>
  1207. </code>
  1208. </div>
  1209. <div class="height-container">
  1210. <div class="pointer-container"></div>
  1211. <section class="section">
  1212. <div class="pointer"></div>
  1213. <div class="abstract">
  1214. <p>Undocumented</p>
  1215. </div>
  1216. <div class="declaration">
  1217. <h4>Declaration</h4>
  1218. <div class="language">
  1219. <p class="aside-title">Swift</p>
  1220. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">hideCursor</span><span class="p">()</span></code></pre>
  1221. </div>
  1222. </div>
  1223. <div class="slightly-smaller">
  1224. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L4067-L4074">Show on GitHub</a>
  1225. </div>
  1226. </section>
  1227. </div>
  1228. </li>
  1229. <li class="item">
  1230. <div>
  1231. <code>
  1232. <a name="/s:9SwiftTerm8TerminalC12encodeButton6button7release5shift4meta7controlS2i_S4btF"></a>
  1233. <a name="//apple_ref/swift/Method/encodeButton(button:release:shift:meta:control:)" class="dashAnchor"></a>
  1234. <a class="token" href="#/s:9SwiftTerm8TerminalC12encodeButton6button7release5shift4meta7controlS2i_S4btF">encodeButton(button:<wbr>release:<wbr>shift:<wbr>meta:<wbr>control:<wbr>)</a>
  1235. </code>
  1236. </div>
  1237. <div class="height-container">
  1238. <div class="pointer-container"></div>
  1239. <section class="section">
  1240. <div class="pointer"></div>
  1241. <div class="abstract">
  1242. <p>Encodes the button action in the format expected by the client</p>
  1243. </div>
  1244. <div class="declaration">
  1245. <h4>Declaration</h4>
  1246. <div class="language">
  1247. <p class="aside-title">Swift</p>
  1248. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">encodeButton</span><span class="p">(</span><span class="nv">button</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">release</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">,</span> <span class="nv">shift</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">,</span> <span class="nv">meta</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">,</span> <span class="nv">control</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Int</span></code></pre>
  1249. </div>
  1250. </div>
  1251. <div>
  1252. <h4>Parameters</h4>
  1253. <table class="graybox">
  1254. <tbody>
  1255. <tr>
  1256. <td>
  1257. <code>
  1258. <em>button</em>
  1259. </code>
  1260. </td>
  1261. <td>
  1262. <div>
  1263. <p>The button to encode</p>
  1264. </div>
  1265. </td>
  1266. </tr>
  1267. <tr>
  1268. <td>
  1269. <code>
  1270. <em>release</em>
  1271. </code>
  1272. </td>
  1273. <td>
  1274. <div>
  1275. <p><code>true</code> if this is a mouse release event</p>
  1276. </div>
  1277. </td>
  1278. </tr>
  1279. <tr>
  1280. <td>
  1281. <code>
  1282. <em>shift</em>
  1283. </code>
  1284. </td>
  1285. <td>
  1286. <div>
  1287. <p><code>true</code> if the shift key is pressed</p>
  1288. </div>
  1289. </td>
  1290. </tr>
  1291. <tr>
  1292. <td>
  1293. <code>
  1294. <em>meta</em>
  1295. </code>
  1296. </td>
  1297. <td>
  1298. <div>
  1299. <p><code>true</code> if the meta/alt key is pressed</p>
  1300. </div>
  1301. </td>
  1302. </tr>
  1303. <tr>
  1304. <td>
  1305. <code>
  1306. <em>control</em>
  1307. </code>
  1308. </td>
  1309. <td>
  1310. <div>
  1311. <p><code>true</code> if the control key is pressed</p>
  1312. </div>
  1313. </td>
  1314. </tr>
  1315. </tbody>
  1316. </table>
  1317. </div>
  1318. <div>
  1319. <h4>Return Value</h4>
  1320. <p>the encoded value</p>
  1321. </div>
  1322. <div class="slightly-smaller">
  1323. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L4101-L4135">Show on GitHub</a>
  1324. </div>
  1325. </section>
  1326. </div>
  1327. </li>
  1328. <li class="item">
  1329. <div>
  1330. <code>
  1331. <a name="/s:9SwiftTerm8TerminalC9sendEvent11buttonFlags1x1yySi_S2itF"></a>
  1332. <a name="//apple_ref/swift/Method/sendEvent(buttonFlags:x:y:)" class="dashAnchor"></a>
  1333. <a class="token" href="#/s:9SwiftTerm8TerminalC9sendEvent11buttonFlags1x1yySi_S2itF">sendEvent(buttonFlags:<wbr>x:<wbr>y:<wbr>)</a>
  1334. </code>
  1335. </div>
  1336. <div class="height-container">
  1337. <div class="pointer-container"></div>
  1338. <section class="section">
  1339. <div class="pointer"></div>
  1340. <div class="abstract">
  1341. <p>Sends a mouse event for a specific button at the specific location</p>
  1342. </div>
  1343. <div class="declaration">
  1344. <h4>Declaration</h4>
  1345. <div class="language">
  1346. <p class="aside-title">Swift</p>
  1347. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">sendEvent</span><span class="p">(</span><span class="nv">buttonFlags</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">x</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">y</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span></code></pre>
  1348. </div>
  1349. </div>
  1350. <div>
  1351. <h4>Parameters</h4>
  1352. <table class="graybox">
  1353. <tbody>
  1354. <tr>
  1355. <td>
  1356. <code>
  1357. <em>buttonFlags</em>
  1358. </code>
  1359. </td>
  1360. <td>
  1361. <div>
  1362. <p>Button flags encoded in Cb mode.</p>
  1363. </div>
  1364. </td>
  1365. </tr>
  1366. <tr>
  1367. <td>
  1368. <code>
  1369. <em>x</em>
  1370. </code>
  1371. </td>
  1372. <td>
  1373. <div>
  1374. <p>X coordinate for the event</p>
  1375. </div>
  1376. </td>
  1377. </tr>
  1378. <tr>
  1379. <td>
  1380. <code>
  1381. <em>y</em>
  1382. </code>
  1383. </td>
  1384. <td>
  1385. <div>
  1386. <p>Y coordinate for the event</p>
  1387. </div>
  1388. </td>
  1389. </tr>
  1390. </tbody>
  1391. </table>
  1392. </div>
  1393. <div class="slightly-smaller">
  1394. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L4143-L4162">Show on GitHub</a>
  1395. </div>
  1396. </section>
  1397. </div>
  1398. </li>
  1399. <li class="item">
  1400. <div>
  1401. <code>
  1402. <a name="/s:9SwiftTerm8TerminalC10sendMotion11buttonFlags1x1yySi_S2itF"></a>
  1403. <a name="//apple_ref/swift/Method/sendMotion(buttonFlags:x:y:)" class="dashAnchor"></a>
  1404. <a class="token" href="#/s:9SwiftTerm8TerminalC10sendMotion11buttonFlags1x1yySi_S2itF">sendMotion(buttonFlags:<wbr>x:<wbr>y:<wbr>)</a>
  1405. </code>
  1406. </div>
  1407. <div class="height-container">
  1408. <div class="pointer-container"></div>
  1409. <section class="section">
  1410. <div class="pointer"></div>
  1411. <div class="abstract">
  1412. <p>Sends a mouse motion event for a specific button at the specific location</p>
  1413. </div>
  1414. <div class="declaration">
  1415. <h4>Declaration</h4>
  1416. <div class="language">
  1417. <p class="aside-title">Swift</p>
  1418. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">sendMotion</span><span class="p">(</span><span class="nv">buttonFlags</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">x</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">y</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span></code></pre>
  1419. </div>
  1420. </div>
  1421. <div>
  1422. <h4>Parameters</h4>
  1423. <table class="graybox">
  1424. <tbody>
  1425. <tr>
  1426. <td>
  1427. <code>
  1428. <em>buttonFlags</em>
  1429. </code>
  1430. </td>
  1431. <td>
  1432. <div>
  1433. <p>Button flags encoded in Cb mode.</p>
  1434. </div>
  1435. </td>
  1436. </tr>
  1437. <tr>
  1438. <td>
  1439. <code>
  1440. <em>x</em>
  1441. </code>
  1442. </td>
  1443. <td>
  1444. <div>
  1445. <p>X coordinate for the event</p>
  1446. </div>
  1447. </td>
  1448. </tr>
  1449. <tr>
  1450. <td>
  1451. <code>
  1452. <em>y</em>
  1453. </code>
  1454. </td>
  1455. <td>
  1456. <div>
  1457. <p>Y coordinate for the event</p>
  1458. </div>
  1459. </td>
  1460. </tr>
  1461. </tbody>
  1462. </table>
  1463. </div>
  1464. <div class="slightly-smaller">
  1465. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L4170-L4173">Show on GitHub</a>
  1466. </div>
  1467. </section>
  1468. </div>
  1469. </li>
  1470. <li class="item">
  1471. <div>
  1472. <code>
  1473. <a name="/s:9SwiftTerm8TerminalC8setTitle4textySS_tF"></a>
  1474. <a name="//apple_ref/swift/Method/setTitle(text:)" class="dashAnchor"></a>
  1475. <a class="token" href="#/s:9SwiftTerm8TerminalC8setTitle4textySS_tF">setTitle(text:<wbr>)</a>
  1476. </code>
  1477. </div>
  1478. <div class="height-container">
  1479. <div class="pointer-container"></div>
  1480. <section class="section">
  1481. <div class="pointer"></div>
  1482. <div class="abstract">
  1483. <p>Undocumented</p>
  1484. </div>
  1485. <div class="declaration">
  1486. <h4>Declaration</h4>
  1487. <div class="language">
  1488. <p class="aside-title">Swift</p>
  1489. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setTitle</span><span class="p">(</span><span class="nv">text</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span></code></pre>
  1490. </div>
  1491. </div>
  1492. <div class="slightly-smaller">
  1493. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L4187-L4191">Show on GitHub</a>
  1494. </div>
  1495. </section>
  1496. </div>
  1497. </li>
  1498. <li class="item">
  1499. <div>
  1500. <code>
  1501. <a name="/s:9SwiftTerm8TerminalC12setIconTitle4textySS_tF"></a>
  1502. <a name="//apple_ref/swift/Method/setIconTitle(text:)" class="dashAnchor"></a>
  1503. <a class="token" href="#/s:9SwiftTerm8TerminalC12setIconTitle4textySS_tF">setIconTitle(text:<wbr>)</a>
  1504. </code>
  1505. </div>
  1506. <div class="height-container">
  1507. <div class="pointer-container"></div>
  1508. <section class="section">
  1509. <div class="pointer"></div>
  1510. <div class="abstract">
  1511. <p>Undocumented</p>
  1512. </div>
  1513. <div class="declaration">
  1514. <h4>Declaration</h4>
  1515. <div class="language">
  1516. <p class="aside-title">Swift</p>
  1517. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setIconTitle</span><span class="p">(</span><span class="nv">text</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span></code></pre>
  1518. </div>
  1519. </div>
  1520. <div class="slightly-smaller">
  1521. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L4193-L4197">Show on GitHub</a>
  1522. </div>
  1523. </section>
  1524. </div>
  1525. </li>
  1526. <li class="item">
  1527. <div>
  1528. <code>
  1529. <a name="/s:9SwiftTerm8TerminalC23getEnvironmentVariables8termNameSaySSGSSSg_tFZ"></a>
  1530. <a name="//apple_ref/swift/Method/getEnvironmentVariables(termName:)" class="dashAnchor"></a>
  1531. <a class="token" href="#/s:9SwiftTerm8TerminalC23getEnvironmentVariables8termNameSaySSGSSSg_tFZ">getEnvironmentVariables(termName:<wbr>)</a>
  1532. </code>
  1533. </div>
  1534. <div class="height-container">
  1535. <div class="pointer-container"></div>
  1536. <section class="section">
  1537. <div class="pointer"></div>
  1538. <div class="abstract">
  1539. <p>Provides a baseline set of environment variables that would be useful to run the terminal,
  1540. you can customzie these accordingly.</p>
  1541. </div>
  1542. <div class="declaration">
  1543. <h4>Declaration</h4>
  1544. <div class="language">
  1545. <p class="aside-title">Swift</p>
  1546. <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">getEnvironmentVariables</span><span class="p">(</span><span class="nv">termName</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="p">[</span><span class="kt">String</span><span class="p">]</span></code></pre>
  1547. </div>
  1548. </div>
  1549. <div>
  1550. <h4>Return Value</h4>
  1551. <p></p>
  1552. </div>
  1553. <div class="slightly-smaller">
  1554. <a href="https://github.com/migueldeicaza/SwiftTerm/tree/master/Sources/SwiftTerm/Terminal.swift#L4221-L4236">Show on GitHub</a>
  1555. </div>
  1556. </section>
  1557. </div>
  1558. </li>
  1559. </ul>
  1560. </div>
  1561. </section>
  1562. </section>
  1563. <section id="footer">
  1564. <p>&copy; 2020 <a class="link" href="https://tirania.org/" target="_blank" rel="external">Miguel de Icaza</a>. All rights reserved. (Last updated: 2020-05-30)</p>
  1565. <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
  1566. </section>
  1567. </article>
  1568. </div>
  1569. </body>
  1570. </div>
  1571. </html>