summaryrefslogtreecommitdiff
path: root/src/fe-common/core/printtext.c
AgeCommit message (Collapse)Author
2014-11-10reimplement format and length logic for the entry promptAilin Nemui
2014-09-11source cleanup: remove trailing whitespacesMichael Vetter
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-02-08Code Cleanup:Alexander Færøy
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-01-18Emit 'print starting' with the correct argument in printtext_string{,window}.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4994 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-10Factor out printformat_module_dest_charargs function fromEmanuele Giaquinta
printformat_module_dest_args and use it in printformat_perl to remove code duplication. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4979 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09Use g_ascii_str{,n}casecmp for case insensitive comparison withEmanuele Giaquinta
ascii only strings. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4738 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08Oops. Update address correctly now.Wouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4490 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08Update FSF addressWouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4489 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-09-15Fixed memleak in recode.c, fixed typo in special_vars.txt, fixed bug 105, ↵Valentin Batz
fixed bug 106 git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3295 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-08-20Recode patch by decadix/sennethTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3283 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-28Added time, size and level setting types. Breaks some settings - I'll addTimo Sirainen
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-10-18don't crash when trying to print with non-existent module in theme..Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2965 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-14Don't crash when trying to print text when there's no windows yet. AlsoTimo Sirainen
print the text to stdout. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2610 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-13don't update window->last_line timestamp with MSGLEVEL_NEVER text, so >1dTimo Sirainen
/SET autoclose_query setting works with "day changed" messagse. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2433 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-25Added printtext_string_window(), Irssi::UI::Window::print() uses it alsoTimo Sirainen
now. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2141 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-29Removed unused signal_gui_print_text, added a g_return_if_fail(dest->windowTimo Sirainen
!= NULL) to "print text" signal - window should be set or it is treated as GUI print event. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1666 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-18Irssi::printformat() called printformat_window() to print the text whichTimo Sirainen
lost server/target information. Added printtext_dest() function which it uses now. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1642 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-15Hilight fixes - mode lines shouldn't be hilighted accidentally anymore.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1633 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-06-10beep check: don't beep with NO_ACT message level rather than NOHILIGHT sinceTimo Sirainen
NOHILIGHT is sent with public messages and someone may want to beep when they're received. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1543 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-31removed "print text stripped" signal, the stripped text is now sent inTimo Sirainen
"print text" signal's third parameter git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1526 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-17Getting rid of gettext, moved some _(..) texts to themes and left some errorTimo Sirainen
messages hard coded. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1503 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-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-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-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/SET beep_on_msg -> beep_msg_levelTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1146 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-05printtext_string() fix, should actually work now :)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1073 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-05Added printtext_string() which works like printtext(), except it printsTimo Sirainen
text from a string, so that %s, %d, etc. don't work. Changed perl's Irssi::print() use this instead as well as /HELP printer. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1072 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-28emphasis moved to fe-messages. added a few checks so that non-wordsTimo Sirainen
aren't treated as emphasis git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1022 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-04use format_get_text_theme_charargs() instead of ..._args() inTimo Sirainen
printformat_module_dest() since we already have arguments in char ** table. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@953 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-03printtext_multiline(): use the specified level, not MSGLEVEL_NEVER always.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@946 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-03/SET emphasis - convert _underlined_ and *bold* words (and phrases) to useTimo Sirainen
real underlines/bolds. patch by tommik. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@928 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-30send "print starting" signal before each printformat() or printtext()Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@899 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-22bugfixesTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@857 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-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
2000-10-28/SET log_theme - you can now write to log files with different themeTimo Sirainen
than to screen. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@795 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-28Updated new default.theme to module-formats files.Timo Sirainen
default.theme still contains the abstracts. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@794 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-27Support for templates in theme files.Timo Sirainen
module-formats.c files needs to be updated, meanwhile here's default.theme you can use. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@791 dbcabf3a-b0e7-0310-adc4-f8d773084564