| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Still to do: rename fl_filename... to fl_filename..._str
and introduce into core library.
|
|
|
|
|
|
- Add 'int Fl_Terminal::handle_unknown_char(int drow, int dcol)'
to write the "unknown" character to the intended display position.
- Define Fl_Terminal::unknown_char as a static variable to avoid
redundancy. In the future this might be overridden by users.
|
|
Some old platforms (NetBSD, AIX) implement the common stdio "putchar()"
function as a global macro which poisons the global namespace, preventing
all C and C++ programs from using "putchar()" as a function or method.
There was a long thread about this in fltk.coredev during the period
Mar 25 2024 ~ Apr 4 2024, subject "RFC: Fl_Terminal::putchar() in public API"
as to why we have no choice but to not use putchar() as a method name.
|
|
|
|
Three unrelated but only minor warnings.
|
|
... and document a missing parameter.
|
|
This involved enlarging the unittest main window to make room
for the additional test.
Adding this test revealed a problem in Fl_Terminal's global
scrollbar size handling, which is fixed here as well.
Also fixed a small issue in the demo's debugging terminal
with the horiz scrollbar.
|
|
|
|
|
|
|
|
* Checkpoint. Basic functionality seems to be working.
* Code cleanup
* Added horizontal scrollbar to Terminal widget
* Fix hscrollbar_size operation
* Applied erco-terminal-mods_v5_final.patch.txt
Final patch relating to PR 918
* Remove trailing whitespace, update copyright year
---------
Co-authored-by: Jonathan Griffitts <jonathan.griffitts@gmail.com>
Co-authored-by: Greg Ercolano <erco@seriss.com>
Co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
|
|
|
|
|
|
* Improve horizontal interactive selection
* Using half-character positions to implement selection
similar to Fl_Input.
* Add word and line selection
* Fix vertical position of text
|
|
Fixed a bug in the handling of xterm color 39 + 49, which avoids
applying Dim/Bold if default color is the special "see through" color
0xffffff00. A test will be added to test/terminal to excercise this
in a follow up commit.
Renamed CharStyle::?gcolor_uchar() -> CharStyle::?gcolor_xterm()
for a consistent naming convention.
Changed fltk_fg_color() from a static func to a CharStyle method
because it needs to access the defaultcolor for the special cases
for xterm colors 39 and 49.
Made CharStyle::attr_color() private, as per Jonathan Griffitts request
in issue #909.
Improved docs regarding effects of Dim/Bold for xterm and non-xterm color
methods.
Fl_Terminal::text?gcolor_xterm() methods now use CharStyle::?gcolor_xterm()
methods, removing the duplicate code logic.
|
|
|
|
|
|
|
|
> Enabled -Wall -Wextra -Wpedantic to catch errors
- Silenced resulting "unused parameters" warnings
- Fixed char omission in protected Fl_Terminal::insert_char() methods
> Self doc code and better comments in RingBuffer::resize()
> Changed private RingBuffer::clear_disp_row() -> clear_disp_rows()
> Added private RingBuffer::hist_rows()/disp_rows() setter methods
> Added private RingBuffer::offset_adjust() method for adjusting RingBuffer offset_
> Fixed comment typos
> Remove white space inside outer parens of while()/if()/etc
|
|
|
|
Requested by Jonathan Griffitts during rust bindings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- Made sure all public+protected members are documented.
- Reclassified some private -> protected:
> vscroll_width()
- Removed signatures for unimplemented (non-existant) methods:
> u8c_cursor(void)
> history_use(int,bool)
> cursor_h()
- Reclassified some protected -> private:
> x_to_glob_col()
> xy_to_glob_rowcol()
> is_hist_ring_row()
> is_disp_ring_row()
> handle_ctrl()
> is_printable()
> is_ctrl()
..etc..
> handle_selection_autoscroll()
> handle_selection()
> is_redraw_style
- Add todo for ESC 7 and ESC 8
- Small code formatting mods
- Small typos
|
|
New public methods:
void clear(void);
void clear(Fl_Color val);
old protected methods made public:
void clear_screen(bool scroll_to_hist=true); // ESC [ 2 J
void clear_screen_home(bool scroll_to_hist=true); // ESC [ H ESC [ 2 J
void cursor_home(void); // ESC [ 0 H
test/terminal modified to test these, and added separate tests
for both the API and ANSI code ways to do these ops.
|
|
textcolor() needed for consistency, color() behavior documented.
Both added to the test/terminal app.
Elaborated on the special background "see through" color value + behavior,
tested with color() in test/terminal app.
|
|
|
|
Pull Fl_Terminal widget from Greg's fork
|