diff options
author | Timo Sirainen <cras@irssi.org> | 2001-04-14 22:24:56 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-04-14 22:24:56 +0000 |
commit | adb7eced395ba88816a365768fee56e04a0a0ec5 (patch) | |
tree | d4eedd91f292418468acf3eb68aef9bdfe4d3563 /src/fe-text/mainwindows.h | |
parent | d98fddd79647e9387ecbf674f317b02f4b78d7e2 (diff) | |
download | irssi-adb7eced395ba88816a365768fee56e04a0a0ec5.zip |
Rewrote text buffer handling in windows - try #3.
/SET scrollback_save_formats + /SB REDRAW is broken currently. There's some
other minor things that might need to be changed.
This time it allows the same window to be visible multiple times in screen,
like you could make a new split window where to scroll back and find
something while still seeing the new messages at the other window, this
however doesn't work yet but it should be quite easy to make it :)
I've tested that pretty much everything should work with this, new lines can
be added at any position and lines can be removed from any position and
screen should be updated properly. Screen resizing should also work
perfectly now (maybe it did previously too, not sure) and hopefully now we
won't see any of those ugly strange bugs some people were having. Also this
time the same code isn't written 2-3 times to do some specific thing, like
scrolling has now only one view_scroll() function instead of the 3 separate
functions it used to have :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1442 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/mainwindows.h')
-rw-r--r-- | src/fe-text/mainwindows.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fe-text/mainwindows.h b/src/fe-text/mainwindows.h index 88ff97e0..491449c6 100644 --- a/src/fe-text/mainwindows.h +++ b/src/fe-text/mainwindows.h @@ -12,8 +12,10 @@ typedef struct { #ifdef USE_CURSES_WINDOWS WINDOW *curses_win; +#else +#error disable-curses-windows is currently broken /* FIXME */ #endif - int first_line, last_line, lines; + int first_line, last_line, width, height; int statusbar_lines; void *statusbar; void *statusbar_window_item; @@ -32,7 +34,7 @@ void mainwindows_redraw(void); void mainwindows_recreate(void); void mainwindow_set_size(MAIN_WINDOW_REC *window, int size); -void mainwindows_resize(int ychange, int xchange); +void mainwindows_resize(int width, int height); int mainwindows_reserve_lines(int count, int up); GSList *mainwindows_get_sorted(int reverse); |