1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00
Commit Graph

395 Commits

Author SHA1 Message Date
Timo Sirainen
69dccf4a67 When resizing terminal smaller, destroy some split windows if they don't fit
into screen otherwise. Also, irssi doesn't crash anymore or mess up the
screen even if terminal is resized to 1x1 size (not sure of 0x0, my terminal
doesn't resize that small, and maybe I shouldn't bother with it anyway :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1855 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 10:35:42 +00:00
Timo Sirainen
113486564f Fixed restoring split windows layout. Some other split window resizing fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1854 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 10:01:29 +00:00
Timo Sirainen
7d7b5e380e /LASTLOG -count option added. patch by dgl@dgl.cx
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1850 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-19 11:59:27 +00:00
Timo Sirainen
980bd19808 mainwindow_set_statusbar_lines() resized only active window - not all
windows in that main window.. This made screen mess up for example with
/RELOAD.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1844 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-15 20:18:34 +00:00
Timo Sirainen
53d5c92cf4 Fixed some memory leaks.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1837 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 14:14:54 +00:00
Timo Sirainen
2752599e7a fixed a minor memleak
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1836 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 13:45:27 +00:00
Timo Sirainen
8c7243f19c delete_previous_word and delete_next_word now deletes only until
non-alphanumeric character is found. added delete_to_next_space command.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1833 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 11:32:06 +00:00
Timo Sirainen
f86da8c0e5 Window-statusbars are created correctly with /RELOAD, some input line
fixes related to /RELOAD.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1831 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 11:17:13 +00:00
Timo Sirainen
1718083cf6 Resizing terminal works now properly, also sends "terminal resized" signal
now.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1830 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 10:45:00 +00:00
Timo Sirainen
85749b70bd Reversed text (^V) works again.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1828 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 10:14:32 +00:00
Timo Sirainen
b716b29cb7 fallback to sb_background in theme if no other statusbar background settings
were found.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1827 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 09:54:52 +00:00
Timo Sirainen
7e56ccba1e When active input line was destroyed, irssi didn't set active_entry to NULL.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1823 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-13 16:59:03 +00:00
Timo Sirainen
dbe49236d2 Configurable statusbar - see default config file (irssi.conf) for example
how to configure it. Added %> format which clears to end of line using the
current bg color. Added support for multiple input lines (just the core, not
used anywhere yet).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1821 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-13 16:11:13 +00:00
Timo Sirainen
3432f02a05 It's now possible to stop single character /BINDs from printing to input
line. Hiascii characters didn't work properly with /BIND.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1792 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-11 18:15:17 +00:00
Timo Sirainen
9dd057825b Disabled using idcok() which caused redrawing problems with netbsd.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1782 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-10 15:34:49 +00:00
Timo Sirainen
be6cf00ebb Restoring split windows layout didn't work properly (didn't I already commit
this days ago?)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1781 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-09 12:20:17 +00:00
Timo Sirainen
8e3005a1c1 /WINDOW MOVE UP|DOWN might have crashed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1780 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-09 12:12:28 +00:00
Timo Sirainen
cac1cbf2cf mainwindow_set_size() called mainwindow_shrink() improperly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1775 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-31 20:27:43 +00:00
Timo Sirainen
6597d2d1c6 Added command /RESIZE for resizing the terminal when SIGWINCH isn't supported.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1772 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-28 12:24:46 +00:00
Timo Sirainen
bdaeaa11cd /LASTLOG: start parameter wasn't handled correctly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1763 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-17 14:08:35 +00:00
Timo Sirainen
0d5e569195 Some internal changes how /SERVER command works. Added /SERVER PURGE
[<target>] command. The channel output is purged at /PART if the output
queue is larger than 10.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1759 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 13:19:06 +00:00
Timo Sirainen
3deb0a7b66 --more-- checker uses now "gui print text finished" signal. "gui " part was
missing from signal_remove("gui print text finished") in gui-printtext.c..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1752 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 01:19:34 +00:00
Timo Sirainen
285b33e992 /SET scroll ON - should the windows be scrolled by default when you're at
bottom. /WINDOW SCROLL ON|OFF|DEFAULT - Window specific scrolling behaviour,
also saved in windows layout.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1751 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 01:14:26 +00:00
Timo Sirainen
51b1d80fbe Removed trigraphs by adding "" in the middle.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1750 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 00:53:56 +00:00
Timo Sirainen
803d805016 Module loading updates - /LOAD shows now also the statically loaded modules.
You can't /LOAD the same module twice. Syntax changed to /LOAD <module>
[<submodule>], /UNLOAD <module> [<submodule>].

NOTE: all modules now need to call register_module() in their init()
function.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1748 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 00:41:59 +00:00
Timo Sirainen
08b9062028 textbuffer_view_remove_line() fixes (with a small kludge..)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1741 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-12 18:25:43 +00:00
Timo Sirainen
c54646cad9 "mail counter" signal is now sent when mail counter is updated in statusbar.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1728 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 20:12:38 +00:00
Timo Sirainen
c86333393c Changed signal / function names for /LAYOUT stuff. /LAYOUT RESET now resets
the split windows too.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1725 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 18:05:50 +00:00
Timo Sirainen
a8193b168a Never insert NUL characters to entry line (Ctrl-Space)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1723 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 16:39:27 +00:00
Timo Sirainen
d248a87497 one more extra cleanup for textbuffer_remove_all_lines()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1720 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 15:48:54 +00:00
Timo Sirainen
b9a83129fe Some extra cleanups for /SB CLEAR.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1719 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 15:43:07 +00:00
Timo Sirainen
a99458ebe5 /WINDOW BALANCE didn't work properly when topicbar was off. Added a few
comments to mainwindows.h


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1716 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 14:43:14 +00:00
Timo Sirainen
1db558b8ea Windows' parent weren't saved (but was restored..)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1711 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-07 15:16:26 +00:00
Timo Sirainen
45bb5c3cee Restoring layout for split windows works betters now. Some sticky window
changes/fixes. Renamed /WINDOW MOVE LEFT|RIGHT -> PREV|NEXT, added commands
/WINDOW MOVE UP|DOWN|LEFT|RIGHT. The new LEFT|RIGHT now moves the window
only inside split windows. mainwindows-save.c -> mainwindows-layout.c


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1710 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-07 12:41:10 +00:00
Timo Sirainen
f4e7b4a705 statusbar_item_redraw() didn't work properly with multiple split windows.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1704 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-04 02:31:36 +00:00
Timo Sirainen
80793ace1c /WINDOW STICK changes - If ref# is given and it's in another split window,
it's moved to the active split window - even if the window was already
sticky in the other one.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1702 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-03 23:39:35 +00:00
Timo Sirainen
ce0bd80b05 Added sticky window information to /WINDOW.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1701 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-03 22:54:08 +00:00
Timo Sirainen
6c2f9c685a --enable-perl* -> --with-perl*. Added a new libfe_perl which handles /SCRIPT
commands. /RUN -> /SCRIPT LOAD, /PERLFLUSH -> /SCRIPT FLUSH, /PERL ->
/SCRIPT EXEC. Added /SCRIPT UNLOAD, /SCRIPT LIST. Lots of cleanups.

filename_complete() has extra argument for "default directory" which is
searched if no path is given when completing.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1680 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-29 09:17:53 +00:00
Timo Sirainen
d06cd9ddbb Resize fixes. Now SIGWINCH only sets a flag that a resize check is needed.
Resizes are checked/done 2 times a second.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1671 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-29 02:25:55 +00:00
Timo Sirainen
6ec7e12967 Added a small sanity check - the condition should never happen, but it seems
to have happened with one guy.. perhaps something else had corrupted memory.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1665 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-29 01:14:25 +00:00
Timo Sirainen
581fc794b4 forgot to add textbuffer-reformat.h
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1634 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-16 16:10:12 +00:00
Timo Sirainen
7f9959274c /SB REDRAW functionality - not fully working yet.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1627 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-15 13:13:46 +00:00
Timo Sirainen
79d1d7089a Added --home and --config command line parameters to irssi to specify
locations for ~/.irssi and ~/.irssi/config


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1626 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-15 00:39:48 +00:00
Timo Sirainen
9eed52fa40 Replaced GList by adding prev/next pointers to LINE_REC. This should make
some things faster and take a bit less memory. Also fixed an evil memory
leak.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1611 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-12 21:44:01 +00:00
Timo Sirainen
aae1efa61a Moved screen_refresh_thaw() in initialization before the
fe_common_core_finish_init() so that if it prints something it gets printed
to screen immediately. Also doing it afterwards triggered some screen
updating bug and the printed lines were left blank until screen was
refreshed..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1599 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-29 23:24:52 +00:00
Timo Sirainen
7ffe6ace97 removed fe-perl
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1592 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-29 22:27:02 +00:00
Timo Sirainen
75543048b5 Added -v / --version command line option. Moved POPT_AUTOHELP option to
fe-common from fe-text.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1574 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-27 20:22:43 +00:00
Timo Sirainen
6362ab86f6 "print text finished" -> "gui print text finished". Added %[options] format
for printing text. The syntax for options is [+-]<option>[+-]<option>...
Currently supports options 't' = timestamp, 'T' = server tag, 's' =
line_start, 'S' = line_start_irssi. -s or -S means don't print the
line_start. For example %[-st+T] would never print line_start or timestamp
to line, but would always print server tag to line.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1569 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26 21:28:00 +00:00
Timo Sirainen
af4d6bebe3 Added $cumode expando which works like $P, but prints voices/halfops also.
Changed statusbar to use $cumode. Patch by fuchs.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1567 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26 19:27:26 +00:00
Timo Sirainen
8b733e0568 special-vars: added flag PARSE_FLAG_ESCAPE_THEME to escape { and } chars
with % char. Used this with statusbar items - now for example "{error xxx}"
topic won't print it with error color.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1564 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26 15:33:07 +00:00
Timo Sirainen
5ddb29fb33 if perl is compiled statically, initialize it after the "irssi init
finished" signal so for example ~/.irssi/startup is run before the perl
autorun scripts


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1557 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-21 07:10:25 +00:00
Timo Sirainen
f7e9649286 /SET scrollback_lines 0 now means unlimited.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1556 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-18 15:32:05 +00:00
Timo Sirainen
bd7cc25590 resizing empty windows didn't work properly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1539 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-04 21:58:47 +00:00
Timo Sirainen
af7c5fd221 bugfix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1536 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-02 12:35:25 +00:00
Timo Sirainen
05777636a7 Replaced all direct curses calls with screen_xx() wrappers. This should
enable us to optionally use termcap directly.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1535 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-01 21:49:07 +00:00
Timo Sirainen
6f5c1117de moved /SET ignore_signals to core.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1534 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-01 20:21:07 +00:00
Timo Sirainen
e403244a2d Resizing window destroyed curses window, but didn't update the view's curses
window which kept using the old one, and probably crashed soon.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1532 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-01 19:12:07 +00:00
Timo Sirainen
3f0e76d516 more #endif WANT_BIG5 -> #endif changes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1531 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-01 18:49:32 +00:00
Timo Sirainen
62aa12c411 s/newline/new_line/ - AIX curses (or something) seems to use #define
newline for something


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1528 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-01 17:48:41 +00:00
Timo Sirainen
3d370cd3e0 Removed gccism: #endif WANT_BIG5 -> #endif
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1527 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-01 17:45:36 +00:00
Timo Sirainen
3bc5752be6 Split window fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1523 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-31 10:51:21 +00:00
Timo Sirainen
39d54da896 added missing ')' from last patch :) and now /last 0<number> (eg. /last 050)
also isn't treated as counter.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1522 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-30 14:45:31 +00:00
Timo Sirainen
0f62f9c21c /LAST <number> <non-number> (eg. /last 5 -) should treat the number as text,
not as count parameter. This way you don't have to type "/last 5 - -" if you
want to search for string "5" from lastlog.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1521 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-30 14:41:01 +00:00
Timo Sirainen
62dc0e36eb scrolling in empty windows crashed
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1511 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-21 23:50:13 +00:00
Timo Sirainen
d9bf6afc0a removing line from the top of the screen crashed irssi
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1507 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-21 22:45:49 +00:00
Timo Sirainen
c7d4b81069 Split windows created with /WINDOW SHOW are now sticky if
/SET autostick_split_windows is ON.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1506 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-18 14:54:02 +00:00
Timo Sirainen
2338954e8a textbuffer_view_redraw() - call werase() before drawing anything, this
hopefully helps with some buggy curseses.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1505 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-17 21:01:00 +00:00
Timo Sirainen
a914b60689 don't crash with /WINDOW HIDE
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1504 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-17 20:52:43 +00:00
Timo Sirainen
c2b2d45bd6 Getting rid of gettext, moved some _(..) texts to themes and left some error
messages hard coded.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1503 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-17 20:13:59 +00:00
Timo Sirainen
a88cd53ea5 raw() mode also disabled SIGINT == ^C, so remove the 5x^C = SIGTERM.
Also use sigaction() instead of signal() with /SET ignore_signals.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1500 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-17 11:47:21 +00:00
Timo Sirainen
31499f142c cbreak() -> raw() - this fixes at least the Ctrl-4 abort.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1499 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-17 11:24:33 +00:00
Timo Sirainen
af08857261 KEY_RESIZE isn't defined in all curseses, #ifdef it
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1498 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-17 11:13:06 +00:00
Timo Sirainen
f89d89b0e7 statusbar was a bit broken when using split windows
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1487 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-11 17:35:38 +00:00
Timo Sirainen
e3805b63a5 Line removing fixes, /LAST -clear fixed
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1477 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-11 14:12:21 +00:00
Timo Sirainen
4e06d50255 updated /BIND help, removed special_char bind command and added insert_text.
It can be used to add text to entry line, $variables also works with it (eg.
/BIND ^T /TOPIC $topic)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1476 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-11 13:44:23 +00:00
Timo Sirainen
912cf63c07 resizing terminal with /CLEARed empty windows scrolled those windows so that
the last screenful of text was visible again.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1474 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-11 13:08:47 +00:00
Timo Sirainen
1cc3891821 KEY_RESIZE is sent when screen is resized, ignore it.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1473 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-11 13:01:46 +00:00
Timo Sirainen
711c17b746 keyboard handling rewrite
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1462 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-06 19:28:15 +00:00
Timo Sirainen
6d4f2ab6fa --with-big5 enables Chinese Big5 charset support. Patch by vanilla@freebsd.org
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1458 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-01 09:38:06 +00:00
Timo Sirainen
a321ad0150 /SET indent_always - should we indent the long words that are forcibly
wrapped to next line. Default is ON.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1456 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-22 23:20:42 +00:00
Timo Sirainen
cb4ce9f1b2 potential crash fix..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1451 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-20 17:35:29 +00:00
Timo Sirainen
7acb8fa027 added/removed some checks
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1450 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-16 16:46:34 +00:00
Timo Sirainen
26312fae9a split windows were broken. added some checks to textbuffer.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1449 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-16 16:44:10 +00:00
Timo Sirainen
8405520f5b resize fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1446 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-14 23:44:31 +00:00
Timo Sirainen
529e204139 some resize problems fixed
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1445 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-14 23:24:19 +00:00
Timo Sirainen
5d5b9cbc28 bugfixes for multiple windows support :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1443 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-14 22:40:45 +00:00
Timo Sirainen
adb7eced39 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
2001-04-14 22:24:56 +00:00
Timo Sirainen
86f5d9c0b4 removed unused colors
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1436 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-01 01:39:28 +00:00
Timo Sirainen
e9b4833c48 gui_window_line2text(): don't keep track of colors - if fg or bg doesn't
change, just use FORMAT_COLOR_NOCHANGE instead of figuring out what it
should be.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1435 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-01 00:31:02 +00:00
Timo Sirainen
4b5803d6d7 removed some unused includes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1434 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-01 00:25:47 +00:00
Timo Sirainen
d9008ae249 %F = blinking on/off. several fixes to make blinking work better. some
hilight fixes.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1403 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-17 02:32:32 +00:00
Timo Sirainen
c3da7fa8ab Hilighting updates. /HILIGHT -color, /SET hilight_color and /SET
hilight_act_color now use %codes for specifying color.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1402 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-17 01:52:43 +00:00
Timo Sirainen
aa4a4d4072 Added some debug messages..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1401 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-17 00:55:47 +00:00
Timo Sirainen
9e1cbb2637 Text buffer: Saving pointer to char[] didn't work correctly with
netbsd/alpha which caused crash soon after startup. Changed the code a bit,
I'm not sure if it's still correct ANSI C but at least it seems to work fine
with netbsd/alpha now :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1397 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-15 22:33:58 +00:00
Timo Sirainen
99e7b28eef minor cleanup
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1388 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-15 02:48:04 +00:00
Timo Sirainen
dcb652bc4d when some statusbar item was forced to be removed because of lack of space,
it still used 2 chars.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1387 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-15 02:31:36 +00:00
Timo Sirainen
87777968c3 Beginnings of configurable statusbar. The existing items can be configured
in default.theme.

If some abstract isn't set in theme, it fallbacks to the one in
default.theme now. This should help with old themes, and maybe themes
that don't change something should just keep those parts commented out..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1386 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-15 02:26:12 +00:00
Timo Sirainen
1d453ed92c %n+bg color change doesn't anymore set foreground black. changed theme's
default_bold_color to default_real_color.

Activity list printed first item with white always. Color redrawed itself
every second.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1381 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-12 19:43:32 +00:00
Timo Sirainen
4d5da596c9 Statusbar rewrites. Colors are currently not configurable at all, but other
than that, it should work better.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1379 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-12 10:33:13 +00:00
Timo Sirainen
2968d45f82 /SET scroll_page_count - don't crash if /0 is given. Works now properly
if /0.xx is given.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1364 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-08 00:27:40 +00:00
Timo Sirainen
9f28d16456 /LASTLOG -window unknown crashed irssi
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1360 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-07 23:55:54 +00:00
Timo Sirainen
5f0b432beb "command window prev" -> "command window previous"
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1348 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-04 08:10:45 +00:00
Timo Sirainen
f56ddd872a /SET autostick_split_windows (default ON) - should we do /WINDOW STICK
ON to all new split windows and hidden windows that are created inside
it. This hopefully makes it easier to use split windows.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1344 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-04 05:46:09 +00:00
Timo Sirainen
24e36e0081 More statusbar size fixes. Shouldn't corrupt entry line anymore.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1343 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-04 03:52:17 +00:00
Timo Sirainen
a1842e6baa Statusbar could have gotten to endless loop trying to grow size of some
item when there was no space left.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1342 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-04 03:35:12 +00:00
Timo Sirainen
160da45261 /WINDOW SHOW didn't work properly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1335 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-04 02:26:35 +00:00
Timo Sirainen
d4558de232 /SET prompt - if target had %c or something in it, it shouldn't be
treated as color code. So color codes can now be used in /SET prompt
string itself, but in none of the $variables it uses.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1324 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03 21:34:06 +00:00
Timo Sirainen
fcd8810b6c Removed all beep handling from text printing. If you want to beep just
send "beep" signal.

/LAST -clear crashed if window contained only lastlog lines. Some other
minor cleanups.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1312 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03 18:22:09 +00:00
Timo Sirainen
88094fa9f2 delete_next_word key implemented, patch by Tinuk
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1311 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03 18:04:10 +00:00
Timo Sirainen
95c17bafc4 /LASTLOG: -case option for case-sensitive matches. -force option is now
required to print lastlogs longer than 1000 lines.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1310 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03 17:45:35 +00:00
Timo Sirainen
64e52b7e26 /WINDOW STICKY -> /WINDOW STICK
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1300 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-27 08:00:45 +00:00
Timo Sirainen
a04a1c6f21 Entry line works now properly with very long prompts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1277 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-21 19:00:07 +00:00
Timo Sirainen
4718edf055 added format_get_length() for getting length of text part in a format
string. gui_printtext() now works like printtext_string() so %s won't
accidentally crash it. /SET prompt can now have %formats.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1273 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-21 04:21:15 +00:00
Timo Sirainen
c3cebfd93d Instead of directly calling beep(), send "beep" signal which default
behaviour is to call beep()


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1262 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-19 14:55:42 +00:00
Timo Sirainen
2e1466d210 /LASTLOG syntax updated
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1256 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-19 06:27:24 +00:00
Timo Sirainen
6b4a838813 Moved /LASTLOG handling to lastlog.c. Added options -file <filename>
for writing lastlog to file, -window <ref#|name> for specifying which
window's lastlog to print (output is always to active window) and
-clear option to remove all lastlog lines from window.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1255 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-19 06:23:04 +00:00
Timo Sirainen
f453e84436 /NETSPLIT prints nicks now sorted and prints @ or + before channel if
user was opped/voiced before split.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1251 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-19 04:33:39 +00:00
Timo Sirainen
c1c7674ae2 Highlight colors can now have background color set with fg,bg. Works
with activity list too, useful for example blinking.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1249 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-19 03:25:24 +00:00
Timo Sirainen
1117638b52 Moved autoconnects and command line parameter parsing from irc to core.
Added not_initialized parameter to chat protocols that are created
using chat_protocol_get_unknown(). /CONNECT doesn't crash now with
non-initialized protocols but instead complains about them.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1248 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-19 02:50:08 +00:00
Timo Sirainen
5807efc587 more static perl fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1232 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-17 11:05:29 +00:00
Timo Sirainen
abe4ddb52a /LOAD module tries to load "module_core" instead. If it wasn't found,
it fallbacks to "module" again. If it is found, it tries to load several
other modules too, like irc_module, fe_module and fe_irc_module.

Split perl module to perl_core and fe_perl. Removed "_common" from some
fe_common modules.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1228 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-17 10:35:35 +00:00
Timo Sirainen
355e7dd841 theme->default_color is now used again, added default_bold_color which
is used with default bolds since A_NORMAL|A_BOLD doesn't seem to do
anything with curses..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1206 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-10 10:19:47 +00:00
Timo Sirainen
5ab27ea604 /SAVEWINDOWS saves now split windows
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1202 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-10 07:26:54 +00:00
Timo Sirainen
5061783f4c added descriptions for left_window and right_window
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1200 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-10 05:34:46 +00:00
Timo Sirainen
0de0499fd8 /WINDOW STICK [ON|OFF|<ref#>] - stick window to specified main window.
After setting window to sticky non-sticky windows can't replace the
active sticky one. Each main window can have it's own sticky window
group.

/WINDOW LEFT, /WINDOW RIGHT - Go to previous/next window in the current
sticky window group, or if there's no sticky windows go to
previous/next non-sticky window. Alt-Left/Right keys default to these
commands now.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1198 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-10 04:43:21 +00:00
Timo Sirainen
3f113f51b9 make deinitialization between screen_refresh_freeze() and
screen_refresh_thaw() so screen won't get redrawn needlessly


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1184 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-05 01:06:42 +00:00
Timo Sirainen
e2acaaa067 Added gui_printtext() function for printing text in printtext() format
to screen in specified position.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1182 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-03 19:29:38 +00:00
Timo Sirainen
b24243e45a /SB STATUS: for debugging mostly, displays number of lines and used kBs
of memory per window and totally


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1173 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-31 20:11:47 +00:00
Timo Sirainen
2a31ecaa32 Ugly quick hack to make act: never disappear but print as much activity
to statusbar as fits.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1172 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-31 11:23:29 +00:00
Timo Sirainen
4339c9a7ed WINDOW_REC: added width and height variables
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1161 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-28 15:44:29 +00:00
Timo Sirainen
96512a3d6a /SB END: Don't do anything when already at the bottom (it was broken if
there was empty space at bottom)

Horizontal resizing now keeps window position. Also some fixes to
vertical resizing.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1156 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-28 09:16:22 +00:00
Timo Sirainen
1157ed5800 mainwindows_recreate() should be declared always
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1136 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-18 02:58:16 +00:00
Timo Sirainen
ae2bb54a42 screen resizing fixes when resizeterm() isn't supported
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1123 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-15 22:47:51 +00:00
Timo Sirainen
0807bafbe8 no, bugfix done wrong :) reversed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1122 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-15 22:25:49 +00:00
Timo Sirainen
24dd6d0917 Compiling with --disable-curses-windows was broken
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1121 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-15 22:20:30 +00:00
Timo Sirainen
a5d88f4db1 #undef some things term.h #defines that break irssi
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1120 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-15 22:18:09 +00:00
Timo Sirainen
1698500f80 $[.10]var truncates the var to 10 chars, but doesn't pad if var is
shorter than 10 chars


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1105 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-12 17:05:05 +00:00
Timo Sirainen
1a3c700838 Some signed/unsigned warnings removed. Don't call fe_exec_init/deinit in win32
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1104 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-11 10:15:34 +00:00
Timo Sirainen
c5832fdc56 Fixed, added comment what it does so I wouldn't forget again :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1099 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-09 21:29:00 +00:00
Timo Sirainen
d256f71a00 Highlighting cleanups. Added /HILIGHT -priority option.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1098 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-09 21:06:45 +00:00
Timo Sirainen
1de2aade40 In core/module-formats.h: IRCTXT_ -> TXT_
Added "message irc ctcp" signal to print CTCPs


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1094 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-07 19:42:59 +00:00
Timo Sirainen
64dcb756b6 /BIND comment updates
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1069 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-05 07:22:58 +00:00
Timo Sirainen
59d46dcadf MIRC colors >=16 changed to work as in MIRC (color %= 16)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1066 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-04 19:20:09 +00:00
Timo Sirainen
596ef586b2 Added keyboard_entry_redirect() function to keyboard.[ch] which sends
the signal "gui entry redirect" signal. Added possibility to keep the
entry hidden.

/OPER [<nick> [<password>]] - syntax changed. If password isn't given,
it's asked.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1063 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-04 18:01:51 +00:00
Timo Sirainen
4a33801669 Added/moved several "typedef struct _XXX XXX;" to common.h so that
they're known to all files and I don't need those stupid "void *xxx"
anymore just to avoid useless #include. Header files themselves don't
either include others as often anymore.

Added channel->ownnick to point to our NICK_REC in channel's nicks.
Gives a minor speedup in few places :)

Moved completion specific lastmsgs from channel/server core records to
fe-common/core specific records. Also changed the nick completion logic
a bit so it should work better now. Removed
completion_keep_publics_count setting, but changed the meaning of
completion_keep_publics to same as _count was before. Nick completion
doesn't have any time specific code anymore.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1034 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-01 07:45:54 +00:00
Timo Sirainen
d130d80696 bugfix for displaying 128-160 ascii chars.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1010 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-18 19:24:21 +00:00
Timo Sirainen
bbc33bff5e /SET prompt, /SET prompt_window - Specifies the text in prompt.
'prompt' is used when channel or query is active in window and
'prompt_window' is used with empty windows.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1005 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17 07:39:22 +00:00
Timo Sirainen
aac80846b8 Settings are now stored in module-specific blocks. Irssi complains
about all unknown settings that are found inside those blocks.

Left backwards compatibility kludge which should be removed in 0.7.98.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1004 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17 05:44:45 +00:00
Timo Sirainen
fc491c5f8d Some minor query fixes. Nick changes are also detected by checking if
query with another nick from same address if found.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@999 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17 02:20:22 +00:00
Timo Sirainen
346808789c net_gethostbyname_nonblock(): don't crash if net_gethosterror() returns
error message as NULL.

Initialize winsock with win32.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@966 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-05 19:43:12 +00:00