summaryrefslogtreecommitdiff
path: root/src/fe-text/terminfo-core.c
AgeCommit message (Collapse)Author
2016-08-04remove curses terminal and ncurses macroailin-nemui
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
2016-03-22Merge pull request #457 from ailin-nemui/fix_450ailin-nemui
fix race condition in terminal init
2016-03-22Properly toggle bracketed paste mode on stop/contailin-nemui
Fixes #449
2016-03-22fix race condition in terminal initailin-nemui
remove the tcgetattr call to a single time on irssi load instead of querying it each time. Fixes #450
2015-09-19Modify the terminal initialization sequenceLemonBoy
We disable the ICRNL flag to make Enter independent from ^J from the keybinding point of view since the former will now send ^M, leaving the user free to remap ^J without trapping itself into the irssi session because of a broken Enter key. Also disable the software flow control because we don't expect anyone to run irssi over a serial console; we gain some more freedom by having ^Q and ^S freely mappable by the user.
2015-09-06Send smkx/rmkx sequence at terminal initLemonBoy
Enter the "application" mode when setting up the terminal, this improves the compatiblity with the standards; as a side effect now DEL key works ootb when irssi is run in the suckless's st terminal.
2015-04-07Change all strcmp() to g_strcmp0() to handle nulls gracefullydequis
Just a string replacement (but i did check every one of them) sed -i 's/strcmp(/g_strcmp0(/g' **/*.c
2014-07-07add italics support; don't use standout for reverseLukas Mai
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.
2008-04-20Simplify computation of TERM_REC fields offsets using ↵Emanuele Giaquinta
G_STRUCT_OFFSET/G_STRUCT_MEMBER_P. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4807 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
2008-03-31Print warning messages to stderr rather than to stdout.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4793 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-01-25Update the terminfo backend to query the 'colors' capability and support moreEmanuele Giaquinta
than 16 colors (sync from icecap). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4687 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-01-24Add function to set blink to the terminfo backend.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4685 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-01-24Remove empty function.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4684 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-01-31Fix colors with TERM=xterm-{88,256}color, patch by Emanuele GiaquintaValentin Batz
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4231 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-11-15Fixed return code of term_init (resulted in segfault with invalid TERM andJochen Eisinger
termcap) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4076 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-14Scrolling was buggy with "ri" method, it tried to used "rin" as wellTimo Sirainen
which crashed irssi.. Happened at least with NetBSD/sparc. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2615 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-11-12Prefer scrolling with n lines insert/remove to 1 line at a time scrollingTimo Sirainen
region. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1991 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03Reset the color before clearing screen. Set the cursor invisible when movingTimo Sirainen
around in screen and set it visible again when it's in wanted position. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1964 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29forgot to define TI_rep for repeat() command.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1944 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29terminfo's term_clrtoeol() uses the clrtoeol() command only when using the ↵Timo Sirainen
default colors. otherwise it just goes and fills the line with spaces. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1941 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-28terminfo_resize() updated - new terminal width can't be taken by reading itTimo Sirainen
from capabilities. Have to figure out something else (setupterm()?) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1930 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28Use TCSADRAIN option when changing terminfo settings.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1928 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