diff options
| author | erco77 <erco@seriss.com> | 2023-11-14 07:01:52 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-14 07:01:52 -0800 |
| commit | 6842a43a3170c6f7a852186d5688baebdac16e2c (patch) | |
| tree | 04493580bf8fc798858720c7ab7ffecedeb9ee3e /test/file_chooser.cxx | |
| parent | 83f6336f3b024f4a7c55a7499d036f03d946c1b9 (diff) | |
Fl_Terminal widget (#800)
Pull Fl_Terminal widget from Greg's fork
Diffstat (limited to 'test/file_chooser.cxx')
| -rw-r--r-- | test/file_chooser.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/file_chooser.cxx b/test/file_chooser.cxx index a79ef2023..46e76d84c 100644 --- a/test/file_chooser.cxx +++ b/test/file_chooser.cxx @@ -36,7 +36,7 @@ #include <FL/Fl_PNM_Image.H> #include <FL/Fl_Light_Button.H> #include <FL/Fl_Double_Window.H> -#include <FL/Fl_Simple_Terminal.H> +#include <FL/Fl_Terminal.H> #include <stdio.h> #include <string.h> @@ -55,7 +55,7 @@ Fl_Input *filter; Fl_File_Browser *files; Fl_File_Chooser *fc; Fl_Shared_Image *image = 0; -Fl_Simple_Terminal *tty = 0; +Fl_Terminal *tty = 0; // for choosing extra groups Fl_Choice *ch_extra; @@ -109,8 +109,9 @@ main(int argc, // I - Number of command-line arguments // Make the main window... window = new Fl_Double_Window(400, 215+TERMINAL_HEIGHT, "File Chooser Test"); - tty = new Fl_Simple_Terminal(0,215,window->w(),TERMINAL_HEIGHT); + tty = new Fl_Terminal(0,215,window->w(),TERMINAL_HEIGHT); tty->ansi(true); + tty->display_columns(100); // at least 100 cols wide, even tho actual window smaller // Group: limit resizing to filter input (not browse button) grp = new Fl_Group(0,10,400,25); |
