Terminal.Gui.Command.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  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>Enum Command
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Enum Command
  11. ">
  12. <meta name="generator" content="docfx 2.59.4.0">
  13. <link rel="shortcut icon" href="../../favicon.ico">
  14. <link rel="stylesheet" href="../../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../../styles/docfx.css">
  16. <link rel="stylesheet" href="../../styles/main.css">
  17. <link href="https://fonts.googleapis.com/css?family=Source Sans Pro" rel="stylesheet">
  18. <link href="https://fonts.googleapis.com/css?family=Source Code Pro" rel="stylesheet">
  19. <meta property="docfx:navrel" content="../../toc.html">
  20. <meta property="docfx:tocrel" content="toc.html">
  21. <meta property="docfx:rel" content="../../">
  22. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  23. <div id="wrapper">
  24. <header>
  25. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  26. <div class="container">
  27. <div class="navbar-header">
  28. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  29. <span class="sr-only">Toggle navigation</span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. </button>
  34. <a class="navbar-brand" href="../../index.html">
  35. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  36. </a>
  37. </div>
  38. <div class="collapse navbar-collapse" id="navbar">
  39. <form class="navbar-form navbar-right" role="search" id="search">
  40. <div class="form-group">
  41. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. </nav>
  47. <div class="subnav navbar navbar-default">
  48. <div class="container hide-when-search" id="breadcrumb">
  49. <ul class="breadcrumb">
  50. <li></li>
  51. </ul>
  52. </div>
  53. </div>
  54. </header>
  55. <div class="container body-content">
  56. <div id="search-results">
  57. <div class="search-list">Search Results for <span></span></div>
  58. <div class="sr-items">
  59. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  60. </div>
  61. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  62. </div>
  63. </div>
  64. <div role="main" class="container body-content hide-when-search">
  65. <div class="sidenav hide-when-search">
  66. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  67. <div class="sidetoggle collapse" id="sidetoggle">
  68. <div id="sidetoc"></div>
  69. </div>
  70. </div>
  71. <div class="article row grid-right">
  72. <div class="col-md-10">
  73. <article class="content wrap" id="_content" data-uid="Terminal.Gui.Command">
  74. <h1 id="Terminal_Gui_Command" data-uid="Terminal.Gui.Command" class="text-break">Enum Command
  75. </h1>
  76. <div class="markdown level0 summary">
  77. Actions which can be performed by the application or bound to keys in a <a class="xref" href="Terminal.Gui.View.html">View</a> control.
  78. </div>
  79. <div class="markdown level0 conceptual"></div>
  80. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  81. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  82. <h5 id="Terminal_Gui_Command_syntax">Syntax</h5>
  83. <div class="codewrapper">
  84. <pre><code class="lang-csharp hljs">public enum Command</code></pre>
  85. </div>
  86. <h3 id="fields">Fields
  87. </h3>
  88. <table class="table table-bordered table-striped table-condensed">
  89. <thead>
  90. <tr>
  91. <th>Name</th>
  92. <th>Description</th>
  93. </tr>
  94. <thead>
  95. <tbody>
  96. <tr>
  97. <td id="Terminal_Gui_Command_Accept">Accept</td>
  98. <td>
  99. Accepts the current state (e.g. selection, button press etc)
  100. </td>
  101. </tr>
  102. <tr>
  103. <td id="Terminal_Gui_Command_BackTab">BackTab</td>
  104. <td>
  105. Inserts a shift tab.
  106. </td>
  107. </tr>
  108. <tr>
  109. <td id="Terminal_Gui_Command_BottomEnd">BottomEnd</td>
  110. <td>
  111. Moves to bottom end.
  112. </td>
  113. </tr>
  114. <tr>
  115. <td id="Terminal_Gui_Command_BottomEndExtend">BottomEndExtend</td>
  116. <td>
  117. Extends the selection to the bottom end.
  118. </td>
  119. </tr>
  120. <tr>
  121. <td id="Terminal_Gui_Command_Cancel">Cancel</td>
  122. <td>
  123. Cancels any current temporary states on the control e.g. expanding
  124. a combo list
  125. </td>
  126. </tr>
  127. <tr>
  128. <td id="Terminal_Gui_Command_Collapse">Collapse</td>
  129. <td>
  130. Collapses a list or item (with subitems)
  131. </td>
  132. </tr>
  133. <tr>
  134. <td id="Terminal_Gui_Command_CollapseAll">CollapseAll</td>
  135. <td>
  136. Recursively collapses a list items of their children (if any)
  137. </td>
  138. </tr>
  139. <tr>
  140. <td id="Terminal_Gui_Command_Copy">Copy</td>
  141. <td>
  142. Copies the current selection.
  143. </td>
  144. </tr>
  145. <tr>
  146. <td id="Terminal_Gui_Command_Cut">Cut</td>
  147. <td>
  148. Cuts the current selection.
  149. </td>
  150. </tr>
  151. <tr>
  152. <td id="Terminal_Gui_Command_CutToEndLine">CutToEndLine</td>
  153. <td>
  154. Deletes and copies to the clipboard the characters from the current position to the end of the line.
  155. </td>
  156. </tr>
  157. <tr>
  158. <td id="Terminal_Gui_Command_CutToStartLine">CutToStartLine</td>
  159. <td>
  160. Deletes and copies to the clipboard the characters from the current position to the start of the line.
  161. </td>
  162. </tr>
  163. <tr>
  164. <td id="Terminal_Gui_Command_DeleteAll">DeleteAll</td>
  165. <td>
  166. Deletes all objects in the control.
  167. </td>
  168. </tr>
  169. <tr>
  170. <td id="Terminal_Gui_Command_DeleteCharLeft">DeleteCharLeft</td>
  171. <td>
  172. Deletes the character on the left.
  173. </td>
  174. </tr>
  175. <tr>
  176. <td id="Terminal_Gui_Command_DeleteCharRight">DeleteCharRight</td>
  177. <td>
  178. Deletes the character on the right.
  179. </td>
  180. </tr>
  181. <tr>
  182. <td id="Terminal_Gui_Command_DisableOverwrite">DisableOverwrite</td>
  183. <td>
  184. Disables overwrite mode (<a class="xref" href="Terminal.Gui.Command.html#Terminal_Gui_Command_EnableOverwrite">EnableOverwrite</a>)
  185. </td>
  186. </tr>
  187. <tr>
  188. <td id="Terminal_Gui_Command_EnableOverwrite">EnableOverwrite</td>
  189. <td>
  190. Enables overwrite mode such that newly typed text overwrites the text that is
  191. already there (typically associated with the Insert key).
  192. </td>
  193. </tr>
  194. <tr>
  195. <td id="Terminal_Gui_Command_EndOfLine">EndOfLine</td>
  196. <td>
  197. Moves the cursor to the end of line.
  198. </td>
  199. </tr>
  200. <tr>
  201. <td id="Terminal_Gui_Command_EndOfLineExtend">EndOfLineExtend</td>
  202. <td>
  203. Extends the selection to the end of line.
  204. </td>
  205. </tr>
  206. <tr>
  207. <td id="Terminal_Gui_Command_EndOfPage">EndOfPage</td>
  208. <td>
  209. Moves the cursor to the bottom of page.
  210. </td>
  211. </tr>
  212. <tr>
  213. <td id="Terminal_Gui_Command_Expand">Expand</td>
  214. <td>
  215. Expands a list or item (with subitems)
  216. </td>
  217. </tr>
  218. <tr>
  219. <td id="Terminal_Gui_Command_ExpandAll">ExpandAll</td>
  220. <td>
  221. Recursively Expands all child items and their child items (if any)
  222. </td>
  223. </tr>
  224. <tr>
  225. <td id="Terminal_Gui_Command_KillWordBackwards">KillWordBackwards</td>
  226. <td>
  227. Deletes the characters backwards.
  228. </td>
  229. </tr>
  230. <tr>
  231. <td id="Terminal_Gui_Command_KillWordForwards">KillWordForwards</td>
  232. <td>
  233. Deletes the characters forwards.
  234. </td>
  235. </tr>
  236. <tr>
  237. <td id="Terminal_Gui_Command_Left">Left</td>
  238. <td>
  239. Moves the selection left one by the minimum increment supported by the view e.g. single character, cell, item etc.
  240. </td>
  241. </tr>
  242. <tr>
  243. <td id="Terminal_Gui_Command_LeftExtend">LeftExtend</td>
  244. <td>
  245. Extends the selection left one by the minimum increment supported by the view e.g. single character, cell, item etc.
  246. </td>
  247. </tr>
  248. <tr>
  249. <td id="Terminal_Gui_Command_LeftHome">LeftHome</td>
  250. <td>
  251. Moves to the left begin.
  252. </td>
  253. </tr>
  254. <tr>
  255. <td id="Terminal_Gui_Command_LeftHomeExtend">LeftHomeExtend</td>
  256. <td>
  257. Extends the selection to the left begin.
  258. </td>
  259. </tr>
  260. <tr>
  261. <td id="Terminal_Gui_Command_LineDown">LineDown</td>
  262. <td>
  263. Moves the caret down one line.
  264. </td>
  265. </tr>
  266. <tr>
  267. <td id="Terminal_Gui_Command_LineDownExtend">LineDownExtend</td>
  268. <td>
  269. Extends the selection down one line.
  270. </td>
  271. </tr>
  272. <tr>
  273. <td id="Terminal_Gui_Command_LineDownToLastBranch">LineDownToLastBranch</td>
  274. <td>
  275. Moves the caret down to the last child node of the branch that holds the current selection
  276. </td>
  277. </tr>
  278. <tr>
  279. <td id="Terminal_Gui_Command_LineUp">LineUp</td>
  280. <td>
  281. Moves the caret up one line.
  282. </td>
  283. </tr>
  284. <tr>
  285. <td id="Terminal_Gui_Command_LineUpExtend">LineUpExtend</td>
  286. <td>
  287. Extends the selection up one line.
  288. </td>
  289. </tr>
  290. <tr>
  291. <td id="Terminal_Gui_Command_LineUpToFirstBranch">LineUpToFirstBranch</td>
  292. <td>
  293. Moves the caret up to the first child node of the branch that holds the current selection
  294. </td>
  295. </tr>
  296. <tr>
  297. <td id="Terminal_Gui_Command_NewLine">NewLine</td>
  298. <td>
  299. Inserts a new line.
  300. </td>
  301. </tr>
  302. <tr>
  303. <td id="Terminal_Gui_Command_NextView">NextView</td>
  304. <td>
  305. Moves focus to the next view.
  306. </td>
  307. </tr>
  308. <tr>
  309. <td id="Terminal_Gui_Command_NextViewOrTop">NextViewOrTop</td>
  310. <td>
  311. Moves focus to the next view or toplevel (case of Mdi).
  312. </td>
  313. </tr>
  314. <tr>
  315. <td id="Terminal_Gui_Command_OpenSelectedItem">OpenSelectedItem</td>
  316. <td>
  317. Open selected item.
  318. </td>
  319. </tr>
  320. <tr>
  321. <td id="Terminal_Gui_Command_PageDown">PageDown</td>
  322. <td>
  323. Move the page down.
  324. </td>
  325. </tr>
  326. <tr>
  327. <td id="Terminal_Gui_Command_PageDownExtend">PageDownExtend</td>
  328. <td>
  329. Move the page down increase selection area to cover revealed objects/characters.
  330. </td>
  331. </tr>
  332. <tr>
  333. <td id="Terminal_Gui_Command_PageLeft">PageLeft</td>
  334. <td>
  335. Moves to the left page.
  336. </td>
  337. </tr>
  338. <tr>
  339. <td id="Terminal_Gui_Command_PageRight">PageRight</td>
  340. <td>
  341. Moves to the right page.
  342. </td>
  343. </tr>
  344. <tr>
  345. <td id="Terminal_Gui_Command_PageUp">PageUp</td>
  346. <td>
  347. Move the page up.
  348. </td>
  349. </tr>
  350. <tr>
  351. <td id="Terminal_Gui_Command_PageUpExtend">PageUpExtend</td>
  352. <td>
  353. Move the page up increase selection area to cover revealed objects/characters.
  354. </td>
  355. </tr>
  356. <tr>
  357. <td id="Terminal_Gui_Command_Paste">Paste</td>
  358. <td>
  359. Pastes the current selection.
  360. </td>
  361. </tr>
  362. <tr>
  363. <td id="Terminal_Gui_Command_PreviousView">PreviousView</td>
  364. <td>
  365. Moves focuss to the previous view.
  366. </td>
  367. </tr>
  368. <tr>
  369. <td id="Terminal_Gui_Command_PreviousViewOrTop">PreviousViewOrTop</td>
  370. <td>
  371. Moves focus to the next previous or toplevel (case of Mdi).
  372. </td>
  373. </tr>
  374. <tr>
  375. <td id="Terminal_Gui_Command_QuitToplevel">QuitToplevel</td>
  376. <td>
  377. Quit a toplevel.
  378. </td>
  379. </tr>
  380. <tr>
  381. <td id="Terminal_Gui_Command_Redo">Redo</td>
  382. <td>
  383. Redo changes.
  384. </td>
  385. </tr>
  386. <tr>
  387. <td id="Terminal_Gui_Command_Refresh">Refresh</td>
  388. <td>
  389. Refresh the application.
  390. </td>
  391. </tr>
  392. <tr>
  393. <td id="Terminal_Gui_Command_Right">Right</td>
  394. <td>
  395. Moves the selection right one by the minimum increment supported by the view e.g. single character, cell, item etc.
  396. </td>
  397. </tr>
  398. <tr>
  399. <td id="Terminal_Gui_Command_RightEnd">RightEnd</td>
  400. <td>
  401. Moves to the right end.
  402. </td>
  403. </tr>
  404. <tr>
  405. <td id="Terminal_Gui_Command_RightEndExtend">RightEndExtend</td>
  406. <td>
  407. Extends the selection to the right end.
  408. </td>
  409. </tr>
  410. <tr>
  411. <td id="Terminal_Gui_Command_RightExtend">RightExtend</td>
  412. <td>
  413. Extends the selection right one by the minimum increment supported by the view e.g. single character, cell, item etc.
  414. </td>
  415. </tr>
  416. <tr>
  417. <td id="Terminal_Gui_Command_ScrollDown">ScrollDown</td>
  418. <td>
  419. Scrolls down one line (without changing the selection).
  420. </td>
  421. </tr>
  422. <tr>
  423. <td id="Terminal_Gui_Command_ScrollLeft">ScrollLeft</td>
  424. <td>
  425. Scrolls one character to the left
  426. </td>
  427. </tr>
  428. <tr>
  429. <td id="Terminal_Gui_Command_ScrollRight">ScrollRight</td>
  430. <td>
  431. Scrolls one character to the right.
  432. </td>
  433. </tr>
  434. <tr>
  435. <td id="Terminal_Gui_Command_ScrollUp">ScrollUp</td>
  436. <td>
  437. Scrolls up one line (without changing the selection).
  438. </td>
  439. </tr>
  440. <tr>
  441. <td id="Terminal_Gui_Command_SelectAll">SelectAll</td>
  442. <td>
  443. Selects all objects in the control.
  444. </td>
  445. </tr>
  446. <tr>
  447. <td id="Terminal_Gui_Command_StartOfLine">StartOfLine</td>
  448. <td>
  449. Moves the cursor to the start of line.
  450. </td>
  451. </tr>
  452. <tr>
  453. <td id="Terminal_Gui_Command_StartOfLineExtend">StartOfLineExtend</td>
  454. <td>
  455. Extends the selection to the start of line.
  456. </td>
  457. </tr>
  458. <tr>
  459. <td id="Terminal_Gui_Command_StartOfPage">StartOfPage</td>
  460. <td>
  461. Moves the cursor to the top of page.
  462. </td>
  463. </tr>
  464. <tr>
  465. <td id="Terminal_Gui_Command_Suspend">Suspend</td>
  466. <td>
  467. Suspend a application (used on Linux).
  468. </td>
  469. </tr>
  470. <tr>
  471. <td id="Terminal_Gui_Command_Tab">Tab</td>
  472. <td>
  473. Inserts a tab.
  474. </td>
  475. </tr>
  476. <tr>
  477. <td id="Terminal_Gui_Command_ToggleChecked">ToggleChecked</td>
  478. <td>
  479. Toggle the checked state.
  480. </td>
  481. </tr>
  482. <tr>
  483. <td id="Terminal_Gui_Command_ToggleExpandCollapse">ToggleExpandCollapse</td>
  484. <td>
  485. Toggles the Expanded or collapsed state of a a list or item (with subitems)
  486. </td>
  487. </tr>
  488. <tr>
  489. <td id="Terminal_Gui_Command_ToggleExtend">ToggleExtend</td>
  490. <td>
  491. Toggles the extended selection.
  492. </td>
  493. </tr>
  494. <tr>
  495. <td id="Terminal_Gui_Command_ToggleOverwrite">ToggleOverwrite</td>
  496. <td>
  497. Toggles overwrite mode such that newly typed text overwrites the text that is
  498. already there (typically associated with the Insert key).
  499. </td>
  500. </tr>
  501. <tr>
  502. <td id="Terminal_Gui_Command_TopHome">TopHome</td>
  503. <td>
  504. Moves to top begin.
  505. </td>
  506. </tr>
  507. <tr>
  508. <td id="Terminal_Gui_Command_TopHomeExtend">TopHomeExtend</td>
  509. <td>
  510. Extends the selection to the top begin.
  511. </td>
  512. </tr>
  513. <tr>
  514. <td id="Terminal_Gui_Command_Undo">Undo</td>
  515. <td>
  516. Undo changes.
  517. </td>
  518. </tr>
  519. <tr>
  520. <td id="Terminal_Gui_Command_UnixEmulation">UnixEmulation</td>
  521. <td>
  522. Unix emulation
  523. </td>
  524. </tr>
  525. <tr>
  526. <td id="Terminal_Gui_Command_WordLeft">WordLeft</td>
  527. <td>
  528. Moves the caret to the start of the previous word.
  529. </td>
  530. </tr>
  531. <tr>
  532. <td id="Terminal_Gui_Command_WordLeftExtend">WordLeftExtend</td>
  533. <td>
  534. Extends the selection to the start of the previous word.
  535. </td>
  536. </tr>
  537. <tr>
  538. <td id="Terminal_Gui_Command_WordRight">WordRight</td>
  539. <td>
  540. Moves the caret to the start of the next word.
  541. </td>
  542. </tr>
  543. <tr>
  544. <td id="Terminal_Gui_Command_WordRightExtend">WordRightExtend</td>
  545. <td>
  546. Extends the selection to the start of the next word.
  547. </td>
  548. </tr>
  549. </tbody>
  550. </thead></thead></table>
  551. </article>
  552. </div>
  553. <div class="hidden-sm col-md-2" role="complementary">
  554. <div class="sideaffix">
  555. <div class="contribution">
  556. <ul class="nav">
  557. <li>
  558. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Command.md&amp;value=---%0Auid%3A%20Terminal.Gui.Command%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
  559. </li>
  560. <li>
  561. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/Command.cs/#L10" class="contribution-link">View Source</a>
  562. </li>
  563. </ul>
  564. </div>
  565. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  566. <h5>In This Article</h5>
  567. <div></div>
  568. </nav>
  569. </div>
  570. </div>
  571. </div>
  572. </div>
  573. <footer>
  574. <div class="grad-bottom"></div>
  575. <div class="footer">
  576. <div class="container">
  577. <span class="pull-right">
  578. <a href="#top">Back to top</a>
  579. </span>
  580. <span>Generated by <strong>DocFX</strong></span>
  581. </div>
  582. </div>
  583. </footer>
  584. </div>
  585. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  586. <script type="text/javascript" src="../../styles/docfx.js"></script>
  587. <script type="text/javascript" src="../../styles/main.js"></script>
  588. </body>
  589. </html>