TBrowse
Display and navigate a table of data in a terminal. The application supplies callbacks to move the data source.
Creating and freeing
Columns
TBrowseAddColumn
Append a column
TBrowseDelColumn
Remove and return the column at a one-based position
TBrowseGetColCount
Return the total number of columns
TBrowseGetColumn
Return the column at a one-based position, or NULL for an invalid position
TBrowseInsColumn
Insert a column at a one-based position from 1 through the current count plus one
TBrowseSetColumn
Replace the column at a one-based position and return the old column to the caller
Instance variables
TBrowseGetAutoLite
Return whether automatic highlighting is enabled for the current cell
TBrowseGetBorder
Return the text used to draw the border
TBrowseGetCargo
Return the application data pointer stored on the browse
TBrowseGetColorSpec
Return the browse color table
TBrowseGetColPos
Return the one-based index of the cursor column
TBrowseGetColSep
Return the default column separator
TBrowseGetFootSep
Return the default footing separator
TBrowseGetFreeze
Return the configured number of frozen columns on the left
TBrowseGetGoBottomBlock
Return the callback that moves the data source to its last row
TBrowseGetGoTopBlock
Return the callback that moves the data source to its first row
TBrowseGetHeadSep
Return the default heading separator
TBrowseGetHitBottom
Return whether navigation reached the end of the data
TBrowseGetHitTop
Return whether navigation reached the start of the data
TBrowseGetLeftVisible
Return the one-based index of the leftmost visible unfrozen column, or 0 when there is none
TBrowseGetMColPos
Return the one-based column recorded by the last hit on a cell
TBrowseGetMessage
Return the stored status message for the application
TBrowseGetMRowPos
Return the one-based data row recorded by the last hit on a cell
TBrowseGetNBottom
Return the bottom terminal row of the browse
TBrowseGetNLeft
Return the left terminal column of the browse
TBrowseGetNRight
Return the right terminal column of the browse
TBrowseGetNTop
Return the top terminal row of the browse
TBrowseGetRightVisible
Return the one-based index of the rightmost visible unfrozen column, or 0 when there is none
TBrowseGetRowCount
Return the number of visible data rows
TBrowseGetRowPos
Return the one-based cursor row in the displayed data area
TBrowseGetSkipBlock
Return the callback that moves the data source by a signed row count
TBrowseGetStable
Return whether the browse has finished updating its display
TBrowseSetAutoLite
Enable or disable automatic highlighting of the current cell
TBrowseSetBorder
Set the border text
TBrowseSetCargo
Store the application data pointer used by the callbacks
TBrowseSetColorSpec
Set the comma-separated browse color table
TBrowseSetColPos
Set the one-based index of the cursor column
TBrowseSetColSep
Set the default column separator
TBrowseSetFootSep
Set the default footing separator
TBrowseSetFreeze
Set how many columns stay on the left during horizontal scrolling
TBrowseSetGoBottomBlock
Set the callback used by TBrowseGoBottom()
TBrowseSetGoTopBlock
Set the callback used by TBrowseGoTop()
TBrowseSetHeadSep
Set the default heading separator
TBrowseSetMessage
Store a message for the application to display
TBrowseSetNBottom
Set the bottom terminal row of the browse
TBrowseSetNLeft
Set the left terminal column of the browse
TBrowseSetNRight
Set the right terminal column of the browse
TBrowseSetNTop
Set the top terminal row of the browse
TBrowseSetRowPos
Set the one-based cursor row in the displayed data area
TBrowseSetSkipBlock
Set the callback that moves the data source and returns the signed number of rows moved
Stabilization and drawing
TBrowseColorRect
Set the standard and selected color indices for cached cells in a rectangle
TBrowseColWidth
Return the calculated width of a one-based column in characters, or 0 for an invalid column
TBrowseConfigure
Recalculate the layout and mark all rows for rereading and redraw
TBrowseDeHilite
Redraw the current cell in its standard color
TBrowseForceStable
Finish stabilization so that all pending updates are displayed
TBrowseHilite
Highlight the current cell and place the terminal cursor on it
TBrowseInvalidate
Schedule a complete redraw using the cached data
TBrowseRefreshAll
Schedule all rows to be read and drawn again
TBrowseRefreshCurrent
Schedule the current row to be read and drawn again
TBrowseStabilize
Carry out pending movement and draw at most one data row in this step
Cursor movement
TBrowseDown
Move the cursor down one row
TBrowseEnd
Move the cursor to the rightmost visible column
TBrowseGoBottom
Move to the last data row using the bottom callback
TBrowseGoTop
Move to the first data row using the top callback
TBrowseHome
Move the cursor to the leftmost visible column
TBrowseLeft
Move the cursor left one column
TBrowsePageDown
Move the data source down one screen of rows
TBrowsePageUp
Move the data source up one screen of rows
TBrowsePanEnd
Scroll to the last column and select it
TBrowsePanHome
Scroll to the first column and select it
TBrowsePanLeft
Scroll the unfrozen columns toward the start of the table and keep the cursor visible
TBrowsePanRight
Scroll the unfrozen columns toward the end of the table and keep the cursor visible
TBrowseRight
Move the cursor right one column
TBrowseUp
Move the cursor up one row
Keys and mouse
TBrowseApplyKey
Call the callback bound to an Inkey() value, or the fallback bound to key 0
TBrowseGetKey
Return the callback bound to the specified key, or NULL
TBrowseHitTest
Return the HT* constant for the given terminal position
TBrowseSetKey
Bind a key to a callback and return the previous callback