Timo Sirainen
585527b979
compile fix - patch by manoj@io.com
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1956 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-02 14:53:39 +00:00
Timo Sirainen
f354fe54c7
Moved some stuff from irc to core. Added command_bind_proto() function to
...
bind protocol-specific commands. Added #define command_bind_irc() for easier
access. CMD_IRC_SERVER(server) check should be done at the beginning of each
command requiring IRC server as active server, it handles it correctly the
cases when it is not. Did some other cleanups as well.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1955 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-02 01:05:14 +00:00
Timo Sirainen
95b94ed83c
server->ischannel(char *) -> server->ischannel(SERVER_REC *, char *). Added
...
#define server_ischannel(server, data) and it's now used everywhere..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1954 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-01 22:52:23 +00:00
Timo Sirainen
9833844f38
Buffer overflow fix (read-only, might have caused some crashes).
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1953 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-01 22:30:45 +00:00
Timo Sirainen
f6fea30ff5
Check that it's IRC-channel we're destroying before doing any IRC-specific
...
deinitialization.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1952 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-01 21:04:26 +00:00
Timo Sirainen
083bdc74be
indent_always setting was wrongly set when configuration was changed.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1951 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-01 17:55:49 +00:00
Timo Sirainen
00f94a93a5
Crashfix when module didn't contain deinit() function.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1950 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-31 23:30:34 +00:00
Timo Sirainen
ee93268315
changed default log directory mode to 0700 and file mode to 0600.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1949 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-31 15:18:18 +00:00
Timo Sirainen
91d1be7e67
updated for $cumode_space
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1948 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-30 12:14:01 +00:00
Timo Sirainen
6bc16fc0ed
added $cumode_space expando. Like $cumode, but gives " " if there's no mode.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1947 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-30 12:12:25 +00:00
Timo Sirainen
8b6d6b086e
typofix :)
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1946 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 21:46:46 +00:00
Timo Sirainen
f68c48bcec
Link with $LDFLAGS when trying to compile one of the test programs..
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1945 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 21:32:32 +00:00
Timo Sirainen
7b7b235ce8
forgot to define TI_rep for repeat() command.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1944 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 20:44:45 +00:00
Timo Sirainen
6d1d0208fe
bug in last commit :) background color was broken
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1943 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 19:17:54 +00:00
Timo Sirainen
3d50a058b9
when colors aren't used, don't save last_fg and last_bg. This helps at least clrtoeol().
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1942 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 19:16:14 +00:00
Timo Sirainen
3cdedf5b4b
terminfo's term_clrtoeol() uses the clrtoeol() command only when using the default colors. otherwise it just goes and fills the line with spaces.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1941 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 19:13:52 +00:00
Timo Sirainen
2500457729
Windows weren't created with correct size. When setting statusbar lines for
...
windows, irssi didn't resize the window properly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1940 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 18:42:42 +00:00
Timo Sirainen
4f58b17ecb
/WINDOW SERVER -unsticky crashed irssi if it was used when you weren't connected to server.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1939 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 16:15:47 +00:00
Timo Sirainen
59e310c723
stuff in LIBS moved to PROG_LIBS again. Otherwise linking perl module (and maybe some other stuff as well) tries to link all that with the module.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1938 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 13:43:46 +00:00
Timo Sirainen
6729317cac
not needed anymore, code is in term*.[ch] now.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1937 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 13:04:15 +00:00
Timo Sirainen
92ec922637
clrtoeol() wasn't called always when drawing buffer, so some garbage could
...
have been left to screen.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1936 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 23:52:36 +00:00
Timo Sirainen
801e593718
term_getch() -> term_gets() which can be used to read multiple keypresses at
...
once. Also fixes keyboard not working with netbsd.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1935 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 23:47:47 +00:00
Timo Sirainen
09ca58961b
Removed unused default_real_color, updated default_color's value to "-1"
...
(didn't work without quotes)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1934 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 23:17:38 +00:00
Timo Sirainen
856e1de779
added a "const" to cvtchar() to get rid of compiler warnings
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1933 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 23:08:40 +00:00
Timo Sirainen
6e38cc2645
Even if curses was found, we still need to check if it has terminfo code or
...
just termcap..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1932 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 23:01:22 +00:00
Timo Sirainen
0229a2bd84
Change that should have been committed already
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1931 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 22:06:07 +00:00
Timo Sirainen
20e1de5ae1
terminfo_resize() updated - new terminal width can't be taken by reading it
...
from capabilities. Have to figure out something else (setupterm()?)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1930 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 21:49:35 +00:00
Timo Sirainen
858ed4b1ef
Some resize fixes. With terminfo + /SET indent_always OFF, doubleclicking
...
long words (URLs mostly) that get split into two lines, selects the word
fully.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1929 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 21:17:34 +00:00
Timo Sirainen
3826079dba
Use TCSADRAIN option when changing terminfo settings.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1928 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 19:20:59 +00:00
Timo Sirainen
83324a0ed5
color forcing stuff left from previous commit
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1927 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 18:51:00 +00:00
Timo Sirainen
fb439b5c2a
Redrawing fixes - irssi should now rarely redraw stuff uselessly in screen.
...
Most of the code now just marks the window/statusbar/etc. as dirty, and lets
the dirty-checker handle it later.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1926 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 18:40:12 +00:00
Timo Sirainen
44b12481d6
Fixes for the updated configure.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1925 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 18:30:17 +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
8567481fd0
When scrolling window with eg. scroll_page_count /2, irssi didn't
...
remove window's statusbars lines when calculating number of lines to
scroll.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1923 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-27 11:47:59 +00:00
Timo Sirainen
67cee57fb9
Irssi crashed if script died in statusbar handler.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1922 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-25 19:45:29 +00:00
Timo Sirainen
d9b6bb152a
Added flags option for Irssi::UI::Theme::format_expand().
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1921 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-25 18:17:21 +00:00
Timo Sirainen
39b66ab883
forward_word and backward_word now move only to next/prev non-alphanumeric character. added forward_to_space and backward_to_space. transpose_characters moves the cursor to right. patch by peder@linpro.no.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1920 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-25 14:39:36 +00:00
Timo Sirainen
d4178292e5
Renamed /FORMAT whois_oper_type to whois_oper which is now removed.
...
whois_oper wasn't really used anywhere AFAIK.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1919 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-25 12:02:10 +00:00
Timo Sirainen
be48bdc22c
Added Irssi::current_theme() and Irssi::Theme::format_expand()
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1918 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-25 11:21:18 +00:00
Timo Sirainen
c5c2242ee3
Boot dynaloader too even if perl libraries are compiled statically in irssi.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1917 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-25 10:00:33 +00:00
Timo Sirainen
a2289ab8ae
typofix - s/per/perl/
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1916 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 23:36:06 +00:00
Timo Sirainen
feff2b1adc
bugfix
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1915 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 23:29:48 +00:00
Timo Sirainen
ddf1b27c04
Added --with-perl-staticlib option to configure. If used, irssi's perl
...
libraries are compiled statically into irssi binary.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1914 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 23:17:27 +00:00
Timo Sirainen
bbd4b47306
Removed unfinished code that was not supposed to go to cvs..
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1913 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 23:12:55 +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
f7683c0423
Added a bit better error reporting.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1911 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 22:24:14 +00:00
Timo Sirainen
bdf5bf9785
Removed some unused code.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1910 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 22:18:39 +00:00
Timo Sirainen
b43f210a47
Reset QUIT and INTR keys at quit.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1909 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 21:19:54 +00:00
Timo Sirainen
5f1cc94f84
Redraw was buggy if entry line didn't continue to end of line.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1908 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 14:13:42 +00:00
Timo Sirainen
319e852bb4
window-top-statusbars weren't working properly.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1907 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 13:57:54 +00:00