summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2024-03-02 22:47:45 -0800
committerGreg Ercolano <erco@seriss.com>2024-03-02 22:47:45 -0800
commit257e20e929e03f31f46b310f08b0254b016c77a5 (patch)
treee368fd37570cb3dde77a16dba2e52f2d691ed756 /FL
parentf1c9b198bba52d19a840efc7a77a9752d711ee57 (diff)
Added Fl_Terminal::text() and docs
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Terminal.H16
1 files changed, 13 insertions, 3 deletions
diff --git a/FL/Fl_Terminal.H b/FL/Fl_Terminal.H
index 46d9403ba..196c40e06 100644
--- a/FL/Fl_Terminal.H
+++ b/FL/Fl_Terminal.H
@@ -82,6 +82,15 @@
text colors. Others, such as cursor_up() are protected to prevent common misuse, and are
available only to subclasses.
+ Some common operations:
+ - Set the terminal's background color, see color(Fl_Color)
+ - Set the terminal's default text color, see textfgcolor_default(Fl_Color)
+ - Printing text to the terminal, see Fl_Terminal::printf() and Fl_Terminal::append()
+ - Clearing the screen, see clear()
+ - Getting the terminal's buffer contents, see text()
+ - Getting single utf8 characters by row/col from the terminal display, see utf8_char_at_disp()
+ - Getting the text from a text selection, see get_selection()
+
For applications that need input support, the widget can be subclassed to provide
keyboard input, and advanced features like pseudo ttys, termio, serial port I/O, etc.,
as such features are beyond the scope of FLTK.
@@ -279,16 +288,16 @@
░░░░░░:::::::::::::░░░░░◉
░░░░░░::##:::::##:◉░░░░░░╲
░░░░░░::###:::###::╲░░░░░ ╲
- ░░░░░░::####:####::░╲░░░░ color()
+ ░░░░░░::####:####::░╲░░░░ Fl_Terminal::color()
░░░░░░::##:###:##::░░╲░░░
░░░░░░::##::#::##::░░░╲░░
░░░░░░::##:.:::##::░░░░╲░
░░░░░░::##:::::#◉::░░░░░╲
░░░░░░:::::::::::╲:░░░░░░╲
- ░░░░░░░░░░░░░░░░░░╲░░░░░░ textbgcolor()
+ ░░░░░░░░░░░░░░░░░░╲░░░░░░ Fl_Terminal::textbgcolor()
░░░░░░░░░░░░░░░░░░░╲░░░░░
- textfgcolor()
+ Fl_Terminal::textfgcolor()
·
\endcode
@@ -999,6 +1008,7 @@ public:
void draw(void) FL_OVERRIDE;
void resize(int X,int Y,int W,int H) FL_OVERRIDE;
int handle(int e) FL_OVERRIDE;
+ const char* text(bool lines_below_cursor=false) const;
protected:
// Internal short names