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

993 Commits

Author SHA1 Message Date
Emanuele Giaquinta
770c906a1c Simplify.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4954 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-08 16:32:56 +00:00
Emanuele Giaquinta
43bed5bb09 Simplify and remove dead code.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4949 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-07 15:49:04 +00:00
Emanuele Giaquinta
04a028d8c9 Simplify and remove dead code, MAIN_WINDOW_TEXT_HEIGHT(rec) >= WINDOW_MIN_SIZE
always holds.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4948 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-06 17:02:27 +00:00
Emanuele Giaquinta
fe9b63ef65 Always preserve the active mainwindow in mainwindows_resize_smaller,
prompted by report by Henri Kemppainen.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4947 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-06 12:36:41 +00:00
Emanuele Giaquinta
a644a200c1 Fix leak introduced in r1855.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4946 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-06 12:29:51 +00:00
Emanuele Giaquinta
14b9462ae4 Factor computation of fg/bg.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4943 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-05 13:55:23 +00:00
Emanuele Giaquinta
6c0463fbf7 Manually inline cell_width.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4942 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-03 20:14:58 +00:00
Emanuele Giaquinta
a266ce8d97 Simplify.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4941 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-03 19:09:54 +00:00
Emanuele Giaquinta
3f9148d0e3 Add function to set minimum/maximum size for a statusbar item.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4936 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-01 18:18:59 +00:00
Emanuele Giaquinta
545b0d5de8 Add public header with interfaces to manage statusbar items, bug #535.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4935 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-01 18:12:52 +00:00
Emanuele Giaquinta
227e90e52b Simplify statusbar_item_default_handler by merging update_statusbar_bg and
reverse_controls and by using a GString.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4934 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-30 23:14:43 +00:00
Emanuele Giaquinta
da86080d40 Move check on term_type outside of strlen_big5.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4917 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-18 09:59:54 +00:00
Emanuele Giaquinta
ba002bbc13 Revert r4912.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4916 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-18 09:21:36 +00:00
Emanuele Giaquinta
ca5f4ec1f9 Simplify sending of the first pasted line.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4912 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-16 09:19:27 +00:00
Wouter Coekaerts
f5d38ab5a2 Handle indent in textbuffer_line2text. This fixes indentation in /lastlog and buf.pl.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4910 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-15 22:04:57 +00:00
Emanuele Giaquinta
621761cff3 Handle bold/blink attributes like other attributes rather than mapping them to
the eighth bit of the color. The formats KBGCRMYW and the mirc colors are now
mapped to colors 8-15. fe-text translates colors 8-15 to bold/blink+0-7 if the
terminal supports only 8 colors.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4909 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-15 21:51:07 +00:00
Emanuele Giaquinta
7b529aa530 Remove get_utf8_char/utf16_char_to_utf8 in favour of glib
g_utf8_get_char_validated/g_unichar_to_utf8.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4893 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-10 11:59:31 +00:00
Jilles Tjoelker
aa39fba88d Remove the refcount on LINE_REC.
It seems to have no clear purpose.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4879 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-01 17:56:56 +00:00
Jilles Tjoelker
875adf35a0 Fix a memory leak with /lastlog -count and rejected (too much) /lastlog.
The matched lines would not be freed when they expired
from the buffer.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4878 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-10-31 10:57:32 +00:00
Emanuele Giaquinta
86a5e8085a Remove scrollback_levelclear_levels setting and add a 'level' option to
'sb levelclear' to specify a comma separated list of levels.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4876 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-10-21 11:09:51 +00:00
Emanuele Giaquinta
5e4c08d8a1 Fix r4743 change, avoid sign extension.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4875 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-10-08 22:58:27 +00:00
Jilles Tjoelker
3540d21ee1 Include various overheads in /sb status memory count.
Overheads caused by the "view" cache are not included.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4864 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-06-19 21:57:52 +00:00
Emanuele Giaquinta
f84a7d9e2b Add 'actlist_names' option to add active items names in 'act' statusbar item.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4860 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-06-10 10:21:00 +00:00
Jilles Tjoelker
278dfd7f76 Reduce some memory waste in the scrollback buffer.
Formerly, TEXT_CHUNK_REC was slightly more than a page.
Due to glib changes (GMemChunk -> GSlice), this is now
malloced directly, and many mallocs round up allocations
larger than a page to page boundaries.
On a whole this seems to save about 10%.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4853 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-30 23:17:37 +00:00
Emanuele Giaquinta
a01f13202f Fix leak.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4851 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-27 18:19:34 +00:00
Wouter Coekaerts
f9376ec8e7 Improve descriptions of key bind items
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4834 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-18 20:49:20 +00:00
Emanuele Giaquinta
548e5115bb Add 'word_completion_backward' command to scroll backwards in the completion
list, bug #313.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4830 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-17 13:12:21 +00:00
Emanuele Giaquinta
37b8c55640 Use a GString rather than g_strdup_printf to build the format string.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4826 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-15 16:54:01 +00:00
Emanuele Giaquinta
aa002fa78c Re-add sort by level / aux-sort by refnum and re-map actlist_sort
'level' value to it. Add 'level,recent' value for sort by level /
aux-sort by most recent activity. Requested by tomaw.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4824 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-15 10:54:03 +00:00
Emanuele Giaquinta
764f311a8b Use g_get_charset to check if the locale codeset is UTF-8.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4822 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-14 09:11:31 +00:00
Emanuele Giaquinta
cad6fb2e19 Refactor code to create a watcher for an fd into a function.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4813 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-25 08:42:47 +00:00
Emanuele Giaquinta
e88bd31323 Use term_add_unichar to print ucs-4 chars.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4812 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-21 20:44:04 +00:00
Emanuele Giaquinta
83ad9855e7 Reindent.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4811 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-21 20:23:17 +00:00
Emanuele Giaquinta
a6090c7f8f Remove no longer needed kludge to inhibit writing in the last cell.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4810 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-21 17:32:55 +00:00
Emanuele Giaquinta
951a0de704 Fix leak with $L expando.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4809 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-21 14:00:02 +00:00
Emanuele Giaquinta
eb6ee3136f Simplify.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4808 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-20 10:27:32 +00:00
Emanuele Giaquinta
0957ac5dfe Simplify computation of TERM_REC fields offsets using G_STRUCT_OFFSET/G_STRUCT_MEMBER_P.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4807 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-20 09:24:12 +00:00
Emanuele Giaquinta
7bd938542e Remove non-working detach/attach code.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4806 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-19 15:01:16 +00:00
Emanuele Giaquinta
e361d2f498 Remove the need to buffer input by moving the 'gui key pressed' events
generation into term_gets.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4805 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-16 21:14:05 +00:00
Emanuele Giaquinta
77dd63ac83 Make last_{fg,bg,flags} members of TEXT_BUFFER_REC.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4804 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-16 20:32:36 +00:00
Emanuele Giaquinta
b2c8ba134b Slightly optimize update of activity list when a window is destroyed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4801 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-06 19:19:46 +00:00
Emanuele Giaquinta
2e78cb54e0 Really make actlist_sort = level match active_window ordering.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4800 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-06 19:07:38 +00:00
Emanuele Giaquinta
c280030608 Restore the behaviour of active_window to go to the window with most recent activity
between the ones with highest data level, and make actlist_sort = level match this 
ordering.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4798 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-05 14:09:01 +00:00
Emanuele Giaquinta
2f13aacf43 Change type of 'chr' argument in terminfo_repeat/term_addch to 'char'.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4795 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-04 08:41:44 +00:00
Emanuele Giaquinta
d39d949b79 Print warning messages to stderr rather than to stdout.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4793 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-31 21:55:12 +00:00
Emanuele Giaquinta
3dcfe43579 Move selection of string searching function out of the loop by using a
function pointer.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4777 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-28 12:42:27 +00:00
Emanuele Giaquinta
e1713c17cb After last change paste_entry includes the key before the one
that begins the pasting, so do not add the same key to paste_buffer,
otherwise it will show up twice.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4760 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-12 09:59:35 +00:00
Emanuele Giaquinta
da232b18c1 Make line_add_colors part of the textbuffer api.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4748 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-10 12:05:43 +00:00
Emanuele Giaquinta
a3526caf41 Make a copy of the entry buffer only when a paste begins rather than
everytime a key is pressed.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4747 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-10 09:48:02 +00:00
Emanuele Giaquinta
02a10e4f9c Do not buffer keys when waiting for paste confirmation.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4746 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09 23:57:28 +00:00
Emanuele Giaquinta
37381fe1bc Simplify history handling in key_send_line.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4745 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09 23:03:45 +00:00
Emanuele Giaquinta
ef47cde2b9 Rename variable.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4744 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09 18:16:50 +00:00
Emanuele Giaquinta
b5fe742ace Replace usage of get_utf8_char with g_utf8_get_char_validated and
factor the corresponding code into a function.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4743 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09 18:08:40 +00:00
Emanuele Giaquinta
fee983d9fc Replace usage of get_utf8_char with g_utf8_get_char_validated.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4742 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09 16:41:20 +00:00
Emanuele Giaquinta
72930e0be3 Use g_ascii_str{,n}casecmp for case insensitive comparison with
ascii only strings.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4739 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09 12:17:55 +00:00
Emanuele Giaquinta
7df46597e1 Use g_ascii_str{,n}casecmp for case insensitive comparison with
ascii only strings.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4738 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09 12:01:16 +00:00
Emanuele Giaquinta
f93befe282 g_mem_set_vtable must be called before using any other GLib functions.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4734 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-07 15:11:24 +00:00
Emanuele Giaquinta
1ea1c6f813 Remove check for ancient default.theme.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4707 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-02-05 01:15:38 +00:00
Emanuele Giaquinta
ab8da71d29 Remove popt and use glib GOption commandline option parser
(glib-2.6 is now the minimum required version).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4700 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-02-03 16:48:02 +00:00
Emanuele Giaquinta
c403b70de4 Remove broken by design /set translation.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4698 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-02-02 18:36:57 +00:00
Emanuele Giaquinta
2d417002bb Remove term-curses.h (was added for cuix).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4695 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-02-02 10:13:42 +00:00
Emanuele Giaquinta
036b1d3300 Reset colors and attributes on newline.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4694 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-02-01 16:02:56 +00:00
Emanuele Giaquinta
2fbde1a24e Properly initialize and reset last_{fg,bg}.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4693 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-01-28 11:07:11 +00:00
Emanuele Giaquinta
e13216adf7 Update the terminfo backend to query the 'colors' capability and support more
than 16 colors (sync from icecap).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4687 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-01-25 11:20:40 +00:00
Emanuele Giaquinta
3e5ad97676 Do not assume that bit 0x80 enables blink, rather call set_blink when
blink is requested.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4686 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-01-24 13:39:17 +00:00
Emanuele Giaquinta
fab544bdbe Add function to set blink to the terminfo backend.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4685 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-01-24 09:47:08 +00:00
Emanuele Giaquinta
ac006c3442 Remove empty function.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4684 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-01-24 09:40:10 +00:00
Emanuele Giaquinta
3edcc7a611 Reindent.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4675 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-01-21 15:44:05 +00:00
Emanuele Giaquinta
b9a26388b5 Simplify.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4674 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-01-21 15:41:12 +00:00
Emanuele Giaquinta
3c7c3941d7 Remove .cvsignore files.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4672 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-01-21 11:49:10 +00:00
Emanuele Giaquinta
7b08caa814 Remove unneeded resets of paste_keycount (check_pasting will reset it
at the next call).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4670 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-01-21 11:06:46 +00:00
Emanuele Giaquinta
f7856f2071 Move code to insert paste prompt into its own function.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4669 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-01-21 10:50:50 +00:00
Emanuele Giaquinta
6331ffdc2b Revert r2471, having the erase commands clear the cutbuffer when the
line is empty is annoying and not useful.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4667 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-12-12 12:35:14 +00:00
Emanuele Giaquinta
fee12d7e84 Remove gettext leftover.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4652 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-12-05 14:29:08 +00:00
Emanuele Giaquinta
1d74d1e21f Reindent.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4651 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-12-05 13:06:55 +00:00
Geert Hauwaerts
4f03840ba8 Fix broken URI.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4612 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-10-11 16:02:27 +00:00
Jilles Tjoelker
c5b4e72382 Make alt/meta+arrow keys work in recent versions of xterm.
Bug #496


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4603 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-08-24 17:13:21 +00:00
Wouter Coekaerts
f5793daed5 Make /LASTLOG -after/-before work without text to match
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4601 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-08-22 19:31:47 +00:00
Emanuele Giaquinta
de4c2af324 Use autoconf PACKAGE_TARNAME/PACKAGE_VERSION macros rather than automake
PACKAGE/VERSION ones.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4597 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-08-07 14:55:14 +00:00
Emanuele Giaquinta
e55d0a862c Change 'actlist_moves' boolean to 'actlist_sort' string which specifies the
sorting type to use for the activity bar:
- refnum (default)
- recent (same as actlist_moves on)
- level (sort by window level, same ordering used by active_window command)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4583 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-07-26 13:53:22 +00:00
Jilles Tjoelker
3f84c9d19d /lastlog -file: use stdio instead of two write(2) calls per line
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4573 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-07-06 21:54:32 +00:00
Emanuele Giaquinta
566f6d24be Do not require that a line matches the input level to add it to the
'after' context, so that '/lastlog -hilight -after 10 foo' has the same
semantic as '/lastlog -hilight -before 10 foo'.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4570 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-06-28 22:50:58 +00:00
Emanuele Giaquinta
bc45b39030 Do not compile the regexp if the input string is empty.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4569 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-06-28 18:29:03 +00:00
Emanuele Giaquinta
b67f641ac1 Remove cuix from trunk.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4560 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-06-17 14:40:13 +00:00
Emanuele Giaquinta
5bcafebbd4 Assume width 1 for control characters in places where a non-negative width is
expected.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4535 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-31 13:56:35 +00:00
Emanuele Giaquinta
d3687d8a97 Rename IS_PRINTABLE macro to unichar_isprint and move it to utf8.h.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4534 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-31 13:19:05 +00:00
Emanuele Giaquinta
b05e103ad9 Cleanup and optimize a bit sig_statusbar_activity_hilight.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4531 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-30 21:17:59 +00:00
Emanuele Giaquinta
4f98e29bab Make word commands unicode friendly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4522 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-25 23:21:38 +00:00
Emanuele Giaquinta
8a9da9cf2d Add function to delete the whole cell under the cursor and use it for
delete_character.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4521 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-25 22:21:39 +00:00
Emanuele Giaquinta
ceea629e3e Move the cursor cell-wise in utf8.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4520 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-25 22:13:24 +00:00
Emanuele Giaquinta
a429e2bf23 Forbid insertion of a character with width 0 as the first character in
the prompt.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4519 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-25 22:06:32 +00:00
Emanuele Giaquinta
a8741bd799 Replace utf8_width with Markus Kuhn's wcwidth.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4518 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-25 21:56:30 +00:00
Emanuele Giaquinta
24bf34c6ca Move 'version' option in main.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4511 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-24 00:44:29 +00:00
Emanuele Giaquinta
841cd8d0cf Cleanup option handling.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4510 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-24 00:25:36 +00:00
Wouter Coekaerts
9c2d621cc6 Oops. Update address correctly now.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4490 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08 18:41:10 +00:00
Wouter Coekaerts
023026e12b Update FSF address
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4489 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08 18:16:58 +00:00
Emanuele Giaquinta
56902320b4 Revert, do not use IS_PRINTABLE in reverse_controls.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4475 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-03 21:37:43 +00:00
Emanuele Giaquinta
7c84b6fc2e Add common IS_PRINTABLE macro.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4474 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-03 15:49:19 +00:00
Emanuele Giaquinta
83c178c169 Increment paste_keycount when the key before the one that starts a
possible pasting is not a '\r' or '\n'.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4467 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-28 11:45:34 +00:00
Emanuele Giaquinta
39d15501c8 Ignore empty lines when pasting.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4466 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-28 10:55:57 +00:00
Emanuele Giaquinta
2f86e39e84 When sending a line as non-pasted reset also paste_entry, bug #405.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4465 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-28 10:52:11 +00:00
Emanuele Giaquinta
08340b72be Fix typos.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4457 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-19 08:21:51 +00:00
Emanuele Giaquinta
ac4bbd4a22 Reindent.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4450 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-14 20:26:22 +00:00
Emanuele Giaquinta
e2cc91c19a Modify gui_entry_draw_from to clear to end of line only if it has not
written till the last column.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4449 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-14 20:20:37 +00:00
Emanuele Giaquinta
ace371b2a3 Revert r4352.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4444 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-14 11:09:37 +00:00
Emanuele Giaquinta
01a2e609ab Bind also CSI 1 ; 5 D to key cleft and CSI 1 ; 5 C to key cright.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4440 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-07 14:57:58 +00:00
Emanuele Giaquinta
00df474df4 Remove unused gettext code.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4438 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-07 14:33:45 +00:00
Emanuele Giaquinta
827696bbb9 Forbid "window show" when the target window is sticky rather than when there is
at least one window bound to the container of the target window.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4436 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-05 18:25:29 +00:00
Emanuele Giaquinta
87ee8e85ca When removing a line from the view also unconditionally remove any bookmark for
that line rather than moving it to the next/previous line, if any.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4433 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-03-12 22:54:45 +00:00
Timo Sirainen
e9681e4b9e UTF-8 0x80-0x9f characters weren't treated as control chars as they should have
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4425 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-02-20 12:39:17 +00:00
Emanuele Giaquinta
d446ee2f6f Add crapbuster-like "scrollback levelclear" command.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4420 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-02-18 14:59:54 +00:00
Emanuele Giaquinta
541fa72f46 Generalize window_lastlog_clear in textbuffer_view_remove_lines_by_level.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4419 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-02-17 15:31:10 +00:00
Emanuele Giaquinta
c536d1f19c Fix format_real_length to return the correct length when the input string
includes a trailing wide char.
Change statusbar_item_default_handler to compute padding also when
item->size < item->min_size, needed after the fix to format_real_length.
Patch by Yi-Hsuan Hsin, bug #452.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4416 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-02-14 10:59:27 +00:00
Emanuele Giaquinta
6d11f6f897 Replace last occurrence of IRSSI_DIR_SHORT with get_irssi_dir() and remove it.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4415 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-02-14 10:43:34 +00:00
Emanuele Giaquinta
4f49a38402 Redraw input line correctly in an utf8 locale when deleting a
nonspacing char by taking in account the cell width, bug #459.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4414 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-02-07 18:20:49 +00:00
Emanuele Giaquinta
7c48fc2fb3 Amend check for non printable chars to filter control chars 80-9F in an utf8 locale, bug #460.
Note: this was and is still broken with koi8-r.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4413 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-02-06 23:25:17 +00:00
Emanuele Giaquinta
da9582e5aa Modify term_move to accept only non negative coordinates.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4380 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-24 21:06:46 +00:00
Emanuele Giaquinta
406c70c530 Fix bold on monochrome terminals.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4373 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-20 23:56:59 +00:00
Emanuele Giaquinta
41d619cb82 Fix %k and %K mappings.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4355 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-17 19:06:54 +00:00
Emanuele Giaquinta
d5c60cec4f Simplify.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4353 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-17 12:32:40 +00:00
Emanuele Giaquinta
8264b65939 Fix off-by-one error.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4352 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-17 12:26:04 +00:00
Emanuele Giaquinta
9c835d33b5 Set view->startline to NULL when the line to delete is the first of the view
buffer and there are no more lines in the view.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4350 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-14 22:11:19 +00:00
Emanuele Giaquinta
9bd7272d47 Revert r4343.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4349 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-14 20:57:22 +00:00
Emanuele Giaquinta
195f819847 Modify scrollback clear to accept the same arguments as clear.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4348 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-13 22:54:38 +00:00
Emanuele Giaquinta
9b675ca03f Make indentation of cmd_clear consistent.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4347 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-13 22:42:39 +00:00
Emanuele Giaquinta
3ff0ddeac4 Remove redundant variable.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4346 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-13 17:11:36 +00:00
Emanuele Giaquinta
904e01175c Revert r4342.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4345 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-12 22:33:14 +00:00
Emanuele Giaquinta
f57b551a86 Refactoring to avoid code duplication.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4344 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-12 17:23:46 +00:00
Emanuele Giaquinta
9cdea0d608 Missing update of view->startline when the line to delete is the first of the
view and the first of the view buffer.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4343 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-12 17:19:47 +00:00
Emanuele Giaquinta
c08a754d1e Do not restore the previous view when deleting the first line of the current one.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4342 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-12 16:06:14 +00:00
Emanuele Giaquinta
cf1d60203b Fix compilation with glib-1.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4334 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-10 17:39:00 +00:00
Emanuele Giaquinta
e6d43a9796 Add extra libs to irssi_LDADD, not to irssi_LDFLAGS.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4333 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-09 16:54:26 +00:00
Emanuele Giaquinta
1d42194902 Cosmetic, merge two statements and reindent with tabs.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4332 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-09 14:01:21 +00:00
Emanuele Giaquinta
40d97468ca Add support for wide curses.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4331 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-09 13:56:00 +00:00
nattfodd
8b75299729 Merge of cuix back in trunk
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4309 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-08-08 21:11:20 +00:00
Jochen Eisinger
4de9baf8f1 Removed all srand calls and added a single srand invokation in at startup
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4264 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-03-26 08:42:34 +00:00
Wouter Coekaerts
945d10ebb7 make negative scroll_page_count scroll screensize-n lines (Patch by Chris Moore)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4232 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-02-01 09:56:42 +00:00
Valentin Batz
5da4a4fe89 Fix colors with TERM=xterm-{88,256}color, patch by Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4231 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-01-31 19:06:20 +00:00
Valentin Batz
0d10e2cc06 Fixed a bug where tab-complete didn't worked with utf8/big5 multibyte characters properly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4229 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-01-29 22:37:24 +00:00
Valentin Batz
fb6bdac677 replace guint by gsize for the glib2 version of irssi_ssl_read
like it's defined in GIOFuncs for glib2
moved src/fe-text/utf8.* to src/fe-common/core
changed get_utf8_char so it returns a status code and the unichar argument pointer
to the value that it returned before if there were no errors,
so you can check for a negative value an handle the error


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4091 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-11-23 18:30:22 +00:00
Jochen Eisinger
f9345a7d3c Fixed return code of term_init (resulted in segfault with invalid TERM and
termcap)



git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4076 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-11-15 23:38:01 +00:00
Wouter Coekaerts
a0a30db489 Compile with glib1 again (part of patch from peder). g_unichar_*-ifying (making more things unicode aware) will probably have to wait till .11
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4063 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-11-02 21:05:24 +00:00
Wouter Coekaerts
9548cbfadb Fix warnings caused by r4043
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4046 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-10-18 17:43:48 +00:00
Wouter Coekaerts
5b7df6b3d7 Fix delete_{next,previous}_word bindings, patch by Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4043 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-10-18 11:59:26 +00:00
Valentin Batz
d8d47ef37f fixed recoding of own messages.
recode after expand_emphasis
remove the redundant call to setlocale(LC_CTYPE, )


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4038 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-10-12 18:22:14 +00:00
Valentin Batz
2998ce6daa Implementation of the meta-[cult] (capitalize words, upcase word, downcase word, transpose words) key-bindings from the TODO by Peder Stray
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3963 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-08-27 22:06:34 +00:00
Wouter Coekaerts
e24bcb43df fix minor textbuffer leak, Bug 288 by Toby
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3897 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-08-05 02:24:29 +00:00
Wouter Coekaerts
181f00c15e Handle ^Z better (debian/patches/03sigtstp.dpatch by David Pashley, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177108)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3864 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-07-17 16:41:23 +00:00
Valentin Batz
721a4ef9ea Fixed bug where pasting is not using the character translation (http://bugs.irssi.org/index.php?id=151) patch by Unknown
Fixed a bug in scripts/autorejoin.pl so you can really use a space or a comma for separating the channels in /set autorejoin_channels
Changed svn:mime-type of .pl and .sh files into the text/x- version, so you can diff them

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3737 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-05-09 15:18:24 +00:00
Valentin Batz
b5f93b6164 call setlocale(LC_ALL, ) once in fe-text/irssi.c and not everytime recode_get_charset() is called in recode.c
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3703 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-01-12 16:40:44 +00:00
Valentin Batz
8ea717b676 Fixed memleak in recode.c, fixed typo in special_vars.txt, fixed bug 105, fixed bug 106
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3295 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-09-15 12:11:43 +00:00
Timo Sirainen
226a567562 Recode patch by decadix/senneth
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3283 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-08-20 00:03:40 +00:00
Timo Sirainen
84b23e20c2 Added /MANUAL-WINDOWS alias which removes all automated windowing stuff.
Startup message also mentions it.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3261 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-07-11 14:41:46 +00:00
Timo Sirainen
5df03ca730 Pasting multibyte chars was buggy, patch by Kuang-che Wu
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3251 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-05-14 12:25:49 +00:00
Timo Sirainen
db705a8396 Fixes for Chinese multibyte characters handling and cursor movement, patch
by Wang WenRui


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3244 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-03-24 17:28:55 +00:00
Timo Sirainen
2a12dfb9d0 Added /SET paste_detect_keycount back. Pasting isn't detected until so
many keypresses have been detected as pasting. Also we don't anymore count
repeated keypresses more than once.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3235 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-03-23 21:17:40 +00:00
Timo Sirainen
827a3a6311 fixed /BIND escape_char
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3234 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-03-23 20:52:33 +00:00
Timo Sirainen
662c4d30ab add space between merged lines
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3217 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-01-24 22:08:56 +00:00
Timo Sirainen
3ccbd0405b fix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3210 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-01-19 19:28:15 +00:00
Timo Sirainen
f239784fd0 fix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3207 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-01-19 19:00:25 +00:00
Timo Sirainen
4c1628e25d Added /SET paste_join_multiline - it attempts to be smart and detect when
you're copy&pasting indented lines, and merge them together to one long
line, but splits them to max. 400 chars per line.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3206 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-01-19 18:59:17 +00:00
Timo Sirainen
2199b35892 add pasted lines to command history
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3205 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-01-19 17:59:42 +00:00
Timo Sirainen
715d8fb062 If pasted line starts with command char, treat it as command always. Paste
detection can go on too easily with lagged connections.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3189 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-26 17:26:47 +00:00
Timo Sirainen
c074f551bf Don't count linefeeds in paste detection to avoid it going on when holding
enter key down


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3182 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-23 12:17:16 +00:00
Timo Sirainen
0f22561777 Removed /SET paste_detect_keycount - don't really need it anymore.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3181 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-21 20:52:13 +00:00
Timo Sirainen
7765290447 pasting fixes. changed key to ^K from ^O since ^O is working strangely in
some systems..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3180 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-21 18:15:11 +00:00
Timo Sirainen
6f67475c3b Fixed paste_warning format
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3177 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-17 19:35:29 +00:00
Timo Sirainen
787b310333 disabling paste detection works again
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3176 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-17 18:36:56 +00:00
Timo Sirainen
3a0796630a again changed the paste_detect defaults.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3174 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-17 18:20:35 +00:00
Timo Sirainen
4405092282 potential crashfix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3173 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-17 18:13:17 +00:00
Timo Sirainen
f02d35a8de paste texts are themeable now.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3171 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-17 14:09:15 +00:00
Timo Sirainen
8c717cd73b When pasting to empty window, don't ask about if pasting was wanted or not.
Also paste them as commands, not as text to active (non-existing)
channel/query.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3170 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-17 13:23:22 +00:00
Timo Sirainen
4d3d559f93 paste detection fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3169 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-17 12:17:57 +00:00
Timo Sirainen
8e29932db3 crashfix when quitting
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3165 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-17 00:18:40 +00:00
Timo Sirainen
0de9bcc3df more initializing..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3164 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-17 00:02:51 +00:00
Timo Sirainen
add0bbda50 initialize prev_entry
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3163 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-17 00:01:17 +00:00
Timo Sirainen
90c61c5548 paste detection growed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3161 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-16 23:33:01 +00:00
Timo Sirainen
130030c506 pasting fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3158 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-16 22:56:26 +00:00
Timo Sirainen
093f2c44de If pasting more lines than /SET paste_verify_line_count, ask before doing
it.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3157 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-16 21:49:15 +00:00
Timo Sirainen
0fd26895e1 changed /set pster_detect_keycount 5 -> 6 to fix function keys
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3156 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-16 20:33:17 +00:00
Timo Sirainen
d79cc02a10 Added pasting detection. All keys except CR and LF are pasted as-is into
prompt in pasting mode.

/SET paste_detect_time controls how closely each others characters must
occur for it to be considered pasting. Pasting mode goes on after /SET
paste_detect_keycount characters have been received and detected as pasting.

The first paste_detect_keycount characters can also contain some command
characters. They are executed, but their action in entry line is reverted
once pasting is detected. Of course, if any such character was followed by
CR/LF, it was already sent to channel/query and is unreversable.

What this means in practise is that even if you have TABs (assuming TAB is
completion key) in the first few pasted characters, they get pasted as TABs
as long as they weren't immediately followed by CR/LF.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3153 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-16 19:37:31 +00:00
Timo Sirainen
b2d07ffd1d BIG5 stuff is used only if term_type is big5
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3135 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-10-26 05:31:19 +00:00
Timo Sirainen
7eb2fc70e3 BIG5 fixes by vanilla@FreeBSD.org(?)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3134 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-10-19 19:09:51 +00:00
Timo Sirainen
ae5b5f38bd Crashfix when sometimes closing a split window.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3123 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-07-09 21:46:08 +00:00
Timo Sirainen
4431f7c994 didn't compile without gc
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3103 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-01-25 21:19:41 +00:00
Timo Sirainen
0e61b4c829 Lets see if GC happens to work now without explicit free() calls. Perl
objects now set the C pointer to NULL once they're done with it, so this
might just work without leaking..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3101 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-01-25 03:19:40 +00:00
Timo Sirainen
b687ace2b1 Check for gc.h too
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3095 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-01-11 00:24:30 +00:00
Timo Sirainen
3ddf3ce6b4 lag_min_show should default to 1 sec, not 0.1sec
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3089 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-31 12:36:56 +00:00
Timo Sirainen
f3d43d9137 Don't access free'd memory.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3087 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-30 23:10:57 +00:00
Timo Sirainen
43020c2e5f day -> 1day, hour -> 1hour
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3084 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-29 16:02:49 +00:00
Timo Sirainen
dcb0c6e4dd Added /REDRAW command that does the same as ^L.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3081 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-28 18:19:34 +00:00
Timo Sirainen
bd6fe052bc Added time, size and level setting types. Breaks some settings - I'll add
automatic converter to these settings later. Meanwhile you CVS users can
fix your config files yourself :)

Time settings allow using "days", "hours", "minutes", "seconds" and
"milliseconds" or several of their abbreviations. For example "5d 4h
5msecs".

Size settings allow using "gbytes", "mbytes", "kbytes" and "bytes" or their
abbrevations. For example "5MB".

Level settings are currently handled pretty much the way they were before.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3080 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-28 17:54:13 +00:00
Timo Sirainen
cdc52b773e --with-gc enables now support for Boehm's GC, if it's found and glib2 is
used. This also enables an extra check for perl library to verify scripts
aren't using objects that have already been free'd - while not a fully safe
solution it's much better than before :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3063 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-23 06:06:14 +00:00
Timo Sirainen
6825f1e67e GC fixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3056 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-10 20:30:03 +00:00
Timo Sirainen
bb55d3ff4d A few fixes to make irssi work with garbage collected GLIB.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3055 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-10 17:31:26 +00:00
Timo Sirainen
1e2cadfa04 /last -clear removes now the "lastlog would print x lines, ... use -force"
complain.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3034 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-29 13:53:44 +00:00
Timo Sirainen
cb21fabb59 /SB END: if we're already at the end of buffer don't redraw it.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3014 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-19 12:02:56 +00:00
Timo Sirainen
768daa6824 fixes to allow you to register a new keyboard redirection inside a
redirection handler. patch by c0ffee.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2995 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-11 06:54:32 +00:00
Timo Sirainen
14f3c0c2e5 grammatical fix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2991 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-09 23:05:22 +00:00
Timo Sirainen
a0e8cfc9f5 Added "gui key pressed" signal which is sent every time a key is pressed.
The parameter is non-translated key received from terminal, so control keys
may create multiple keypress signals (eg. home == ESC, [, H).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2985 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-05 13:34:31 +00:00
Timo Sirainen
2aaec5adc7 Some changes to make doublewidth chars possibly work (or possibly horribly
break whole utf8 support :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2956 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-10-14 18:33:29 +00:00
Timo Sirainen
3dda9ab2df statusbar is now also updated for connecting-servers.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2922 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-09-14 23:23:57 +00:00
Timo Sirainen
a83366069f window->active_server used to hold non-connected servers, but that was
removed before because it created several problems, especially with scripts.
however that change made /server and /disconnect annoying to use with
non-connected servers.

so, now we have window->connect_server as well. either active_server or
connect_server is set, but never both. commands that can deal properly with
non-connected servers can now use the connect_server, while everyone else
happily thinks that no server is active.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2921 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-09-14 23:14:04 +00:00
Timo Sirainen
fce48d905b moved ncurses/terminfo/etc. libs away from PROG_LIBS which should be list of
common libraries for all ui frontends..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2899 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-08-26 23:58:59 +00:00
Timo Sirainen
b38316c8ba Moved setlocale() at the beginning of initialization, should fix regexp
crashes with non-C locale.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2858 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-07-01 17:32:05 +00:00
Timo Sirainen
b2a7ac4686 irsis --dummy fixed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2850 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-06-07 15:52:16 +00:00
Timo Sirainen
80cc61b63f Empty lines can be now sent to /EXEC -interactive windows.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2849 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-06-07 15:32:17 +00:00
Timo Sirainen
6910ca4d25 Added default meta-d = delete_next_word
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2840 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-06-06 19:15:43 +00:00
Timo Sirainen
b9eda1adb6 External indent functions (theme_indent module) weren't working properly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2815 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-18 11:51:04 +00:00
Timo Sirainen
ee80e7601a ^ key couldn't be used with /BIND
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2796 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-15 23:20:19 +00:00
Timo Sirainen
d68bbeb5ef don't use TIOCGWINSZ terminal size if it returns only 0x0.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2788 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-13 17:11:04 +00:00
Timo Sirainen
ed966c6921 changed log domain and changed few g_return_if_fails to g_asserts. the
domain change makes all glib warnings be printed into stderr instead of
trying to print them into irssi window which most probably would just
mysteriously crash.

also irssi doesn't now crash if it thinks screen height is 0 :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2787 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-13 17:07:37 +00:00
Timo Sirainen
9a435e68f9 make sure the statusbar item fills the space it's given, so it won't corrupt
the statusbar.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2786 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-13 16:05:30 +00:00
Timo Sirainen
3ac451c608 some optimizations to not uselessly hide/show/move cursor - hope i didn't
break anything :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2781 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-12 14:48:11 +00:00
Timo Sirainen
308779dd4d freeze/thaw before/after running glib main loop, so the cursor isn't moved
uselessly around.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2772 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-11 01:35:37 +00:00
Timo Sirainen
d11483db4d typofix.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2769 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-10 20:40:36 +00:00
Timo Sirainen
903ca7b757 more fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2765 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-10 13:13:06 +00:00
Timo Sirainen
d8fdfd225c another terminfo fix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2764 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-10 12:35:05 +00:00
Timo Sirainen
24c4a2e86d link with -export-dynamic. normally glib includes the dynamic linking info,
but not in all systems.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2759 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-08 00:27:46 +00:00
Timo Sirainen
9405dc2ce8 fixed buffer overflow - happened at least when hitting ^A after writing
enough text to input line. usually didn't crash..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2755 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-06 04:58:47 +00:00
Timo Sirainen
5960fcf8cf added %# to a few "/window" lines.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2734 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-28 11:30:31 +00:00
Timo Sirainen
f515c16890 minor fix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2733 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-28 11:30:09 +00:00
Timo Sirainen
64c8feeede %# now toggles monospace font on/off. fe-text doesn't care about it, but
gtk/kde UI does. By default, all lists are printed using monospace fonts.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2718 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-26 15:43:09 +00:00
Timo Sirainen
77b25c1ac7 sig_gui_print_text: don't crash if dest is NULL.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2697 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-18 07:47:27 +00:00
Timo Sirainen
970b49df1a "gui print text" signal changed, last parameter is now TEXT_DEST_REC, not
level.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2694 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-17 21:02:41 +00:00
Timo Sirainen
c7320514aa fixes for new signaling code.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2691 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-16 18:11:06 +00:00
Timo Sirainen
53d595ba7f fixed several signal leaks
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2683 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-15 14:06:57 +00:00
Timo Sirainen
8b9c4823bf Rewritten signal handling code - it wasn't supposed to come before 0.9 irssi
but it doesn't break much things and is needed for Qt port :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2682 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-15 13:59:09 +00:00
Timo Sirainen
40bdfc4d70 Input lines are now never destroyed and they're associated to statusbar
name, so scripts can now do any statusbar changes without input line being
cleared.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2643 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-24 19:06:47 +00:00
Timo Sirainen
650292613e /CLEAR <refnum> now clears specified window.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2633 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-19 17:24:28 +00:00
Timo Sirainen
88654c4468 term_deinit() should set SIGCONT back to default, so if it's sent after that
it won't crash (gnome-terminal does that for some reason)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2623 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-16 23:17:33 +00:00
Timo Sirainen
6a89217d6a Get the terminal size at startup with ioctl() and use it. Fixes at least
NetBSD.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2616 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-14 23:46:48 +00:00
Timo Sirainen
85a1b122cd Scrolling was buggy with "ri" method, it tried to used "rin" as well
which crashed irssi.. Happened at least with NetBSD/sparc.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2615 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-14 23:33:33 +00:00
Timo Sirainen
3800c07a32 bit fields should be unsigned type always (unsigned int dirty:1).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2602 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-13 03:23:38 +00:00
Timo Sirainen
8fa39c23a7 default_color checks moved from fe-text to fe-common, so they work properly
with window-specific themes. also should fix some weird problems related to
them and gui_printtext_after().


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2576 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-11 03:45:57 +00:00
Timo Sirainen
1528cfc9d7 All control chars in statusbar items are now displayed reversed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2574 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-11 02:07:05 +00:00
Timo Sirainen
1997b58c3a whops, stupid utf-8 bug :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2567 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10 19:43:35 +00:00
Timo Sirainen
b18af319cf term_addch() : utf-8 fixes for cursor positioning.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2563 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10 19:03:27 +00:00
Timo Sirainen
e5ab1daf30 When input line is in redirection mode, allow empty lines (eg. enter after
/OPER now aborts it)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2562 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10 16:36:35 +00:00
Timo Sirainen
0d54e4e299 SIGHUP now does /RELOAD - useful with for example /SBAR prompt DISABLE when
you don't have an input line to recover :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2556 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10 15:20:44 +00:00
Timo Sirainen
7c9ac989ff No more infobar, but in empty windows topicbar contains the URL.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2547 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10 14:02:33 +00:00
Timo Sirainen
95d8b617ae Irssi didn't work properly if read() returned only partial utf8 character
string.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2544 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-09 17:54:38 +00:00
Timo Sirainen
f181dca67d Fixed a memory leak with ^Y
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2540 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-09 09:25:06 +00:00
Timo Sirainen
600e0da443 /SET mirc_blink_fix - if ON, the bright/blink bit is stripped from MIRC
colors. Set this to ON, if your terminal shows bright background colors
as blinking. Patch by pv2b


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2539 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-08 21:04:59 +00:00
Timo Sirainen
2d5978fdfe ^Y shouldn't crash with empty cutbuffer
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2529 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-25 17:28:55 +00:00
Timo Sirainen
015d87579c Show window's scroll state with /WINDOW.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2526 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-22 13:12:33 +00:00
Timo Sirainen
bcc5174e4a Backspace/delete shouldn't modify cutbuffer.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2520 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-20 12:46:45 +00:00
Timo Sirainen
ec0270811e stupid bug :) lines longer than 1024 chars made irssi crash.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2519 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-20 12:44:23 +00:00
Timo Sirainen
2bc09e0e50 Added escape_char /BIND command for inserting the next keypress to input
line.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2517 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-18 20:59:40 +00:00
Timo Sirainen
a543f63307 compiler warning fix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2509 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-17 18:05:25 +00:00
Timo Sirainen
a6d61a0b2b --disable-terminfo didn't work
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2502 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-17 15:42:07 +00:00
Timo Sirainen
effd1185a4 fixed a compiler warning
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2500 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-17 14:42:53 +00:00
Timo Sirainen
74b1a57540 compiler warning fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2498 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-17 14:25:10 +00:00
Timo Sirainen
37f8547dc4 Added ^I = "tab" key.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2490 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-17 10:09:04 +00:00
Timo Sirainen
81c2e557d1 Added /STATUSBAR # RESET command for removing the whole statusbar block from
config file.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2487 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-16 15:10:27 +00:00
Timo Sirainen
82be2070e2 Cutbuffer should be cleared when ^U is used in empty line (or in general, 0
chars is erased)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2471 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-16 10:11:00 +00:00
Timo Sirainen
941ac87dfe Don't crash when handling input line if the input line doesn't exist (huh?
how? no idea :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2469 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-16 07:37:31 +00:00
Timo Sirainen
8b8d48d0b7 /STATUSBAR now prints a list of statusbars, /STATUSBAR <name> prints
statusbar info.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2468 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-16 07:30:57 +00:00
Timo Sirainen
ef5a69cfe1 /STATUSBAR # VISIBLE command didn't work properly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2466 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-16 06:48:35 +00:00
Timo Sirainen
a52d99ecf4 /RELOAD didn't update the statusbar colors the first time. /SET theme never
changed the statusbar colors.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2465 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-16 00:08:47 +00:00
Timo Sirainen
202d0b070e command_unbind("statusbar add") was called with wrong function parameter.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2464 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 23:15:25 +00:00
Timo Sirainen
8506f11fa5 case-insensitivity for /STATUSBAR command
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2463 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 22:42:09 +00:00
Timo Sirainen
b3beb2c49e Added _very_ small help for /statusbar + their SYNTAXes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2462 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 22:22:46 +00:00
Timo Sirainen
0e4bf301ca More statusbar commands.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2461 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 22:18:48 +00:00
Timo Sirainen
c9fd2197e3 Added /STATUSBAR commands for most commonly used tasks.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2459 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 21:42:31 +00:00
Timo Sirainen
fa3d6dcd75 Disable the nl_langinfo() if CODESET isn't defined (openbsd).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2458 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 19:33:05 +00:00
Timo Sirainen
23a31f30de /SET term_type didn't take effect on entry until the second time it was
changed.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2457 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 18:39:32 +00:00
Timo Sirainen
de272071c5 don't crash if trying to erase 0 chars and there's no cutbuffer.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2456 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 18:20:03 +00:00
Timo Sirainen
eb31bb1712 transpose_characters was broken
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2454 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 16:02:14 +00:00
Timo Sirainen
b18424f7cb added meta-f and meta-b for forward/backward word
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2453 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 15:54:59 +00:00
Timo Sirainen
9d1506ebca UTF-8 is now automatically used if locale is set properly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2451 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 14:42:14 +00:00
Timo Sirainen
d0a9710bb8 get_utf8_char() was buggy
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2450 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 14:09:10 +00:00
Timo Sirainen
0f39c504d1 Statusbar wasn't always properly cleared when there was right-aligned items.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2449 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 14:04:10 +00:00
Timo Sirainen
afeb6fcb7d /SET term_type 8bit|utf8|big5 - Removed --with-big5 configure option, it's
now included the same way as utf8, though i'm not sure if it really works
but at least it should partially :) Input line is now internally using 32bit
chars but it's converted to 8bit chars for external use. Text buffer
supports only 8bit + utf8 for now.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2448 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 13:38:24 +00:00
Timo Sirainen
612c061605 A bit kludge fix for perl statusbar items breaking prompt changes at
startup. Now the entry isn't destroyed until the statusbar is, and there can
be only one entry per statusbar (well, who would want more anyway :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2447 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 09:31:25 +00:00
Timo Sirainen
6eaf161199 /LAST -before didn't print the separators.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2446 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 09:22:35 +00:00
Timo Sirainen
0c209a6899 atexit(term_deinit)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2424 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-10 15:01:00 +00:00
Timo Sirainen
83f6408979 It's possible to use black foreground color now.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2418 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-10 14:21:29 +00:00
Timo Sirainen
c1d61ddeaf term_clear() should set the background color to RESET, not to 0 (black).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2417 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-10 14:10:09 +00:00
Timo Sirainen
86dadc071c meta-backspace is now bound to delete_previous_word by default.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2410 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-10 11:01:56 +00:00
Timo Sirainen
3990779dc5 /BIND meta-k erase_completion - support for removing completion data.
Currently this works only with /MSG completion, so eg. /MSG nick <meta-k>
removes nick from completion list and jumps to next completion.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2407 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-10 10:07:12 +00:00
Timo Sirainen
2b007931a9 since common.h wasn't included in this, changed i_isdigit() -> isdigit()
back with some casting.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2405 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-08 22:09:39 +00:00
Timo Sirainen
14457371c8 Ignoring SIGTRAP signal which is sent at /UPGRADE time.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2375 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-02 19:55:33 +00:00
Timo Sirainen
0ce3f8243e Comments are now allowed everywhere in config files.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2374 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-02 17:37:44 +00:00
Timo Sirainen
19f1700a68 Add ^H and ^? as "backspace" key, so you can use meta-backspace etc.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2370 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-02 02:22:29 +00:00
Timo Sirainen
33d30268b4 added some pointer casting to get rid of warnings with some compilers.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2365 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-01 20:14:30 +00:00
Timo Sirainen
f8221db7ca When resizing terminal, width of all split windows weren't always updated
properly.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2364 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-01 19:26:58 +00:00
Timo Sirainen
2c3216d10c A bit more better utf8 support, still not a good input line.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2355 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-29 03:13:06 +00:00
Timo Sirainen
46b318b831 Preliminary support for UTF8 with /SET term_utf8 ON. Input line is still
messed up, but lines should wrap properly in text buffer.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2354 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-29 01:33:41 +00:00
Timo Sirainen
f4897860b5 toupper(), tolower(), isspace(), is..etc..() aren't safe with chars in some
systems, use our own is_...() functions now instead.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2348 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-27 20:45:59 +00:00
Timo Sirainen
820c9d3d82 Comment changes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2347 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-27 20:42:45 +00:00
Timo Sirainen
f12d3914e5 Added -before and -after options to /LASTLOG. You can also use
-<number> to specify both before and after values.

Added special "#" option name to commands which specifies that
-<number> parameter is allowed.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2331 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-20 16:57:06 +00:00
Timo Sirainen
117f27eb92 Fixed a memory leak.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2329 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-20 12:50:10 +00:00
Timo Sirainen
8cf0d71c5c Some MIRC color changes, patch by qrczak@knm.org.pl
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2320 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-19 18:46:23 +00:00
Timo Sirainen
02f0574506 swapped dark/bright reds.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2306 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-10 18:55:24 +00:00
Timo Sirainen
9ddebe6bcf Added command history groups, set them with /WINDOW HISTORY. Patch by peder@ifi.uio.no
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2276 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-20 13:29:20 +00:00
Timo Sirainen
c255a7b8ea Still some #include "servers.h"s ..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2273 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-20 02:17:35 +00:00
Timo Sirainen
c99205b512 Never allow adding CR or LF characters to input line, they could mess up everything.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2270 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-19 15:25:16 +00:00
Timo Sirainen
080b491db9 Hidden entry texts shouldn't have gone to command history..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2269 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-19 00:42:22 +00:00
Timo Sirainen
e46446e950 Since I accidentally already committed some of the detach-code, here's the
rest of it. It doesn't really work, you can make irssi detached but you
can't attach to it anymore :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2268 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-17 23:01:12 +00:00
Timo Sirainen
ba09b3f299 if window-specific history is off, the command that closed the window should
go in the command history.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2267 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-17 22:13:18 +00:00
Timo Sirainen
f126e1b2c3 irssi-dummy was still in Makefile
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2265 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-17 19:41:18 +00:00
Timo Sirainen
35d363136f Separate irssi-dummy binary was a bit stupid idea, now it can be started with -d command line parameter.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2264 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-17 18:41:06 +00:00
Timo Sirainen
475aa27588 Added irssi-dummy binary which works like ircii's dummy mode.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2263 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-17 16:27:20 +00:00
Timo Sirainen
5705e7b4f2 If window specific history was on and command changed a window, the command
was saved in wrong window's buffer.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2239 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-11 20:31:45 +00:00
Timo Sirainen
6a1f6b560f Still some window closing bugs/crashes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2225 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-09 14:03:44 +00:00
Timo Sirainen
54a933f29c Small focus bugfix when closing a split window.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2220 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 23:26:46 +00:00
Timo Sirainen
1b8a5a866d Fixed some problems with mainwindow resizing not affecting the subwindows.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2219 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 23:20:23 +00:00
Timo Sirainen
5bab99f096 Fixed 2 small memory leaks.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2209 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 04:27:32 +00:00
Timo Sirainen
377b66745d Never print the last character in screen, this may break some terminals (cygwin at least).
term_addstr() now uses const char * instead of char * parameter.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2192 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-04 14:40:37 +00:00
Timo Sirainen
1eeb5cf362 add the "gui exit" with signal_add_last() so it can be aborted while still running the other "gui exit" hooks.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2179 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-03 13:06:31 +00:00
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