Scinterm API Documentation


Scinterm


An implementation of Scintilla for curses platforms like ncurses.

Functions defined by Scinterm

SCI_COLOR_PAIR (f, b)

[Macro] Returns the curses COLOR_PAIR for the given curses foreground and background COLORs. This is used simply to enumerate every possible color combination.

Parameters:

Return:

scintilla_delete (sci)

Deletes the given Scintilla window.

Parameters:

Return:

scintilla_get_clipboard (sci, buffer)

Copies the text of Scintilla’s internal clipboard, not the primary and/or secondary X selections, into the given buffer and returns the size of the clipboard text. Call with a null buffer first to get the size of the buffer needed to store clipboard text. Keep in mind clipboard text may contain null bytes.

Parameters:

Return:

scintilla_get_window (sci)

Returns the curses WINDOW associated with the given Scintilla window.

Parameters:

Return:

scintilla_new (callback)

Creates a new Scintilla curses window.

Parameters:

Return:

scintilla_noutrefresh (sci)

Refreshes the Scintilla window on the virtual screen. This should be done along with the normal curses noutrefresh().

Parameters:

scintilla_refresh (sci)

Refreshes the Scintilla window on the physical screen. This should be done along with the normal curses refresh().

Parameters:

Return:

scintilla_send_key (sci, key, shift, ctrl, alt)

Sends the specified key to the given Scintilla window for processing. If it is not consumed, an SCNotification will be emitted.

Parameters:

Return:

scintilla_send_message (sci, iMessage, wParam, lParam)

Sends the given message with parameters to the given Scintilla window.

Parameters:

Return:

scintilla_send_mouse (sci, event, time, button, y, x, shift, ctrl, alt)

Sends the specified mouse event to the given Scintilla window for processing.

Parameters:

Return: