« get me outta code hell

tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/util
AgeCommit message (Collapse)Author
2019-01-25Expose xterm alternate screenFlorrie
2018-12-08Stop tracking mouse on cleanCursor()Florrie
This way when a program is exited, the mouse will go back to normal (so you can scroll the terminal log, etc).
2018-12-08Set VT200 mouse instead of X10 mouseFlorrie
Reference: http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking For some reason this works better with tmux than X10 mouse (and it still works in ordinary, non-tmux windows).
2018-12-08Mouse supportFlorrie
Not exactly the most elegant implementation, but it definitely works and isn't really difficult to code around!
2018-12-05Add utility measureColumns function to ansi.jsFlorrie
This way layouts can properly support wide characters.
2018-12-05Wide character support in ANSI compressorFlorrie
2018-12-04Optimize - don't do attributes.slice() as oftenFlorrie
If it makes sense to reuse an attributes array, do that.
2018-12-04Un-broken optimizationFlorrie
(reverted broken stuff; still a little optimization, i.e. cache cursorIndex)
2018-12-04Broken optimizationFlorrie
2018-06-04isCharacter telchar util functionFlorrie
2018-06-03isPageUp / isPageDown functions, simpler combo detection codeFlorrie
2018-06-02CommandLineInterfacer/Flushable resize supportFlorrie
2018-05-31Let-const nitpicksFlorrie
2018-05-30Add isCaselessLetter util functionFlorrie
2018-05-30Better ANSI-interpret debug messagesFlorrie
* Show the number of KB saved * Make the percent-saved a little more precise * Don't update the debug message if absolutely nothing changed on the screen (although, it's still saving however much data it would have taken to render the entire screen!!) * Just draw a bar across the whole screen, instead of a few extra " " characters - technically this adds a whole bunch of data itself but it's assumed that you aren't on limited data if you're debugging how much data the interpreter saves
2018-05-30Shading characters, for funFlorrie
2017-12-10Show/hide cursor in ANSI interpreterFlorrie
2017-12-10Clean up old state code in ANSI interpreterFlorrie
2017-12-10Set the ANSI compressor on OVERLOAD (underload?)Florrie
2017-12-10Interpret 'off' SGR commands in ANSI interpreterFlorrie
2017-12-10Add compression statistic monitor to FlushableFlorrie
2017-12-09Make ansi interpreter work with selective control sequencesFlorrie
2017-12-08Make isEnter work with normal terminalsFlorrie
2017-12-08Add backspace and shift-arrows to telcharsFlorrie
2017-12-08Add arrows to unicharsFlorrie
2017-12-08Add invertOff ansi functionFlorrie
2017-07-03Improve cursor displayliam4
- Whether the cursor is displayed or not is now based on the cursorVisible property rather than whether cursorX and cursorY are set or not. - The actual shell cursor is now invisible... this is objectively an act of Evil, though! This doesn't look like too hard to fix, thankfully. - A new cleanCursor function has been added to ansi.js.
2017-07-03A long-due cleanup + examples + thingsliam4
..Obviously this breaks old things (particularly, see changes in FocusElement).
2017-01-07Initial commitLiam