Table of Contents

Enum Command

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Actions which can be performed by the application or bound to keys in a View control.

public enum Command

Fields

Accept = 1

Accepts the current state (e.g. list selection, button press, toggle, etc).

BackTab = 75

Tabs back to the previous item.

BottomEnd = 34

Moves to the bottom/end.

BottomEndExtend = 35

Extends the selection to the bottom/end.

Cancel = 42

Cancels an action or any temporary states on the control e.g. expanding a combo list.

Collapse = 40

Collapses a list or item (with subitems).

CollapseAll = 41

Recursively collapses a list items of their children (if any).

Copy = 62

Copies the current selection.

Cut = 63

Cuts the current selection.

CutToEndLine = 21

Cuts to the clipboard the characters from the current position to the end of the line.

CutToStartLine = 22

Cuts to the clipboard the characters from the current position to the start of the line.

DeleteAll = 47

Deletes all objects.

DeleteCharLeft = 45

Deletes the character on the left.

DeleteCharRight = 44

Deletes the character on the right.

DisableOverwrite = 27

Disables overwrite mode (EnableOverwrite)

EnableOverwrite = 26

Enables overwrite mode such that newly typed text overwrites the text that is already there (typically associated with the Insert key).

EndOfLine = 50

Moves the cursor to the end of line.

EndOfLineExtend = 51

Extends the selection to the end of line.

EndOfPage = 53

Moves the cursor to the bottom of page.

Expand = 38

Expands a list or item (with subitems).

ExpandAll = 39

Recursively Expands all child items and their child items (if any).

HotKey = 0

Invoked when the HotKey for the View has been pressed.

KillWordBackwards = 24

Deletes the characters backwards.

KillWordForwards = 23

Deletes the characters forwards.

Left = 11

Moves the selection left one by the minimum increment supported by the View e.g. single character, cell, item etc.

LeftExtend = 13

Extends the selection left one by the minimum increment supported by the view e.g. single character, cell, item etc.

LeftHome = 56

Moves to the left begin.

LeftHomeExtend = 57

Extends the selection to the left begin.

LineDown = 3

Moves down one item (cell, line, etc...).

LineDownExtend = 4

Extends the selection down one (cell, line, etc...).

LineDownToLastBranch = 5

Moves down to the last child node of the branch that holds the current selection.

LineUp = 7

Moves up one (cell, line, etc...).

LineUpExtend = 8

Extends the selection up one item (cell, line, etc...).

LineUpToFirstBranch = 9

Moves up to the first child node of the branch that holds the current selection.

New = 78

Creates a new document.

NewLine = 73

Inserts a new item.

NextView = 67

Moves focus to the next view.

NextViewOrTop = 69

Moves focus to the next view or Toplevel (case of Overlapped).

OpenSelectedItem = 36

Open the selected item.

PageDown = 28

Move one page down.

PageDownExtend = 29

Move one page page extending the selection to cover revealed objects/characters.

PageLeft = 54

Moves to the left page.

PageRight = 55

Moves to the right page.

PageUp = 30

Move one page up.

PageUpExtend = 31

Move one page up extending the selection to cover revealed objects/characters.

Paste = 64

Pastes the current selection.

PreviousView = 68

Moves focuss to the previous view.

PreviousViewOrTop = 70

Moves focus to the next previous or Toplevel (case of Overlapped).

QuitToplevel = 65

Quit a Toplevel.

Redo = 61

Redo changes.

Refresh = 71

Refresh.

Right = 14

Moves the selection right one by the minimum increment supported by the view e.g. single character, cell, item etc.

RightEnd = 58

Moves to the right end.

RightEndExtend = 59

Extends the selection to the right end.

RightExtend = 16

Extends the selection right one by the minimum increment supported by the view e.g. single character, cell, item etc.

Save = 76

Saves the current document.

SaveAs = 77

Saves the current document with a new name.

ScrollDown = 6

Scrolls down one (cell, line, etc...) (without changing the selection).

ScrollLeft = 12

Scrolls one item (cell, character, etc...) to the left

ScrollRight = 15

Scrolls one item (cell, character, etc...) to the right.

ScrollUp = 10

Scrolls up one item (cell, line, etc...) (without changing the selection).

Select = 2

Selects an item (e.g. a list item or menu item) without necessarily accepting it.

SelectAll = 46

Selects all objects.

ShowContextMenu = 79

Shows context about the item (e.g. a context menu).

StartOfLine = 48

Moves the cursor to the start of line.

StartOfLineExtend = 49

Extends the selection to the start of line.

StartOfPage = 52

Moves the cursor to the top of page.

Suspend = 66

Suspend a application (Only implemented in CursesDriver).

Tab = 74

Tabs to the next item.

ToggleExpandCollapse = 37

Toggles the Expanded or collapsed state of a a list or item (with subitems).

ToggleExtend = 72

Toggles the selection.

ToggleOverwrite = 25

Toggles overwrite mode such that newly typed text overwrites the text that is already there (typically associated with the Insert key).

TopHome = 32

Moves to the top/home.

TopHomeExtend = 33

Extends the selection to the top/home.

Undo = 60

Undo changes.

UnixEmulation = 43

Unix emulation.

WordLeft = 17

Moves the caret to the start of the previous word.

WordLeftExtend = 18

Extends the selection to the start of the previous word.

WordRight = 19

Moves the caret to the start of the next word.

WordRightExtend = 20

Extends the selection to the start of the next word.