summaryrefslogtreecommitdiff
path: root/src/fe-text/textbuffer-view.c
AgeCommit message (Collapse)Author
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
2002-02-10It's possible to use black foreground color now.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2418 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-01added some pointer casting to get rid of warnings with some compilers.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2365 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-29A bit more better utf8 support, still not a good input line.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2355 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-29Preliminary support for UTF8 with /SET term_utf8 ON. Input line is stillTimo Sirainen
messed up, but lines should wrap properly in text buffer. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2354 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-20Fixed a memory leak.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2329 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18--more-- works again, better than ever :)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2066 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18Fixed the "multiple space split" fix :) It was causing crashes, strange thatTimo Sirainen
it worked in my tests.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2051 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-17If line was split from multiple spaces, irssi printed the spaces in theTimo Sirainen
beginning of the next line - which wasn't good if the next line was statusbar.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2045 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15The default color for line should be ATTR_RESET, not 0 (black).Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2025 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-13Reset the terminal color before scrolling, so the scrolled area's background ↵Timo Sirainen
doesn't get non-black.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2000 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-04Still messing up with colors.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1972 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03Don't clear the window before redrawing, it's faster to do it at the sameTimo Sirainen
time window is being redrawn. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1965 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03update_cmd_color() updated colors wrong.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1962 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03Some fixes to drawing lines & handling long lines.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1958 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-01Buffer overflow fix (read-only, might have caused some crashes).Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1953 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28clrtoeol() wasn't called always when drawing buffer, so some garbage couldTimo Sirainen
have been left to screen. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1936 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28Some resize fixes. With terminfo + /SET indent_always OFF, doubleclickingTimo Sirainen
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-28Redrawing fixes - irssi should now rarely redraw stuff uselessly in screen.Timo Sirainen
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-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-20When resizing terminal smaller, destroy some split windows if they don't fitTimo Sirainen
into screen otherwise. Also, irssi doesn't crash anymore or mess up the screen even if terminal is resized to 1x1 size (not sure of 0x0, my terminal doesn't resize that small, and maybe I shouldn't bother with it anyway :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1855 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14Reversed text (^V) works again.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1828 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14/SET scroll ON - should the windows be scrolled by default when you're atTimo Sirainen
bottom. /WINDOW SCROLL ON|OFF|DEFAULT - Window specific scrolling behaviour, also saved in windows layout. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1751 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-12textbuffer_view_remove_line() fixes (with a small kludge..)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1741 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08Some extra cleanups for /SB CLEAR.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1719 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-12Replaced GList by adding prev/next pointers to LINE_REC. This should makeTimo Sirainen
some things faster and take a bit less memory. Also fixed an evil memory leak. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1611 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-04resizing empty windows didn't work properlyTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1539 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-02bugfixTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1536 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-01Replaced all direct curses calls with screen_xx() wrappers. This shouldTimo Sirainen
enable us to optionally use termcap directly. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1535 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-01s/newline/new_line/ - AIX curses (or something) seems to use #defineTimo Sirainen
newline for something git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1528 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-21scrolling in empty windows crashedTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1511 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-21removing line from the top of the screen crashed irssiTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1507 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-17textbuffer_view_redraw() - call werase() before drawing anything, thisTimo Sirainen
hopefully helps with some buggy curseses. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1505 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-11Line removing fixes, /LAST -clear fixedTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1477 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-11resizing terminal with /CLEARed empty windows scrolled those windows so thatTimo Sirainen
the last screenful of text was visible again. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1474 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-22/SET indent_always - should we indent the long words that are forciblyTimo Sirainen
wrapped to next line. Default is ON. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1456 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-20potential crash fix..Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1451 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-16split windows were broken. added some checks to textbuffer.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1449 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-14resize fixesTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1446 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-14bugfixes for multiple windows support :)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1443 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-14Rewrote text buffer handling in windows - try #3.Timo Sirainen
/SET scrollback_save_formats + /SB REDRAW is broken currently. There's some other minor things that might need to be changed. This time it allows the same window to be visible multiple times in screen, like you could make a new split window where to scroll back and find something while still seeing the new messages at the other window, this however doesn't work yet but it should be quite easy to make it :) I've tested that pretty much everything should work with this, new lines can be added at any position and lines can be removed from any position and screen should be updated properly. Screen resizing should also work perfectly now (maybe it did previously too, not sure) and hopefully now we won't see any of those ugly strange bugs some people were having. Also this time the same code isn't written 2-3 times to do some specific thing, like scrolling has now only one view_scroll() function instead of the 3 separate functions it used to have :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1442 dbcabf3a-b0e7-0310-adc4-f8d773084564