1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-30 06:45:25 +00:00
Commit Graph

67 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
2ba339a26b Added support for using terminfo/termcap instead of curses. By default,
configure chooses to use ncurses if found, of terminfo if only curses was
found. --with-terminfo parameter can be used to specify if you want it or
not.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1924 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 11:30:26 +00:00
Timo Sirainen
2a75c88f99 Added support for changing indentation behaviour with modules.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1912 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 22:52:15 +00:00
Timo Sirainen
85749b70bd Reversed text (^V) works again.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1828 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 10:14:32 +00:00
Timo Sirainen
dbe49236d2 Configurable statusbar - see default config file (irssi.conf) for example
how to configure it. Added %> format which clears to end of line using the
current bg color. Added support for multiple input lines (just the core, not
used anywhere yet).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1821 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-13 16:11:13 +00:00
Timo Sirainen
0d5e569195 Some internal changes how /SERVER command works. Added /SERVER PURGE
[<target>] command. The channel output is purged at /PART if the output
queue is larger than 10.


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


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1752 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 01:19:34 +00:00
Timo Sirainen
79d1d7089a Added --home and --config command line parameters to irssi to specify
locations for ~/.irssi and ~/.irssi/config


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


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


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1569 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26 21:28:00 +00:00
Timo Sirainen
f7e9649286 /SET scrollback_lines 0 now means unlimited.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1556 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-18 15:32:05 +00:00
Timo Sirainen
05777636a7 Replaced all direct curses calls with screen_xx() wrappers. This should
enable us to optionally use termcap directly.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1535 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-01 21:49:07 +00:00
Timo Sirainen
adb7eced39 Rewrote text buffer handling in windows - try #3.
/SET scrollback_save_formats + /SB REDRAW is broken currently. There's some
other minor things that might need to be changed.

This time it allows the same window to be visible multiple times in screen,
like you could make a new split window where to scroll back and find
something while still seeing the new messages at the other window, this
however doesn't work yet but it should be quite easy to make it :)

I've tested that pretty much everything should work with this, new lines can
be added at any position and lines can be removed from any position and
screen should be updated properly. Screen resizing should also work
perfectly now (maybe it did previously too, not sure) and hopefully now we
won't see any of those ugly strange bugs some people were having. Also this
time the same code isn't written 2-3 times to do some specific thing, like
scrolling has now only one view_scroll() function instead of the 3 separate
functions it used to have :)


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


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


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

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


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

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


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1312 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03 18:22:09 +00:00
Timo Sirainen
4718edf055 added format_get_length() for getting length of text part in a format
string. gui_printtext() now works like printtext_string() so %s won't
accidentally crash it. /SET prompt can now have %formats.


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


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


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


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


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1182 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-03 19:29:38 +00:00
Timo Sirainen
59d46dcadf MIRC colors >=16 changed to work as in MIRC (color %= 16)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1066 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-04 19:20:09 +00:00
Timo Sirainen
e81fdd7307 /CLEAR -all - clear all windows.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@961 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-04 20:36:00 +00:00
Timo Sirainen
d174cc6db0 Don't crash if first line in window is just a newline
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@943 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-03 06:07:33 +00:00
Timo Sirainen
085b938dd3 /SB REDRAW fixes, multiline formats should work now correctly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@923 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-02 20:34:00 +00:00
Timo Sirainen
cd3577ef66 fixed text buffer crash when scrollback got full
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@893 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-27 17:18:58 +00:00
Timo Sirainen
8961d23171 Still some warnings removed..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@864 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-23 23:23:45 +00:00
Timo Sirainen
4e0166a44d more warning fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@863 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-23 23:06:29 +00:00
Timo Sirainen
8fb2249f07 hilight-text: whops, bugfix went wrong :)
fe-text: removed the warning that happened when calling printbeep()


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@858 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-22 20:01:47 +00:00
Timo Sirainen
e923b1651a /SCROLLBACK REDRAW - redraw the contents of current window according to
active formats, ie. changing theme changes scrollback.

It's still a bit buggy (can crash) with multiline formats, need to fix
it as soon as I figure out where the problem is..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@852 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-21 03:00:05 +00:00
Timo Sirainen
39630c3d58 windows.h conflicted with microsoft's windows.h :) renamed windows.[ch] to
fe-windows.[ch]


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@846 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-17 16:27:14 +00:00
Timo Sirainen
d1330fff6d Text printing changes. Formats are now optionally saved to each line so
later if you used /format it would change the old lines too. However
the actual line changing doesn't work yet :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@836 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-12 20:20:05 +00:00
Timo Sirainen
b61e210389 removed warning
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@728 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-11 21:10:43 +00:00
Timo Sirainen
11f2accbb1 --disable-curses-windows option to configure
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@723 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-08 12:54:26 +00:00
Timo Sirainen
08c6484b6b Using blinking/bright background colors would crash irssi..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@619 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-22 21:39:18 +00:00
Timo Sirainen
9fbc842c7b Bugfixes for the windowing system.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@548 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-29 17:59:22 +00:00