Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use `.. warning::` (#17320) | konsumlamm | 2021-03-10 | 1 | -1/+1 |
| | |||||
* | Use readable escape sequences (#17241) | Clyybber | 2021-03-03 | 1 | -2/+2 |
| | |||||
* | use single backtick (#17133) | flywind | 2021-02-21 | 1 | -13/+13 |
| | |||||
* | add -d:nimStrictMode in CI to keep code from regressing; fixes ↵ | Timothee Cour | 2021-02-17 | 1 | -2/+0 |
| | | | | ConvFromXtoItselfNotNeeded, UnusedImport notes (#16764) | ||||
* | fix some warnings (#16952) | flywind | 2021-02-08 | 1 | -5/+5 |
| | |||||
* | addQuitProc => addExitProc (#16765) | Timothee Cour | 2021-01-22 | 1 | -3/+3 |
| | |||||
* | Deprecate TaintedString (#15423) | Juan Carlos | 2021-01-15 | 1 | -4/+4 |
| | | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com> | ||||
* | Console apps in Windows can raise OSError (#15874) | Luca Guzzon | 2020-11-08 | 1 | -1/+4 |
| | | | | | | | | Console apps in Windows implementation can raise OSError so I've fixed it, see below some examples for reference: - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L170 - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L178 - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L191-L192 - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L196-L197 - ... | ||||
* | terminal: fix fgColor/bgColor commands [backport] (#15554) | alaviss | 2020-10-13 | 1 | -4/+3 |
| | | | | | Since #8296, fgSetColor is no longer a global. These commands were probably left out from the change as an oversight, so some tests have been added to make sure this won't happen again. | ||||
* | fixes #15207 [backport:1.2] | Araq | 2020-08-26 | 1 | -19/+14 |
| | |||||
* | Fix #12759 (#14967) | flywind | 2020-07-12 | 1 | -1/+1 |
| | | | | | * add testcase for #5926 * fix #12759 | ||||
* | nimgrep improvements (#12779) | Andrey Makarov | 2019-12-05 | 1 | -5/+12 |
| | | | | | | | | | | | | | | | | | | * fix sticky colors in styledWrite * nimgrep: context printing, colorthemes and other * add context printing (lines after and before a match) * nimgrep: add exclude/include options * nimgrep: improve error printing & symlink handling * nimgrep: rename dangerous `-r` argument * add a `--newLine` style option for starting matching/context lines from a new line * add color themes: 3 new themes besides default `simple` * enable printing of multi-line matches with line numbers * proper display of replace when there was another match replaced at the same line / context block * improve cmdline arguments error reporting | ||||
* | [backport] run nimpretty on the remaining files | narimiran | 2019-09-30 | 1 | -73/+75 |
| | |||||
* | [refactoring] remove unused imports in the compiler and in some stdlib modules | Araq | 2019-07-18 | 1 | -1/+1 |
| | |||||
* | there is only one style -- my style | Araq | 2019-07-10 | 1 | -16/+16 |
| | |||||
* | styleCheck: make the compiler and large parts of the stdlib compatible with ↵ | Araq | 2019-07-10 | 1 | -23/+23 |
| | | | | --styleCheck:error | ||||
* | fixes #11005 | Araq | 2019-04-12 | 1 | -3/+3 |
| | |||||
* | fixes #8294 [backport] | Araq | 2019-01-15 | 1 | -1/+1 |
| | |||||
* | removes deprecated T/P types | Araq | 2018-11-16 | 1 | -6/+0 |
| | |||||
* | fix #9394 by replacing `fmt` with `strutils.%` (#9417) | Vindaar | 2018-10-18 | 1 | -3/+5 |
| | | | | | | | | * fix #9394 by replacing `fmt` with normal string append Until issue #7632 is fixed, use string append. * use `strutils.%` instead of normal string add | ||||
* | Fix setCursorPos and setCursorXPos on POSIX (#8310) | John Novak | 2018-07-17 | 1 | -2/+2 |
| | |||||
* | Fix terminal.nim to be GCSAFE. (#8296) | Eugene Kabanov | 2018-07-12 | 1 | -85/+73 |
| | | | * Also fix deprecated callsite(). | ||||
* | Make the Style enum a proper Ordinal (no holes) (#8282) | Kaushal Modi | 2018-07-12 | 1 | -4/+7 |
| | | | The Style enum needs to be an Ordinal so that it can be used in sets. | ||||
* | Support setting foreground/background colors to terminal defaults (#8073) | Kaushal Modi | 2018-06-24 | 1 | -8/+32 |
| | | | | | | | | | | | | * Support setting foreground/background colors to terminal defaults Adds fgDefault to ForegroundColor and bgDefault to BackgroundColor enums. For Windows console, the default foreground color is assumed to be white, and the default background color black. * Add default fg/bg color caching for Windows Console | ||||
* | Convert styledWriteLine and styledEcho to templates | Kaushal Modi | 2018-06-18 | 1 | -35/+7 |
| | | | | | | | | This also fixes a bug in the styledWriteLine behavior where the background color leaked onto the next newline if that command did not end with resetStyle. Now it is not necessary to end styledWriteLine calls that set BackgroundColor to end in resetStyle. | ||||
* | Add styledWrite macro | Kaushal Modi | 2018-06-18 | 1 | -12/+74 |
| | | | | | | | | | | | Also: - Move the tests block to the end of the file - Fix the older tests - Add tests for existing styledEcho - Add new tests for styledWrite Fixes https://github.com/nim-lang/Nim/issues/8046. | ||||
* | Add support for italic and strikethrough ANSI escape codes (#8048) | Kaushal Modi | 2018-06-17 | 1 | -3/+6 |
| | | | | | | | \e[3m -> italic \e[9m -> strikethrough On terminals not supporting italic text, the text is shown in reverse instead, and on terminals not supporting strikethrough text, the text is shown as is. | ||||
* | Export an 'escapeXml' proc from xmldom | Zahary Karadjov | 2018-05-07 | 1 | -1/+1 |
| | | | | The interface is similar to escapeJson | ||||
* | Fix the compilation of terminal.nim on Windows | Zahary Karadjov | 2018-05-07 | 1 | -4/+1 |
| | |||||
* | The `terminal` module now exports additional procs for generating ANSI color | Zahary Karadjov | 2018-05-07 | 1 | -21/+43 |
| | | | | codes as strings. | ||||
* | Fixes #7764 (#7767) | Florent | 2018-05-06 | 1 | -0/+4 |
| | | | | | | | | | | * Fixes #7764 * Change KEY_RECORD_EVENT filter * Update terminal.nim * Revert changes and modify readPasswordFromStdIn | ||||
* | Fix bright option (#7622) | WhiteDuke | 2018-04-18 | 1 | -4/+4 |
| | | | Setting the option to true, then to false would not turn off bright attribute. | ||||
* | move `readPasswordFromStdin` from rdstdin to terminal (#7266) | Vindaar | 2018-02-27 | 1 | -0/+50 |
| | |||||
* | revert commit 6cf8a72d498f5cb8a532c2ff3259bc7aecf474ef; Windows fixes getch bug | Araq | 2018-02-27 | 1 | -4/+1 |
| | |||||
* | Fix style string formatting for cursorBackward and cursorForward (#7243) | antizealot1337 | 2018-02-22 | 1 | -2/+2 |
| | |||||
* | terminal.nim: code cleanup | Andreas Rumpf | 2018-01-18 | 1 | -41/+27 |
| | |||||
* | Support truecolor for the terminal stdlib module (#6936) | Dmitry Atamanov | 2018-01-18 | 1 | -14/+177 |
| | |||||
* | Windows: fix a eraseLine bug (#7044) | Dmitry Atamanov | 2018-01-09 | 1 | -3/+2 |
| | |||||
* | Windows: fixes getch bug; fixes #6966 (#7031) | Dmitry Atamanov | 2018-01-05 | 1 | -1/+4 |
| | |||||
* | Fixed compilation error (#6979) | Yuriy Glukhov | 2017-12-27 | 1 | -4/+4 |
| | |||||
* | fix #6931 terminal.eraseline() gives OverflowError on Windows (#6933) | skilchen | 2017-12-17 | 1 | -2/+2 |
| | |||||
* | Remove expr/stmt (#5857) | Arne Döring | 2017-07-25 | 1 | -7/+4 |
| | |||||
* | tiny docstring fix; fixes #5483 (#5484) | Fabian Keller | 2017-03-05 | 1 | -1/+1 |
| | |||||
* | make tests on Windows green under --pedantic | Araq | 2017-02-02 | 1 | -1/+1 |
| | |||||
* | Add terminalHeight, terminalHeightIoctl & terminalSize | John Novak | 2016-11-30 | 1 | -0/+48 |
| | |||||
* | Merge pull request #5058 from johnnovak/terminal-win-fix | Andreas Rumpf | 2016-11-29 | 1 | -3/+6 |
|\ | | | | | Fix setStyle for Windows | ||||
| * | Fix setStyle for Windows | John Novak | 2016-11-26 | 1 | -3/+6 |
| | | | | | | | | | | | | * setStyle did not take the current color flags into account on Windows, this is fixed now * refactoring to get rid of magic constants | ||||
* | | Add hideCursor & showCursor | John Novak | 2016-11-26 | 1 | -0/+40 |
|/ | |||||
* | Use new name for call to low-level terminalWidth. | Charles Blake | 2016-09-01 | 1 | -3/+3 |
| | |||||
* | Make Windows part match Unix part more closely per Araq request. | Charles Blake | 2016-09-01 | 1 | -8/+7 |
| |