mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 15:12:11 +02:00
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
This commit is contained in:
parent
d98fddd796
commit
adb7eced39
20 changed files with 2424 additions and 1925 deletions
|
|
@ -55,8 +55,8 @@ void irc_deinit(void);
|
|||
void gui_expandos_init(void);
|
||||
void gui_expandos_deinit(void);
|
||||
|
||||
void gui_textwidget_init(void);
|
||||
void gui_textwidget_deinit(void);
|
||||
void textbuffer_commands_init(void);
|
||||
void textbuffer_commands_deinit(void);
|
||||
|
||||
void lastlog_init(void);
|
||||
void lastlog_deinit(void);
|
||||
|
|
@ -124,11 +124,13 @@ static void textui_finish_init(void)
|
|||
quitting = FALSE;
|
||||
|
||||
screen_refresh_freeze();
|
||||
textbuffer_init();
|
||||
textbuffer_view_init();
|
||||
textbuffer_commands_init();
|
||||
gui_entry_init();
|
||||
gui_expandos_init();
|
||||
gui_printtext_init();
|
||||
gui_readline_init();
|
||||
gui_textwidget_init();
|
||||
lastlog_init();
|
||||
mainwindows_init();
|
||||
mainwindow_activity_init();
|
||||
|
|
@ -165,7 +167,6 @@ static void textui_deinit(void)
|
|||
|
||||
signal_remove("gui exit", (SIGNAL_FUNC) sig_exit);
|
||||
|
||||
gui_textwidget_deinit();
|
||||
lastlog_deinit();
|
||||
statusbar_deinit();
|
||||
gui_printtext_deinit();
|
||||
|
|
@ -176,6 +177,9 @@ static void textui_deinit(void)
|
|||
mainwindows_deinit();
|
||||
gui_expandos_deinit();
|
||||
gui_entry_deinit();
|
||||
textbuffer_commands_deinit();
|
||||
textbuffer_view_deinit();
|
||||
textbuffer_deinit();
|
||||
|
||||
screen_refresh_thaw();
|
||||
deinit_screen();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue