summaryrefslogtreecommitdiff
path: root/src/fe-common/core/formats.c
AgeCommit message (Collapse)Author
2002-02-02Replaced /SET msgs_timestamps with /SET timestamp_level, defaults to ALL.Timo Sirainen
/SET timestamps must be ON for timestamp_level to have any effect. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2369 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-27toupper(), tolower(), isspace(), is..etc..() aren't safe with chars in someTimo Sirainen
systems, use our own is_...() functions now instead. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2348 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-09small bugfix, mirc color flag was set on unless both /set hide_mirc_colorsTimo Sirainen
and /set hide_text_style was on. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2300 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-20Added WINDOW_REC declaration to common.h, removed unneeded #include ↵Timo Sirainen
"servers.h" from fe-windows.h which broke several files, added the #include in them. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2272 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07/SET hide_mirc_colors - patch by paul@raade.orgTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2218 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25/FORMAT timestamp and /FORMAT day_changed use now strftime()-styleTimo Sirainen
formats for specifying time. %x is still treated as color format, so you'll need to escape them with another % (%%H:%%S). The $ parameters don't work anymore. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2142 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28Added support for using terminfo/termcap instead of curses. By default,Timo Sirainen
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-24Added support for changing indentation behaviour with modules.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1912 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21Don't expand %{ and %} in themes to { and } - they could be treated asTimo Sirainen
abstracts again. Printing %{ and %} now prints just { and }. This fixes printing {stuff} in statusbar (eg. {nick}). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1885 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-13Configurable statusbar - see default config file (irssi.conf) for exampleTimo Sirainen
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-09-20special vars: added PARSE_FLAG_ONLY_PARAMS. Theme loading now uses it soTimo Sirainen
you can use $C etc. in themes to print the active channel. printformat() also expands it now correctly to the server/target where the message was printed, not to the active window's server/target. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1802 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-13/LOG OPEN -color, /SET awaylog_colors - specifies that the color codesTimo Sirainen
should be written to log file. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1742 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-27Fixed window specific themesTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1575 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26"print text finished" -> "gui print text finished". Added %[options] formatTimo Sirainen
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-05-10/SET hide_server_tagsTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1467 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-14related changes to textbuffer update..Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1444 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-17%F = blinking on/off. several fixes to make blinking work better. someTimo Sirainen
hilight fixes. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1403 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-17Hilighting updates. /HILIGHT -color, /SET hilight_color and /SETTimo Sirainen
hilight_act_color now use %codes for specifying color. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1402 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-15^O reset only colors, not underlines etc.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1393 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-12added format_real_length()Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1380 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03Removed all beep handling from text printing. If you want to beep justTimo Sirainen
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-02-22strip_real_length(): initialize last_color_pos and last_color_len toTimo Sirainen
-1. Word hilighting crashed if there was no colors set in the line.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1282 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-21/SAVEWINDOWS -> /LAYOUT SAVE. Added /LAYOUT RESET. Initialize GLib logTimo Sirainen
-> Irssi windows _after_ windows are created.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1278 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-21added format_get_length() for getting length of text part in a formatTimo Sirainen
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-19Highlight colors can now have background color set with fg,bg. WorksTimo Sirainen
with activity list too, useful for example blinking. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1249 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-03Added gui_printtext() function for printing text in printtext() formatTimo Sirainen
to screen in specified position. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1182 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-28%N does now same as %n, except in .theme files it always does theTimo Sirainen
terminal default color while %n sets the "previous color". git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1150 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-22strip_real_length() : bolds, underlines, etc. one character stylingTimo Sirainen
left it to infinite loop git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1140 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-21Highlighting updates. -word renamed to -full. Added new -word optionTimo Sirainen
meaning to highlight only the found word in line. Removed -nonick option but added -line which means pretty much the same. -actcolor specifies what color to show in activity list, default is the same as -color. Also uses the nick cache to match nickmasks faster. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1139 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-14Use | instead of + when playing with ansi colors. Doesn't changeTimo Sirainen
anything really, except if someone now wants to change ansi colors to some bright colors it's easier.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1118 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-09Highlighting cleanups. Added /HILIGHT -priority option.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1098 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-07In core/module-formats.h: IRCTXT_ -> TXT_Timo Sirainen
Added "message irc ctcp" signal to print CTCPs git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1094 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17/SET prompt, /SET prompt_window - Specifies the text in prompt.Timo Sirainen
'prompt' is used when channel or query is active in window and 'prompt_window' is used with empty windows. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1005 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-04removed useless if conditionTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@954 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-02Print timestamps correctly with /SB REDRAWTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@926 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-21crashfixTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@855 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-21/SCROLLBACK REDRAW - redraw the contents of current window according toTimo Sirainen
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-18compiler warning fixes + one real bug in dcc-chatTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@850 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-17windows.h conflicted with microsoft's windows.h :) renamed windows.[ch] toTimo Sirainen
fe-windows.[ch] git-svn-id: http://svn.irssi.org/repos/irssi/trunk@846 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-12Text printing changes. Formats are now optionally saved to each line soTimo Sirainen
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-10-28Cleaned up printtext.c, split part of it to formats.cTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@796 dbcabf3a-b0e7-0310-adc4-f8d773084564