summaryrefslogtreecommitdiff
path: root/src/fe-common/core/formats.h
AgeCommit message (Collapse)Author
2015-12-28keep track of address in text_dest for hilight purposesailin-nemui
2015-12-15clean up after #303ailin-nemui
2015-09-24Applied patch from fs#275 to make /hilight -mask -line work properlyJari Matilainen
2014-07-07add italics support; don't use standout for reverseLukas Mai
2014-06-30Finish 256 colour support for IrssiAilin Nemui
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-30Initial implementation of 256 colour support for IrssiTom Feist
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.
2009-01-13Remove broken and unused format to add an indent function to a line.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4982 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-02Fix r1569, assign a proper mask to PRINT_FLAG_UNSET_LINE_START.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4939 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-26%# now toggles monospace font on/off. fe-text doesn't care about it, butTimo Sirainen
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-21struct naming changesTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2700 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10*** empty log message ***Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2553 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-04printtext(): you can now specify server target with tag name instead ofTimo Sirainen
record. This is useful with DCC chats when you know the initial server tag but the server might be already disconnected. So what this means is that you now get ~/irclogs/ircnet/=nick.log instead of ~/irclogs/=nick.log :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2388 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25window_get_theme() now checks that window isn't NULL, so we don't crash ifTimo Sirainen
something tries to print to screen when there's no windows yet. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2146 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-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-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-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-12added format_real_length()Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1380 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03/SET beep_when_window_active + some cleanupsTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1313 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-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-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-09Highlighting cleanups. Added /HILIGHT -priority option.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1098 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-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-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-13Forgot to call formats_init() / ..deinit()Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@837 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