CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Path: gap4r8 / pkg / Browse / doc / chap0.txt
Views: 418346
1
2
3
Browse
4
5
6
( Version 1.8.7 )
7
8
9
July 2017
10
11
12
Thomas Breuer
13
14
Frank Lübeck
15
16
17
18
Thomas Breuer
19
Email: mailto:[email protected]
20
Homepage: http://www.math.rwth-aachen.de/~Thomas.Breuer
21
Frank Lübeck
22
Email: mailto:[email protected]
23
Homepage: http://www.math.rwth-aachen.de/~Frank.Luebeck
24
25
-------------------------------------------------------
26
Copyright
27
© 2006-2017 by Thomas Breuer and Frank Lübeck
28
29
This package may be distributed under the terms and conditions of the GNU
30
Public License Version 3 or later, see http://www.gnu.org/licenses.
31
32
33
-------------------------------------------------------
34
35
36
Contents (Browse)
37
38
1 Introduction and Overview
39
1.1 Introduction
40
1.2 Overview
41
1.2-1 The ncurses interface
42
1.2-2 Applications of ncurses
43
1.2-3 The interface to browse two-dimensional arrays
44
1.2-4 Applications of the generic function NCurses.BrowseGeneric
45
1.3 User preferences provided by the Browse package
46
1.3-1 The user preference EnableMouseEvents
47
1.3-2 The user preference SelectHelpMatches
48
1.3-3 The user preference SelectPackageName
49
2 Interface to the ncurses Library
50
2.1 The ncurses Library
51
2.1-1 Setting the terminal
52
2.1-2 Manipulating windows
53
2.1-3 Manipulating panels
54
2.1-4 Getting keyboard input
55
2.1-5 Writing to windows
56
2.1-6 Line drawing characters
57
2.1-7 Text attributes and colors
58
2.1-8 Low level ncurses mouse support
59
2.1-9 Miscellaneous function
60
2.2 The ncurses GAP functions
61
2.2-1 NCurses.ColorAttr
62
2.2-2 NCurses.SetTerm
63
2.2-3 NCurses.IsAttributeLine
64
2.2-4 NCurses.ConcatenationAttributeLines
65
2.2-5 NCurses.RepeatedAttributeLine
66
2.2-6 NCurses.PutLine
67
2.2-7 NCurses.WidthAttributeLine
68
2.2-8 NCurses.Grid
69
2.2-9 NCurses.WBorder
70
2.2-10 Mouse support in ncurses applications
71
2.2-11 NCurses.SaveWin
72
3 Utilities using ncurses
73
3.1 ncurses utilities
74
3.1-1 NCurses.Alert
75
3.1-2 NCurses.Select
76
3.1-3 NCurses.GetLineFromUser
77
3.1-4 NCurses.Pager
78
3.1-5 Selection of help matches
79
3.1-6 Selection of package names
80
3.2 A Demo Function
81
3.2-1 NCurses.Demo
82
4 Browsing Tables in GAP using ncurses –The User Interface
83
4.1 Features Supported by the Function NCurses.BrowseGeneric
84
4.2 Data Structures used by NCurses.BrowseGeneric
85
4.2-1 BrowseData.IsBrowseTableCellData
86
4.2-2 BrowseData.BlockEntry
87
4.2-3 BrowseData.IsBrowseTable
88
4.3 The Function NCurses.BrowseGeneric
89
4.3-1 NCurses.BrowseGeneric
90
5 Browsing Tables in GAP using ncurses –The Programming Interface
91
5.1 Navigation Steps in Browse Tables
92
5.2 Modes in Browse Tables
93
5.3 Browse Applications
94
5.4 Predefined Browse Functionalities
95
5.4-1 BrowseData
96
5.4-2 BrowseData.SetReplay
97
5.4-3 BrowseData.AlertWithReplay
98
5.4-4 BrowseData.actions.ShowHelp
99
5.4-5 BrowseData.actions.SaveWindow
100
5.4-6 BrowseData.actions.QuitMode
101
5.4-7 BrowseData.actions.Error
102
6 Examples of Applications based on NCurses.BrowseGeneric
103
6.1 The Operation Browse
104
6.1-1 Browse
105
6.2 Matrix Display
106
6.2-1 NCurses.BrowseDenseList
107
6.2-2 Browse
108
6.3 Character Table Display
109
6.3-1 Browse
110
6.3-2 BrowseDecompositionMatrix
111
6.4 Table of Marks Display
112
6.4-1 Browse
113
6.5 Table of Contents of AtlasRep
114
6.5-1 BrowseAtlasInfo
115
6.6 Access to GAP Manuals–a Variant
116
6.6-1 BrowseGapManuals
117
6.7 Overview of Bibliographies
118
6.7-1 BrowseBibliography
119
6.7-2 BrowseBibliographyGapPackages
120
6.7-3 BrowseMSC
121
6.8 Profiling GAP functions–a Variant
122
6.8-1 BrowseProfile
123
6.9 Variables defined in GAP packages–a Variant
124
6.9-1 BrowsePackageVariables
125
6.10 Configuring User preferences–a Variant
126
6.10-1 BrowseUserPreferences
127
6.11 Overview of GAP Data
128
6.11-1 BrowseGapData
129
6.11-2 BrowseGapDataAdd
130
6.12 Navigating in a Directory Tree
131
6.12-1 BrowseDirectory
132
6.13 A Puzzle
133
6.13-1 BrowsePuzzle
134
6.14 Peg Solitaire
135
6.14-1 PegSolitaire
136
6.15 Rubik's Cube
137
6.15-1 BrowseRubiksCube
138
6.16 Changing Sides
139
6.16-1 BrowseChangeSides
140
6.17 Sudoku
141
6.17-1 Sudoku.Init
142
6.17-2 Sudoku.Place
143
6.17-3 Sudoku.RandomGame
144
6.17-4 Sudoku.SimpleDisplay
145
6.17-5 Sudoku.DisplayString
146
6.17-6 Sudoku.OneSolution
147
6.17-7 Sudoku.UniqueSolution
148
6.17-8 PlaySudoku
149
6.17-9 Sudoku.HTMLGame
150
6.18 Utility for GAP Demos
151
6.18-1 LoadDemoFile
152
A Some Tools for Database Handling
153
A.1 GAP Objects for Database Handling
154
A.1-1 Database Id Enumerators
155
A.1-2 Database Attributes
156
A.1-3 How to Deal with Database Id Enumerators and Database Attributes
157
A.1-4 DatabaseIdEnumerator
158
A.1-5 DatabaseAttributeAdd
159
A.1-6 DatabaseAttributeValueDefault
160
A.1-7 DatabaseIdEnumeratorUpdate
161
A.1-8 DatabaseAttributeCompute
162
A.1-9 DatabaseAttributeSetData
163
A.2 Using Database Attributes for Browse Tables
164
A.2-1 Browse Relevant Components of Database Attributes
165
A.2-2 BrowseTableFromDatabaseIdEnumerator
166
A.3 Example: Database Id Enumerators and Database Attributes
167
A.4 Example: An Overview of the GAP Library of Tables of Marks
168
A.4-1 BrowseTomLibInfo
169
170
171

172
173