summaryrefslogtreecommitdiff
path: root/src/fe-text/term.h
AgeCommit message (Collapse)Author
2018-01-08Merge pull request #697 from ailin-nemui/rsplitailin-nemui
sideways split support for Irssi
2018-01-06Add a startup warning if the TERM var is wrong inside tmux/screendequis
One of the most common and confusing issues we get in #irssi, this should help identifying and mitigating it.
2018-01-06sideways split support for Irssiailin-nemui
warning: * may be buggy This commit adds support for sideways splits into Irssi. To that regard, there are a number of new commands available the "R" commands: /window new rsplit - make a new sideways split /window rshow - show an existing window to the right /window rgrow/rshrink/rsize/rbalance - manipulate the size of your sideways split windows the "D" commands: /window dup/ddown/dleft/dright - navigate the windows directionally, as an alternative to /window up/down that you can bind to some key /window move dleft/dright - the same for moving Enjoy!
2016-05-13Move utf8.{h,c} from fe-common/core to core.Xavier G
2016-03-22Make use of terminal application keys configurableailin-nemui
adds a new setting term_appkey_mode which can enable or disable the use of keyboard transmit (application keys) mode. Fixes #430
2015-11-08Merge remote-tracking branch 'origin/master' into bracketed-pastedequis
2015-10-02Fix the display of utf8 sequences in the guiLemonBoy
term_addstr() had a long-standing fixme that suggested it didn't take into account the string encoding when calculating the string length. The BIG5 code path is untested.
2015-09-27Enable the bracketed paste mode on demandLemonBoy
2014-07-07add italics support; don't use standout for reverseLukas Mai
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.
2010-02-27Irssi now detects a paste if it reads at least three bytes in a single read;Alexander Færøy
subsequent reads are associated to the same paste if they happen before 'paste_detect_time' time since the last read. If no read occurs after 'paste_detect_time' time the paste buffer is flushed; if there is at least one complete line its content is sent as a paste, otherwise it is processed normally. Thanks to Emanuele Giaquinta. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5121 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-04-19Remove non-working detach/attach code.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4806 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-16Remove the need to buffer input by moving the 'gui key pressed' eventsEmanuele Giaquinta
generation into term_gets. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4805 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-04Change type of 'chr' argument in terminfo_repeat/term_addch to 'char'.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4795 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-03Add common IS_PRINTABLE macro.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4474 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-14Get the terminal size at startup with ioctl() and use it. Fixes at leastTimo Sirainen
NetBSD. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2616 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
2001-12-17Since I accidentally already committed some of the detach-code, here's theTimo Sirainen
rest of it. It doesn't really work, you can make irssi detached but you can't attach to it anymore :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2268 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-04Never print the last character in screen, this may break some terminals ↵Timo Sirainen
(cygwin at least). term_addstr() now uses const char * instead of char * parameter. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2192 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-16Removed /SET term_scroll_fast - looks like il/dl commands work fine withTimo Sirainen
scrolling region at least in xterm and linux console, so it looks nice and is fast. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2028 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15/SET force_colors -> /SET term_force_colors. Added /SET term_scroll_fastTimo Sirainen
option to specify if we want to scroll with fastest method, or the cleanest method. The default is cleanest and it looks best with xterm, with some other terminals where line-by-line scroll is slow, you might want to use the fast scrolling. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2015 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28term_getch() -> term_gets() which can be used to read multiple keypresses atTimo Sirainen
once. Also fixes keyboard not working with netbsd. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1935 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-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