summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-entry.c
AgeCommit message (Collapse)Author
2008-12-09Remove internal utf8 functions in favour of glib ones.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4958 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-09Cosmetic.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4957 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-03Manually inline cell_width.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4942 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-03Simplify.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4941 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-18Move check on term_type outside of strlen_big5.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4917 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-12-12Revert r2471, having the erase commands clear the cutbuffer when theEmanuele Giaquinta
line is empty is annoying and not useful. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4667 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-25Make word commands unicode friendly.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4522 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-25Add function to delete the whole cell under the cursor and use it forEmanuele Giaquinta
delete_character. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4521 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-25Move the cursor cell-wise in utf8.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4520 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-25Forbid insertion of a character with width 0 as the first character inEmanuele Giaquinta
the prompt. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4519 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-04-14Reindent.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4450 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-14Modify gui_entry_draw_from to clear to end of line only if it has notEmanuele Giaquinta
written till the last column. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4449 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-14Revert r4352.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4444 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-02-07Redraw input line correctly in an utf8 locale when deleting aEmanuele Giaquinta
nonspacing char by taking in account the cell width, bug #459. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4414 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-02-06Amend check for non printable chars to filter control chars 80-9F in an utf8 ↵Emanuele Giaquinta
locale, bug #460. Note: this was and is still broken with koi8-r. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4413 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-17Fix off-by-one error.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4352 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-01-29Fixed a bug where tab-complete didn't worked with utf8/big5 multibyte ↵Valentin Batz
characters properly git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4229 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-11-02Compile with glib1 again (part of patch from peder). g_unichar_*-ifying ↵Wouter Coekaerts
(making more things unicode aware) will probably have to wait till .11 git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4063 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-08-27Implementation of the meta-[cult] (capitalize words, upcase word, downcase ↵Valentin Batz
word, transpose words) key-bindings from the TODO by Peder Stray git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3963 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-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-02-25^Y shouldn't crash with empty cutbufferTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2529 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-20Backspace/delete shouldn't modify cutbuffer.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2520 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-20stupid bug :) lines longer than 1024 chars made irssi crash.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2519 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-16Cutbuffer should be cleared when ^U is used in empty line (or in general, 0Timo Sirainen
chars is erased) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2471 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15don't crash if trying to erase 0 chars and there's no cutbuffer.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2456 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15transpose_characters was brokenTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2454 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-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-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
2001-12-19Never allow adding CR or LF characters to input line, they could mess up ↵Timo Sirainen
everything. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2270 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-25forward_word and backward_word now move only to next/prev non-alphanumeric ↵Timo Sirainen
character. added forward_to_space and backward_to_space. transpose_characters moves the cursor to right. patch by peder@linpro.no. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1920 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24Redraw was buggy if entry line didn't continue to end of line.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1908 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14delete_previous_word and delete_next_word now deletes only untilTimo Sirainen
non-alphanumeric character is found. added delete_to_next_space command. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1833 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-13When active input line was destroyed, irssi didn't set active_entry to NULL.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1823 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-08-08Never insert NUL characters to entry line (Ctrl-Space)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1723 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-01more #endif WANT_BIG5 -> #endif changesTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1531 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-01--with-big5 enables Chinese Big5 charset support. Patch by vanilla@freebsd.orgTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1458 dbcabf3a-b0e7-0310-adc4-f8d773084564