dequis
3b01198f03
paste_bracketed_end: Fix rest length calculation
2015-09-27 16:08:07 -03:00
dequis
52729ca3da
Save the part of the paste buffer after the bp_end marker for later
...
Also move relevant code to a paste_bracketed_end() function
2015-09-27 16:08:07 -03:00
dequis
9a6b2dedcc
Improve bracketed paste start/end detection
...
- Use a keybinding to detect the start of a bracketed paste
- Iterate over the paste buffer looking for the end marker
2015-09-27 16:08:07 -03:00
LemonBoy
6888fc5fc7
Get rid of the non-portable memmem
...
The sequences we're after are found at the beginning or at the end of the
buffer, there's no need to scan the whole thing.
2015-09-27 16:08:06 -03:00
LemonBoy
4764b102ff
Enable the bracketed paste mode on demand
2015-09-27 16:08:06 -03:00
LemonBoy
15dad291c7
Replace some hairy logic with g_array_remove_range
...
In the hope it'll do the same under the hood.
2015-09-27 16:08:06 -03:00
LemonBoy
f1eead7b4a
Toggles
2015-09-27 16:08:06 -03:00
LemonBoy
72ac27e5a0
Implement the bracketed paste mode
...
As an alternative method of paste detection, more reliable but might not be
supported by all the VTs.
2015-09-27 16:08:06 -03:00
dequis
f39723f651
Fix FS#905, mangled text when pasted line length exceeds 400
...
http://bugs.irssi.org/index.php?do=details&task_id=905
Not using the patch from that ticket, the issue turned out to be that
(dest - last_lf_pos) returned number of unichr, not bytes, so that's 4
times less than what the size parameter of memmove() should be.
2015-09-21 17:53:46 -03:00
dx
9cf4dfd23d
Merge pull request #288 from irssi/ahf/kill-gc
...
Remove Garbage Collection support.
2015-09-20 16:49:48 -03:00
Alexander Færøy
519955ebe4
Fix warning.
...
Add comment on the use of ??) in C, since that string isn't entirely
obvious to people who are reading the code.
2015-09-20 21:45:33 +02:00
Alexander Færøy
29cf546ee4
Remove Garbage Collection support.
...
GC support was never enabled by default and nobody in the current
development team seems to care about it.
2015-09-20 21:28:14 +02:00
LemonBoy
061fb34750
Modify the terminal initialization sequence
...
We disable the ICRNL flag to make Enter independent from ^J from the
keybinding point of view since the former will now send ^M, leaving the
user free to remap ^J without trapping itself into the irssi session
because of a broken Enter key.
Also disable the software flow control because we don't expect anyone to
run irssi over a serial console; we gain some more freedom by having ^Q
and ^S freely mappable by the user.
2015-09-19 12:22:58 +02:00
LemonBoy
b5b73cb471
Send smkx/rmkx sequence at terminal init
...
Enter the "application" mode when setting up the terminal, this improves the
compatiblity with the standards; as a side effect now DEL key works ootb when
irssi is run in the suckless's st terminal.
2015-09-06 15:47:08 +02:00
Alexander Færøy
eb0f09073c
Merge pull request #199 from ailin-nemui/config-parser
...
Make config parser more robust
2015-04-17 21:23:03 +02:00
dequis
f14199d9c1
Change all strcmp() to g_strcmp0() to handle nulls gracefully
...
Just a string replacement (but i did check every one of them)
sed -i 's/strcmp(/g_strcmp0(/g' **/*.c
2015-04-07 22:41:05 -03:00
Alexander Færøy
ac5aebb91f
Merge pull request #217 from Lohhari/lastlog-date
...
Added a -date parameter to /lastlog to prepend each row with the ...
2015-03-01 11:44:28 +01:00
Ailin Nemui
ee3eaa5428
fix crash in layout code when encountering wrong config
2015-02-17 09:50:55 +01:00
Ailin Nemui
1e4f7e6324
Refuse to load broken configs on irssi start
...
By temporarily raising the fatal log level to critical during irssi
start-up, we make it fail when the config file is broken. This is then
re-set so that /reload of a broken config file will not crash irssi and
just report the errors and gracefully continue instead.
2015-02-17 09:50:55 +01:00
Ailin Nemui
96d4fb9156
add CONFIG_REC to config_node_section* APIs
...
this adds the CONFIG_REC * to the config_node_section and
config_node_section_index APIs as they will require access to the config
cache later on to make the config parser more robust.
2015-02-17 09:50:55 +01:00
Alexander Færøy
8e64aee42a
Merge pull request #115 from ailin-nemui/fix-hat-key
...
Make ^ key and Ctrl+^ key usable with /BIND
2015-02-16 22:15:04 +01:00
Vesa Pirila
895ac10c4e
lastlog.c is a mix of tab and space indentation. My changes now use tabs.
2015-02-16 09:49:22 +02:00
Vesa Pirila
cd5a571fd8
Added customization possibility for the lastlog date format, lastlog_date
2015-02-08 16:58:30 +02:00
Vesa Pirila
466166010b
Added a -date parameter to /lastlog to prepend each row with the row's date
2015-02-08 13:00:51 +02:00
dequis
367d8efc5f
Fix blinking/bold text in terminals with no color support
...
Before this, doing "TERM=vt100 irssi" showed all text as bold and
blinking because of a failed check of window->term->TI_colors that
was doing (value & 8) and not expecting a value of 0.
The changed lines themselves look a bit weird, but they make more sense
in the context of the original commit, 96a292d4
.
2014-12-14 18:21:40 -03:00
Ailin Nemui
b03805eeb9
reimplement format and length logic for the entry prompt
2014-11-10 10:53:14 +01:00
Veres Lajos
f285332c5b
typo fixes - https://github.com/vlajos/misspell_fixer
2014-11-08 22:26:53 +00:00
Michael Vetter
51239925ec
source cleanup: remove trailing whitespaces
2014-09-11 19:10:33 +02:00
Ailin Nemui
98435fb464
support storing and replaying the monospace attribute in textbuffer
2014-09-11 18:15:06 +02:00
Ailin Nemui
9f6c76b028
Add the signal for printtext_after that was missed in the original commit.
...
Now properly sends "gui print text after finished" signal when using
the printtext_after API that was fixed after 0.8.16
2014-08-25 14:50:41 +02:00
Alexander Færøy
d40c0704f0
Merge pull request #123 from ailin-nemui/terminfo-scroll-check-bounds
...
Add bounds check to array access in terminfo driver.
2014-08-09 12:24:45 +02:00
Ailin Nemui
836d386823
Add bounds check to array access in terminfo driver.
...
this fixes a crash due to illegal memory access that can occur if
something is printed to the screen on the "terminal resized"
handler. It is not clear to me whether this race condition can be
triggered by external incoming messages, but it might be better safe
than sorry.
2014-08-09 11:40:37 +02:00
tomaw
2346d3b62f
Merge pull request #109 from cpbills/master
...
Fix right aligned statusbar item redrawing
2014-08-08 18:57:50 +01:00
Ailin Nemui
b602372e78
fix mirc_blink_fix
...
the background colours were totally off with mirc_blink_fix
enabled. oops.
reported by wodim
2014-07-31 03:09:19 +02:00
Ailin Nemui
09f23d06b5
Modify escape of ^ key so it can be used as well as Ctrl+^
...
Fixes FS#721
This makes Ctrl+^ and ^ bindable again as different keys. We do this
by escaping single `^` as `^-`, which is not a valid control character
(unlike `^^`)
The original approach suggested in FS#721 is insufficient, it will
break bindings such as `meta-^` because Irssi is convinced that `^`
introduces a Control-key ("key combo") so it is waiting for what may
follow.
2014-07-28 13:58:13 +02:00
Ailin Nemui
1cf7017ac9
fix colour 0 again
...
the previous commit was broken, as it conflicted with the colour
\#000000. Now both the "real colour black" and the "terminal colour 0"
are working.
2014-07-24 00:11:42 +02:00
Ailin Nemui
41fab0707f
restore the colour 0 ("black") that got broken by extended colours
...
the colour 0 was broken by the extended colours patch because it needs
an explicit bit check (lower bits will be false since it is 0)
Thanks to lhynes for the report
2014-07-23 23:42:05 +02:00
Christopher P. Bills
6a5f04b26a
Fix right aligned statusbar item redrawing
...
Fixes Github issue #97 https://github.com/irssi/irssi/issues/97
Fix proposed by ailin-nemui, built and tested on Debian Jessie using
0.8.15 source, tested by GeertHauwaerts as well.
2014-07-22 22:03:46 -04:00
Ailin Nemui
8e062b7bd0
fix uninitialised copy on 24bit colours
2014-07-18 13:56:02 +02:00
David Leadbeater
7fe47826ea
Suggest /HELP rather than HELP
...
At this point cmdchars is definitely / and the user might not know they
need to add / to a command.
2014-07-08 09:24:12 +01:00
David Leadbeater
4e2299f1b7
Change to printtext for first time message too
2014-07-08 09:23:55 +01:00
David Leadbeater
47d66d214f
Only show banner if not connecting to servers
...
It's tricky to make the banner show first in all cases and it's unlikely
to be seen if someone is connecting to a server already, so just don't
show it.
2014-07-08 01:38:08 +01:00
Lukas Mai
0e294d5c2e
add italics support; don't use standout for reverse
2014-07-07 00:32:07 +02:00
Geert Hauwaerts
2ff5f5b7e5
Fixed a compiler warning for statusbar_redraw
...
Fixed a compiler warning for statusbar_redraw.
2014-07-06 23:27:55 +02:00
Alexander Færøy
b03b65e029
Merge pull request #85 from dgl/werror
...
Make configure checks able to build with -Werror
2014-07-06 23:05:34 +02:00
Geert Hauwaerts
8c1e7d9c17
Updated the startup banner + added generic banner
...
I updated the banner displayed when you start Irssi for the first time
and I have added a banner that will be displayed everytime you start
Irssi.
2014-07-06 22:23:17 +02:00
David Leadbeater
beec29c305
Make configure checks able to build with -Werror
...
Also fix a few compiler warnings, this combined with pull #82 allows me to build
with CFLAGS="-Werror -Wall".
2014-07-06 18:56:17 +01:00
Ailin Nemui
c104627462
fix compiler warnings in extended colour code
2014-07-04 12:46:51 +02:00
Ailin Nemui
96a292d40e
Finish 256 colour support for Irssi
...
256 colour patch is cleaned up and the remaining cases are made work,
this includes especially Theme support, which was not implemented
before. Changes not related to colours were reverted again, making a
review of the two patches against master easier to follow.
As a byproduct of the Hex-colour code parser, the 24bit colours are
also implemented. Actually using them in the terminal is guarded by a
compile time switch (as well as a run time switch), as it breaks the
existing colour protocol and requires additional storage.
To make a seamless usage, down-conversion is provided for 8 and 16
colours.
Diverging from Tom's approach, the colour protocol is reverted back to
the original one. Unfortunately, the changes required in the Theme
engine will break the API.
For more details, please refer to the patch documentation at either
http://irssi-docs.wikispaces.com/Notes-256-Colour or
https://github.com/shabble/irssi-docs/wiki/Notes-256-Colour
2014-06-30 02:41:34 +02:00
Tom Feist
2d4edc5187
Initial implementation of 256 colour support for Irssi
...
This patch implements some 256 colour support for Irssi up from the
previous 16 colours. Initial parsing of the %x/%X format codes is
implemented and the parser accounts in advances the char* for
that.
The colour attributes are widened from 4 to 8 bit. The colour protocol
is changed to a new format. Some pointers to remaining work are
written in the comment in textbuffer.h.
Note that Irssi already does support requesting 256 colours from the
terminal in the original source code, so this part did not have to be
touched.
2014-06-30 00:54:16 +02:00
Alexander Færøy
2e6f16c0fa
Merge pull request #11 from ailin-nemui/print_text_after_time-api
...
add print_text_after_time to specify time stamp for lines
2014-06-30 00:07:14 +02:00
Ailin Nemui
e71c9f1b06
add print_text_after_time to specify time stamp for lines
...
add signal for line removal from textbuffer
2014-06-27 15:50:36 +02:00
Dave Reisner
f0925de16b
s/INCLUDES/AM_CPPFLAGS/g
...
Silences warnings on recent automake such as:
src/core/Makefile.am:3: warning: 'INCLUDES' is the old name for
'AM_CPPFLAGS' (or '*_CPPFLAGS')
2014-06-27 09:06:21 -04:00
Kuang-che Wu
fc4a4d2471
Fix UTF-8 character corruption every 32kb of text buffer
2014-06-18 22:47:17 +02:00
David Hill
9e47f34c3f
g_strcasecmp -> g_ascii_strcasecmp
2014-06-15 16:20:58 -04:00
Ailin Nemui
9ee8e66431
fix print_after scrollback
2014-06-11 11:00:26 +02:00
Emanuele Giaquinta
02aa2682dc
Fix crash in mainwindows_resize_smaller when the 'mainwindows' list is empty.
...
The crash can happen if the terminal height decreases before the first window
is created. Based on a patch by Jaroslav Škarvada (red hat bug #796457 ).
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5217 dbcabf3a-b0e7-0310-adc4-f8d773084564
2012-06-24 14:33:54 +00:00
Alexander Færøy
ada26a8d21
Add missing includes to shut the compiler up.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5139 dbcabf3a-b0e7-0310-adc4-f8d773084564
2010-04-04 12:07:26 +00:00
Alexander Færøy
8728207191
deprecated glib strup/down fixes from exg.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5138 dbcabf3a-b0e7-0310-adc4-f8d773084564
2010-04-03 20:09:37 +00:00
Alexander Færøy
3eea03ccb8
Irssi now detects a paste if it reads at least three bytes in a single read;
...
subsequent reads are associated to the same paste if they happen before
'paste_detect_time' time since the last read. If no read occurs after
'paste_detect_time' time the paste buffer is flushed; if there is at least one
complete line its content is sent as a paste, otherwise it is processed
normally.
Thanks to Emanuele Giaquinta.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5121 dbcabf3a-b0e7-0310-adc4-f8d773084564
2010-02-27 14:57:16 +00:00
Jilles Tjoelker
38306ad488
Allow ctrl+home/ctrl+end to go to the beginning/end of scrollback.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5075 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-05-22 12:48:02 +00:00
Jilles Tjoelker
afdb462c59
Remove unused variables.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5032 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-03-01 00:22:29 +00:00
Jilles Tjoelker
d979a991c8
Check for SIGCONT using a custom GSource instead of every 0.5 second.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5022 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-27 14:20:35 +00:00
Jilles Tjoelker
cb1f07352a
Reject invalid level specifications in /set.
...
Most of these have names that end in "_level".
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5021 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-21 21:17:51 +00:00
Alexander Færøy
c561ba35e6
Code Cleanup:
...
Use g_string_append_printf() instead of g_string_sprintfa() (which is considered deprecated.)
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5003 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-08 17:22:42 +00:00
Emanuele Giaquinta
9fd6a3f3cf
Replace invalid utf-8 bytes with U+FFFD when drawing a line.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4995 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-18 12:46:57 +00:00
Emanuele Giaquinta
2f06196ffb
Fix last change.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4983 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-13 18:51:25 +00:00
Emanuele Giaquinta
fd6bd4d829
Remove broken and unused format to add an indent function to a line.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4982 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-13 18:31:31 +00:00
Emanuele Giaquinta
9dcea776a1
Remove buggy /scrollback redraw - scrollback_save_formats.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4981 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-10 18:38:08 +00:00
Emanuele Giaquinta
edc7dc26fe
Remove memory chunks in favour of memory slices.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4978 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-08 12:39:11 +00:00
Emanuele Giaquinta
5b76b1585f
Remove useless code, cur_line is always the last line of the textbuffer.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4976 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-04 15:56:54 +00:00
Emanuele Giaquinta
1b7296dc5f
Revert r4964, at least one script uses ypos.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4965 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-12 10:42:14 +00:00
Emanuele Giaquinta
feb95100ce
Remove ypos field of TEXT_BUFFER_VIEW_REC, it is used to compute the row
...
position where to draw a new line and if the view is at the bottom of the
textbuffer, but the same information can be computed more easily by other
means.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4964 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-11 20:59:21 +00:00
Emanuele Giaquinta
d71aea5b2b
Remove internal utf8 functions in favour of glib ones.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4958 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-09 11:59:16 +00:00
Emanuele Giaquinta
cba6199958
Cosmetic.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4957 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-09 11:45:23 +00:00
Emanuele Giaquinta
48d0135d3e
Make some functions static.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4956 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-08 17:11:00 +00:00
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