summaryrefslogtreecommitdiffstats
path: root/input.c
AgeCommit message (Collapse)Author
2009-07-14Support "alternate screen" mode (terminfo smcup/rmcup) typically used by fullNicholas Marriott
screen interactive programs to preserve the screen contents. When activated, it saves a copy of the visible grid and disables scrolling into and resizing out of the history; when deactivated the visible data is restored and the history reenabled.
2009-06-25Restore $Id$ and add script to do so.Nicholas Marriott
2009-06-25Implement the CBT (backward tab) sequence (\033[Z).Nicholas Marriott
2009-06-25Proper support for tab stops (\033H etc), using a bitstring(3). Makes anotherNicholas Marriott
vttest test happy.
2009-06-25Okay, so I screwed up when testing this, doh. Unbreak so that CAN/SUB actuallyNicholas Marriott
do cancel the sequence, and tweak to make the code more clear.
2009-06-25Oops, CAN and SUB should abort the sequence (return to first state), not remainNicholas Marriott
in the same state.
2009-06-25More input compatibility love. Support C0 within escape sequences, and the C0Nicholas Marriott
control character VT (vertical tab, \013), which is treated as LF like VT102. Makes another vttest happy.
2009-06-25Implement the DEC alignment test. With the last change this is enough for theNicholas Marriott
first cursor test in vttest (in ports) to pass; it still shops a few more problems though.
2009-06-25Pass window titles through vis(1). <0x20 is dropped anyway by the input stateNicholas Marriott
machine but top-bit-set nonprintables could cause trouble, and they are neater like this anyway.
2009-05-04Space trimmage mega-diff.Nicholas Marriott
2009-04-23Support NEL.Nicholas Marriott
2009-03-28Better UTF-8 support, including combined characters. Unicode data is now storedNicholas Marriott
as UTF-8 in a separate array, the code does a lookup into this every time it gets to a UTF-8 cell. Zero width characters are just appended onto the UTF-8 data for the previous cell. This also means that almost no bytes extra are wasted non-Unicode data (yay). Still some oddities, such as copy mode skips over wide characters in a strange way, and the code could do with some tidying.
2009-03-28Step 2 of the Grand Plan To Make UTF-8 Better.Nicholas Marriott
Split grid into two arrays, one containing grid attributes/flags/colours (keeps the name grid_cell for now) and a separate with the character data (called text). The text is stored as a u_short but is treated as a uint64_t elsewhere; eventually the grid will have two arrays. I'm not happy with the naming so that might change. Still need to decide where to go from here. I'm not sure whether to combine the peek/set functions together, and also whether to continue to treat the text as a uint64_t (and convert to/from Unicode) or make it a char array (of size one when UTF-8 disabled, eight when enabled) and keep everything as UTF-8. Also since UTF-8 will eventually become an attribute of the grid itself it might be nice to move all the padding crap into grid.c.
2009-01-18Unbreak UTF-8.Nicholas Marriott
2009-01-11Window splitting. Two vertical panes fixed 50% each. This is a huge diff, ↵Nicholas Marriott
still a couple of bugs (notably heap corruption somewhere causing segfault on exit).
2009-01-10Trim spaces.Nicholas Marriott
2009-01-08Don't return NULL when retrieving a string that is too long.Nicholas Marriott
2009-01-07Introduce nitems() and use it; use bsearch.Nicholas Marriott
2008-12-08Make window options work the same was as session options, add ↵Nicholas Marriott
mode-fg/mode-bg options, force -g for global on set/show/setw/showw/
2008-12-05Ability to show window title on status line.Nicholas Marriott
2008-11-16Disable UTF-8 by default and add options to enable it.Nicholas Marriott
2008-11-04Record intermediate for p2/s2 and fake up charset redefinition (some ↵Nicholas Marriott
programs use it to switch character set).
2008-11-04This breaks mutt.Nicholas Marriott
2008-11-04Alternative charset commands.Nicholas Marriott
2008-10-09Better OSC support for title setting, and support APC as well.Nicholas Marriott
2008-09-26SGR should not reset charset... don't know how this worked before...Nicholas Marriott
2008-09-26Make RIS also reset scroll region.Nicholas Marriott
2008-09-26Trim.Nicholas Marriott
2008-09-25Internal screen data rewrite for better 256 colour/UTF-8 support.Nicholas Marriott
2008-09-09Initial UTF-8 support.Nicholas Marriott
2008-09-09Unbreak 256 colours when commands are combined.Nicholas Marriott
2008-09-08Fix bold/non-bold mismatch in 256 colour mode by adding an extra 8 bits ↵Nicholas Marriott
(ick) onto the attributes and using two of them to mark the fg and bg as 256 colours when necessary. If only it was 255 colours we would have one value for default and wouln't need this :-/.
2008-09-08Comments.Nicholas Marriott
2008-09-08Get the colours right.Nicholas Marriott
2008-09-08Initial 256 colour support, lightly tested.Nicholas Marriott
2008-07-24Support keypad mode, and get rid of SCREEN_DEF*. Meant to commit these ↵Nicholas Marriott
separately but forgot :-/.
2008-07-23Support keypad. Change cursor key output.Nicholas Marriott
2008-06-18Missing NULL check.Nicholas Marriott
2008-06-04Revert attempt to fix stray updates, turns out it was clock :-/.Nicholas Marriott
2008-06-04vi keys from Will Maier.Nicholas Marriott
2008-06-04Add activity monitoring, also invert items on taskbar which have activity.Nicholas Marriott
2008-01-03Some key tweaks, fix status bar to not rely on attr.Nicholas Marriott
2007-12-06Fix charset stuff.Nicholas Marriott
2007-12-06Major reorganisation of screen handling.Nicholas Marriott
2007-11-30Change window name on \ek...\e\.Nicholas Marriott
2007-11-27Preliminary mouse support.Nicholas Marriott
2007-11-27Don't nuke charset flag on [0m. Also rename DRAWING -> CHARSET flag.Nicholas Marriott
2007-11-27Clear current line properly on clear eos.Nicholas Marriott
2007-11-27Big internal reorganisation to move tty control into parent.Nicholas Marriott
2007-11-24Support for VT100 graphics mode. Also lose some redundant checks.Nicholas Marriott