summaryrefslogtreecommitdiff
path: root/src/fe-text
AgeCommit message (Collapse)Author
2015-11-02Merge branch 'master' of github.com:toddpratt/irssiTodd A. Pratt
2015-11-02Make C-w and M-backspace work right.Todd A. Pratt
2015-11-02Merge pull request #330 from dequis/xterm-keypad-enterailin-nemui
Add xterm's keypad enter, meta-O-M to "key return" bindings
2015-11-01Merge pull request #320 from irssi/ahf/add-setting-type-anydx
Fix warnings
2015-10-06Add xterm's keypad enter, meta-O-M to "key return" bindingsdequis
From the 'kent' terminfo entry. Also applies to putty. Fixes #327
2015-10-04Fix the indentation.LemonBoy
2015-10-03Remove check for >= 0 for unsigned unichar.Alexander Færøy
2015-10-02Even simpler logicLemonBoy
2015-10-02Rework the logic to avoid allocating memoryLemonBoy
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-27Handle empty bracketed pastes (or sequences of those)dequis
Both cases were off-by-one mistakes erring on the side of being too conservative. This fixes these two harmless issues: - For a single empty paste, it required another keystroke before processing it - For a sequence of themcase, a single '~' was left in the input
2015-09-27Handle a paste start marker right after an end one (ignore both)dequis
This actually workarounds a bug with the "st" terminal, for which i've already submitted a patch, but irssi needs to be able to handle it decently too.
2015-09-27Create paste_bracketed_middle() function to handle small pastesdequis
"Small" as in ending in the same sig_input() call where they started
2015-09-27Fix some minor style issuesdequis
2015-09-27Send last line of bracketed paste together with the restdequis
2015-09-27paste_bracketed_end: Fix rest length calculationdequis
2015-09-27Save the part of the paste buffer after the bp_end marker for laterdequis
Also move relevant code to a paste_bracketed_end() function
2015-09-27Improve bracketed paste start/end detectiondequis
- Use a keybinding to detect the start of a bracketed paste - Iterate over the paste buffer looking for the end marker
2015-09-27Get rid of the non-portable memmemLemonBoy
The sequences we're after are found at the beginning or at the end of the buffer, there's no need to scan the whole thing.
2015-09-27Enable the bracketed paste mode on demandLemonBoy
2015-09-27Replace some hairy logic with g_array_remove_rangeLemonBoy
In the hope it'll do the same under the hood.
2015-09-27TogglesLemonBoy
2015-09-27Implement the bracketed paste modeLemonBoy
As an alternative method of paste detection, more reliable but might not be supported by all the VTs.
2015-09-21Fix FS#905, mangled text when pasted line length exceeds 400dequis
http://bugs.irssi.org/index.php?do=details&task_id=905 Not using the patch from that ticket, the issue turned out to be that (dest - last_lf_pos) returned number of unichr, not bytes, so that's 4 times less than what the size parameter of memmove() should be.
2015-09-20Merge pull request #288 from irssi/ahf/kill-gcdx
Remove Garbage Collection support.
2015-09-20Fix warning.Alexander Færøy
Add comment on the use of ??) in C, since that string isn't entirely obvious to people who are reading the code.
2015-09-20Remove Garbage Collection support.Alexander Færøy
GC support was never enabled by default and nobody in the current development team seems to care about it.
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-17Merge pull request #199 from ailin-nemui/config-parserAlexander Færøy
Make config parser more robust
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
2015-03-01Merge pull request #217 from Lohhari/lastlog-dateAlexander Færøy
Added a -date parameter to /lastlog to prepend each row with the ...
2015-02-17fix crash in layout code when encountering wrong configAilin Nemui
2015-02-17Refuse to load broken configs on irssi startAilin Nemui
By temporarily raising the fatal log level to critical during irssi start-up, we make it fail when the config file is broken. This is then re-set so that /reload of a broken config file will not crash irssi and just report the errors and gracefully continue instead.
2015-02-17add CONFIG_REC to config_node_section* APIsAilin Nemui
this adds the CONFIG_REC * to the config_node_section and config_node_section_index APIs as they will require access to the config cache later on to make the config parser more robust.
2015-02-16Merge pull request #115 from ailin-nemui/fix-hat-keyAlexander Færøy
Make ^ key and Ctrl+^ key usable with /BIND
2015-02-16lastlog.c is a mix of tab and space indentation. My changes now use tabs.Vesa Pirila
2015-02-08Added customization possibility for the lastlog date format, lastlog_dateVesa Pirila
2015-02-08Added a -date parameter to /lastlog to prepend each row with the row's dateVesa Pirila
2014-12-14Fix blinking/bold text in terminals with no color supportdequis
Before this, doing "TERM=vt100 irssi" showed all text as bold and blinking because of a failed check of window->term->TI_colors that was doing (value & 8) and not expecting a value of 0. The changed lines themselves look a bit weird, but they make more sense in the context of the original commit, 96a292d4.
2014-11-10reimplement format and length logic for the entry promptAilin Nemui
2014-11-08typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos
2014-09-11source cleanup: remove trailing whitespacesMichael Vetter
2014-09-11support storing and replaying the monospace attribute in textbufferAilin Nemui
2014-08-25Add the signal for printtext_after that was missed in the original commit.Ailin Nemui
Now properly sends "gui print text after finished" signal when using the printtext_after API that was fixed after 0.8.16
2014-08-09Merge pull request #123 from ailin-nemui/terminfo-scroll-check-boundsAlexander Færøy
Add bounds check to array access in terminfo driver.
2014-08-09Add bounds check to array access in terminfo driver.Ailin Nemui
this fixes a crash due to illegal memory access that can occur if something is printed to the screen on the "terminal resized" handler. It is not clear to me whether this race condition can be triggered by external incoming messages, but it might be better safe than sorry.
2014-08-08Merge pull request #109 from cpbills/mastertomaw
Fix right aligned statusbar item redrawing
2014-07-31fix mirc_blink_fixAilin Nemui
the background colours were totally off with mirc_blink_fix enabled. oops. reported by wodim
2014-07-28Modify escape of ^ key so it can be used as well as Ctrl+^Ailin Nemui
Fixes FS#721 This makes Ctrl+^ and ^ bindable again as different keys. We do this by escaping single `^` as `^-`, which is not a valid control character (unlike `^^`) The original approach suggested in FS#721 is insufficient, it will break bindings such as `meta-^` because Irssi is convinced that `^` introduces a Control-key ("key combo") so it is waiting for what may follow.