1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-23 06:35:36 +00:00
Commit Graph

382 Commits

Author SHA1 Message Date
Timo Sirainen
b35062bb6a snprintf() -> g_snprintf()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2172 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-01 15:22:52 +00:00
Timo Sirainen
6e4b264148 Make sure the more-statusbar item doesn't crash if there's no active window.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2170 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-29 23:50:47 +00:00
Timo Sirainen
b40901efba When /SET colors is OFF, irssi displays all non-default background colors as reversed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2164 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-29 12:09:31 +00:00
Timo Sirainen
8028f969fe didn't work properly with scripts calling Irssi::printformat()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2157 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-27 20:21:56 +00:00
Timo Sirainen
dd408a959d /SET term_force_colors was broken.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2154 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-27 13:05:16 +00:00
Timo Sirainen
9db0c7cc7d --more-- statusbar item didn't work properly with split windows. Also
changed it's settings in non-active window to be the same as in active
window (right aligned)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2147 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 16:35:11 +00:00
Timo Sirainen
7dfb10b29e set only non-automatic windows sticky so that the windows irssi creates at
startup wont get sticky. also the check if split window was empty was wrong.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2135 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 21:42:56 +00:00
Timo Sirainen
2416437eb8 /SET colors OFF should work even if /SET term_force_colors is ON
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2131 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 20:44:17 +00:00
Timo Sirainen
615efbcc79 /WINDOW STICK <ref#> OFF didn't work.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2126 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 03:38:53 +00:00
Timo Sirainen
ffe3f5788f When creating hidden windows in sticky split windows, they should go to the
active split window, not to some other non-sticky window..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2125 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 03:35:23 +00:00
Timo Sirainen
275c04a6aa Irssi didn't redraw the screen properly when split windows were created but
were never set active.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2119 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 02:43:43 +00:00
Timo Sirainen
e0841d15a2 /UPGRADE now saves the session, disconnects the servers so that the socket
isn't closed but irssi thinks its disconnected, then it quits irssi, and as
the last command executes the new irssi. This way we get clean
deinitialization so irssi can close log files, destroy scripts, etc.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2114 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 01:47:29 +00:00
Timo Sirainen
04275a632e Specified "cleft" and "cright" for ctrl-left/right keys. Added xterm's
keycodes for them.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2111 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 23:57:29 +00:00
Timo Sirainen
964cb3c384 Rewrote lag statusbar item. It's now updated properly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2102 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 22:21:57 +00:00
Timo Sirainen
0ffcbdc9b4 Removed memory debugging code. It's a lot easier to check for buffer
overflows with electric fence and memory leaks with memprof.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2095 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 20:30:19 +00:00
Timo Sirainen
04bb4bbf39 moved the dirty_check() before fe_common_core_finish_init() so that if
~/.irssi/startup file does something that wants to change the prompt it
would work..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2089 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 17:31:33 +00:00
Timo Sirainen
c710ca1d7e Redraw the screen before emitting "irssi init finished" signal, so we have
input entry created if someone wants to change prompt.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2087 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 16:57:19 +00:00
Timo Sirainen
d56ed85d91 With /SET window_auto_change ON, irssi might have crashed if input entry was
not visible at that time.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2085 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 15:59:55 +00:00
Timo Sirainen
0f865f87b9 Removed GLib error when doing /RELOAD.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2076 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 12:46:15 +00:00
Timo Sirainen
bbbb36cf19 /UPGRADE - upgrade-on-the-fly feature. Currently only moves the active
server connections to the new irssi process, but that should be enough to
never quit from IRC again :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2070 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 01:48:58 +00:00
Timo Sirainen
18bc86bfe7 --more-- works again, better than ever :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2066 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18 22:17:31 +00:00
Timo Sirainen
99120dc508 back to "Irssi didn't always remove the statusbar item from screen when it
should have." bug - this time with right-aligned items :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2065 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18 22:15:56 +00:00
Timo Sirainen
0be0cc8198 term_refresh(): Change the color to black after everything is done. It's
annoying when the color usually was left to the statusbar's color and when
ssh connection to irssi dropped, the terminal's background changed to blue..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2064 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18 22:09:02 +00:00
Timo Sirainen
1bc6c723ed typobugfix for previous commit.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2060 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18 18:16:14 +00:00
Timo Sirainen
b4f40ca9e0 Don't handle keypresses when there's no active entry in screen.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2059 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18 18:12:28 +00:00
Timo Sirainen
11b175d702 After calls to statusbar_item_register() and statusbar_item_unregister(),
the statusbars should be redrawn. This also fixes the crash at quit when
using statusbar perl scripts.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2058 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18 18:06:51 +00:00
Timo Sirainen
a1197a5c08 Fixed the "multiple space split" fix :) It was causing crashes, strange that
it worked in my tests..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2051 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18 14:28:04 +00:00
Timo Sirainen
5802ec5a34 Sometimes when changing from split window to another, irssi crashed/messed
up the screen. Happened mostly if the window layout was saved.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2047 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18 11:56:41 +00:00
Timo Sirainen
1a80491f81 If line was split from multiple spaces, irssi printed the spaces in the
beginning of the next line - which wasn't good if the next line was
statusbar..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2045 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-17 17:15:55 +00:00
Timo Sirainen
2f02302f45 Irssi didn't always remove the statusbar item from screen when it should
have.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2044 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-17 16:39:23 +00:00
Timo Sirainen
c2e2d606e6 Removed /SET term_scroll_fast - looks like il/dl commands work fine with
scrolling region at least in xterm and linux console, so it looks nice and
is fast.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2028 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-16 10:05:21 +00:00
Timo Sirainen
e54a819104 textbuffer_insert() didn't work properly when trying to add empty string.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2026 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 22:36:12 +00:00
Timo Sirainen
fee2ad09c9 The default color for line should be ATTR_RESET, not 0 (black).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2025 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 21:01:38 +00:00
Timo Sirainen
23fe491e84 /WINDOW DOWN and /WINDOW UP now cycle to highest/lowest window.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2024 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 20:49:12 +00:00
Timo Sirainen
fc91857029 Changed the escaping system - theme_format_expand_data()'s
EXPAND_FLAG_IGNORE_EMPTY now also checks if the argument is a $variable that
is empty. Statusbar now first expands the formats and after then expands
$variables. Should fix at least when trying to print #$$$ channel in
statusbar.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2023 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 20:02:15 +00:00
Timo Sirainen
cda63f03d4 When overriding default statusbars, don't forget the
type/placement/position/visible settings if they're not specified in new
statusbar config.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2022 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 18:57:31 +00:00
Timo Sirainen
39f9073586 Right-aligned statusbar items weren't positioned correctly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2021 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 18:44:58 +00:00
Timo Sirainen
c6302cd6e7 Lag checking fixes - should work fine again.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2016 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 13:47:51 +00:00
Timo Sirainen
4d771c54d9 /SET force_colors -> /SET term_force_colors. Added /SET term_scroll_fast
option to specify if we want to scroll with fastest method, or the cleanest
method. The default is cleanest and it looks best with xterm, with some
other terminals where line-by-line scroll is slow, you might want to use the
fast scrolling.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2015 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 00:52:35 +00:00
Timo Sirainen
0dafb7349a Scrolling should dirty the whole scrolling area, not just the new lines.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2014 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 00:32:30 +00:00
Timo Sirainen
7481fe606f Reset the terminal color before scrolling, so the scrolled area's background doesn't get non-black..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2000 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-13 13:01:09 +00:00
Timo Sirainen
e577b8a771 Closing last non-sticky window didn't destroy the split window.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1995 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-12 17:39:01 +00:00
Timo Sirainen
e261b422ec /WINDOW BALANCE was buggy sometimes - thanks to poptix for finding it :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1992 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-12 13:53:58 +00:00
Timo Sirainen
5014a941cb Prefer scrolling with n lines insert/remove to 1 line at a time scrolling
region.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1991 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-12 09:32:11 +00:00
Timo Sirainen
e16b2fa495 Removed statusbar-items.h
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1990 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-12 09:15:39 +00:00
Timo Sirainen
6a82e806b4 Moved $(GLIB_CFLAGS) after -I includes, to make sure our own .h files get before possibly identically named headers in the glib's include directory.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1975 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-05 14:48:03 +00:00
Timo Sirainen
d589ac85ce Still messing up with colors.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1972 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-04 21:47:37 +00:00
Timo Sirainen
3578cea258 Virtualized cursor movement and clearing to end of line. Now neither is done
unless really needed.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1966 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03 15:31:13 +00:00
Timo Sirainen
d4d72e5583 Don't clear the window before redrawing, it's faster to do it at the same
time window is being redrawn.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1965 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03 14:50:43 +00:00
Timo Sirainen
25b04419d4 Reset the color before clearing screen. Set the cursor invisible when moving
around in screen and set it visible again when it's in wanted position.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1964 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03 14:42:28 +00:00