Scinterm is a curses platform for Scintilla that supports ncurses, PDCurses, and X/Open Curses.
It is highly recommended to run Scinterm in a UTF-8-aware terminal with a font that supports many UTF-8 characters ("DejaVu Sans Mono" is one of them), since Scinterm makes use of UTF-8 characters when drawing wrap symbols, some marker symbols, and call tip arrows.
Scinterm releases can be found here.
After downloading Scinterm, it is recommended to unzip it into the top-level directory of an
instance of Scintilla, similar to other Scintilla platforms like gtk/ and win32/. After
that, go into the Scinterm directory and run make patch
followed by make
to build the usual
../bin/scintilla.a.
You can optionally build the demo application, jinx, by going into jinx/ and running
make
. Pressing the q
key quits the demo. Note that the demo assumes lexilla
is a sibling to the ../../../scintilla directory, and that it has been built
(i.e. ../../../lexilla/bin/liblexilla.so exists).
Scinterm's Application Programming Interface (API) documentation is located in the project's docs/ directory and covers how to create and interact with a Scintilla widget in a terminal application.
Scinterm lacks some Scintilla features due to the terminal's constraints:
SCI_REGISTERIMAGE
.surface->FillRectangle()
is not supported).INDIC_ROUNDBOX
and INDIC_STRAIGHTBOX
are not drawn (surface->LineTo()
and surface->FillRectangle()
are not supported for drawing indicator shapes and pixmap
surfaces are not supported). Translucent drawing and rounded corners are not supported either.surface->LineTo()
is not supported for drawing some marker shapes).0x000000
), red (0x000080
), green (0x008000
), yellow
(0x008080
), blue (0x800000
), magenta (0x800080
), cyan (0x808000
), white (0xC0C0C0
),
light black (0x404040
), light red (0x0000FF
), light green (0x00FF00
), light yellow
(0x00FFFF
), light blue (0xFF0000
), light magenta (0xFF00FF
), light cyan (0xFFFF00
),
and light white (0xFFFFFF
). Even if your terminal uses a different color map, you must use
these color values with Scintilla; unrecognized colors are set to white by default. For some
terminals, you may need to set a lexer style's bold
attribute in order to use the light
color variant.Scinterm is open source. Feel free to report bugs and submit patches. Thanks to everyone who has contributed.