summaryrefslogtreecommitdiff
path: root/src/fe-text/textbuffer-view.c
AgeCommit message (Collapse)Author
2017-05-27do not reset true colour bit on colour resetailin-nemui
fixes #710
2017-01-31Merge pull request #626 from ailin-nemui/textbuffer_monospaceailin-nemui
support storing and replaying the monospace attribute in textbuffer
2017-01-20implement break_wideailin-nemui
for more pleasant east asian mixed display
2014-09-11source cleanup: remove trailing whitespacesMichael Vetter
2014-09-11support storing and replaying the monospace attribute in textbufferAilin Nemui
2014-07-18fix uninitialised copy on 24bit coloursAilin Nemui
2014-07-07add italics support; don't use standout for reverseLukas Mai
2014-07-06Merge pull request #85 from dgl/werrorAlexander Færøy
Make configure checks able to build with -Werror
2014-07-06Make configure checks able to build with -WerrorDavid Leadbeater
Also fix a few compiler warnings, this combined with pull #82 allows me to build with CFLAGS="-Werror -Wall".
2014-07-04fix compiler warnings in extended colour codeAilin Nemui
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.
2014-06-27add print_text_after_time to specify time stamp for linesAilin Nemui
add signal for line removal from textbuffer
2014-06-11fix print_after scrollbackAilin Nemui
2009-01-18Replace invalid utf-8 bytes with U+FFFD when drawing a line.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4995 dbcabf3a-b0e7-0310-adc4-f8d773084564
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
2009-01-10Remove buggy /scrollback redraw - scrollback_save_formats.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4981 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-12Revert r4964, at least one script uses ypos.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4965 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-11Remove ypos field of TEXT_BUFFER_VIEW_REC, it is used to compute the rowEmanuele Giaquinta
position where to draw a new line and if the view is at the bottom of the textbuffer, but the same information can be computed more easily by other means. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4964 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-15Handle bold/blink attributes like other attributes rather than mapping them toEmanuele Giaquinta
the eighth bit of the color. The formats KBGCRMYW and the mirc colors are now mapped to colors 8-15. fe-text translates colors 8-15 to bold/blink+0-7 if the terminal supports only 8 colors. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4909 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-10-08Fix r4743 change, avoid sign extension.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4875 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-21Use term_add_unichar to print ucs-4 chars.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4812 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09Rename variable.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4744 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09Replace usage of get_utf8_char with g_utf8_get_char_validated andEmanuele Giaquinta
factor the corresponding code into a function. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4743 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-06-17Remove cuix from trunk.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4560 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-31Assume width 1 for control characters in places where a non-negative width isEmanuele Giaquinta
expected. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4535 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-31Rename IS_PRINTABLE macro to unichar_isprint and move it to utf8.h.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4534 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-25Replace utf8_width with Markus Kuhn's wcwidth.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4518 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
2007-05-03Add common IS_PRINTABLE macro.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4474 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-03-12When removing a line from the view also unconditionally remove any bookmark forEmanuele Giaquinta
that line rather than moving it to the next/previous line, if any. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4433 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-02-20UTF-8 0x80-0x9f characters weren't treated as control chars as they should haveTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4425 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-02-17Generalize window_lastlog_clear in textbuffer_view_remove_lines_by_level.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4419 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-14Set view->startline to NULL when the line to delete is the first of the viewEmanuele Giaquinta
buffer and there are no more lines in the view. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4350 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-14Revert r4343.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4349 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-12Revert r4342.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4345 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-12Missing update of view->startline when the line to delete is the first of theEmanuele Giaquinta
view and the first of the view buffer. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4343 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-12Do not restore the previous view when deleting the first line of the current ↵Emanuele Giaquinta
one. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4342 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-08-08Merge of cuix back in trunknattfodd
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4309 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-11-23replace guint by gsize for the glib2 version of irssi_ssl_readValentin Batz
like it's defined in GIOFuncs for glib2 moved src/fe-text/utf8.* to src/fe-common/core changed get_utf8_char so it returns a status code and the unichar argument pointer to the value that it returned before if there were no errors, so you can check for a negative value an handle the error git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4091 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-08-05fix minor textbuffer leak, Bug 288 by TobyWouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3897 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-03-24Fixes for Chinese multibyte characters handling and cursor movement, patchTimo Sirainen
by Wang WenRui git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3244 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-10-26BIG5 stuff is used only if term_type is big5Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3135 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-10-19BIG5 fixes by vanilla@FreeBSD.org(?)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3134 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-10GC fixes.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3056 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-10-14Some changes to make doublewidth chars possibly work (or possibly horriblyTimo Sirainen
break whole utf8 support :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2956 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-18External indent functions (theme_indent module) weren't working properly.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2815 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-13changed log domain and changed few g_return_if_fails to g_asserts. theTimo Sirainen
domain change makes all glib warnings be printed into stderr instead of trying to print them into irssi window which most probably would just mysteriously crash. also irssi doesn't now crash if it thinks screen height is 0 :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2787 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15/SET term_type 8bit|utf8|big5 - Removed --with-big5 configure option, it'sTimo Sirainen
now included the same way as utf8, though i'm not sure if it really works but at least it should partially :) Input line is now internally using 32bit chars but it's converted to 8bit chars for external use. Text buffer supports only 8bit + utf8 for now. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2448 dbcabf3a-b0e7-0310-adc4-f8d773084564