Arne Döring
000b8afd26
Remove expr/stmt ( #5857 )
2017-07-25 09:28:23 +02:00
Fabian Keller
d1d32f657a
tiny docstring fix; fixes #5483 ( #5484 )
2017-03-05 10:44:25 +01:00
Araq
e236039d10
make tests on Windows green under --pedantic
2017-02-02 21:12:36 +01:00
John Novak
3fcb8a3246
Add terminalHeight, terminalHeightIoctl & terminalSize
2016-11-30 21:29:35 +10:00
Andreas Rumpf
ab43ad13dc
Merge pull request #5058 from johnnovak/terminal-win-fix
...
Fix setStyle for Windows
2016-11-29 01:57:14 +01:00
John Novak
88e01ffd92
Add hideCursor & showCursor
2016-11-26 21:08:01 +10:00
John Novak
64dd3eb9c1
Fix setStyle for Windows
...
* setStyle did not take the current color flags into account on Windows, this
is fixed now
* refactoring to get rid of magic constants
2016-11-26 16:36:08 +10:00
Charles Blake
e4ddcd836c
Use new name for call to low-level terminalWidth.
2016-09-01 14:44:33 -04:00
Charles Blake
d65589fe27
Make Windows part match Unix part more closely per Araq request.
2016-09-01 08:49:07 -04:00
Charles Blake
8df2078f08
Change type name to be more NEP-1-ish as per Araq request.
2016-09-01 08:33:39 -04:00
Charles Blake
5db1de87b1
Convert TaintedString to string.
2016-09-01 08:16:28 -04:00
Charles Blake
7b73a94afc
Oops - L_ctermid must be a global var to compile.
2016-09-01 07:54:17 -04:00
Charles Blake
19f83ccd0b
Add terminal.terminalWidth and supporting types/calls.
2016-09-01 07:34:42 -04:00
Andreas Rumpf
0834cd63d9
prepare Nim codebase for upcoming parser changes
2016-07-15 12:56:03 +02:00
miere43
7fc9585f7b
getch() asserts to doAsserts
2016-06-26 17:46:43 +03:00
miere43
57bd50a916
Removed INPUT_KEY_RECORD
2016-06-26 16:01:37 +03:00
miere43
dd7a24d8cc
Implemented terminal.getch() for Windows
2016-06-23 23:22:38 +03:00
Araq
3ccd5ca64b
make terminal.nim work with --app:gui
2015-10-19 16:09:35 +02:00
Adam Strzelecki
2bc6acc808
terminal: Support both styled stdout and stderr
...
This is important if we want to write styled diagnostics to stderr, eg. some
tool outputting results to stdout, but writing styled error messages to stderr.
Previously this module was assuming we are writing only to stdout. Now all
module procs take file handle as first argument. Wrappers assuming stdout are
provided for backwards compatibility.
The new terminal.styledWriteLine(f, args) is provided and documented as
counterpart for unstyled plain writeLine(f, args).
2015-10-16 20:55:17 +02:00
Adam Strzelecki
9ef50717fa
terminal: Remove superflous hStdout = conHandle
...
Use just hStdout on Windows to keep handle to process stdout.
2015-10-16 20:55:17 +02:00
patrick dw
15e7fe787a
renamed writeln to writeLine in lib
2015-06-19 01:02:22 -05:00
Adam Strzelecki
1057770ce5
colors: Introduce resetStyle enum & use templates
...
1. Introduce TerminalCmd enum and resetStyle that can be issued to issue
resetAttributes within styledEcho arguments.
2. Use templates to resolve styledEcho arguments for performance reasons.
3. Try to avoid calling trailing write "\n" and reset attributes where possible.
2015-06-15 11:26:53 +02:00
Araq
d4610d7716
terminal doesn't use enormous windows module anymore
2015-06-10 11:32:10 +02:00
pdw
d18e18060e
lib/pure/p-t - Dropped 'T' from types
2015-06-04 13:18:36 +02:00
Araq
3c13508b25
terminal: doc improvments
2015-05-28 12:51:17 +02:00
def
e5a186a419
Fix Termios wrapper
2015-04-24 19:41:12 +02:00
Oleh Prypin
32109a7867
Don't run non-test code when defined(testing)
2015-04-21 14:37:29 +03:00
Araq
419199bf9a
don't use conio.h on windows ( #2137 )
2015-03-08 14:45:06 +01:00
def
8640efcd40
Document terminal.getch
2015-02-04 14:10:58 +01:00
def
f3124e6de4
Add terminal.getch to get a single character
2015-02-03 17:27:59 +01:00
Varriount
41d11e0def
Fix #1906
2015-01-22 18:34:33 -05:00
Araq
28c3de7d3e
updated terminal.nim
2014-08-29 01:02:04 +02:00
Araq
649dfa09c4
updated poly.nim
2014-08-28 08:50:01 +02:00
Araq
e12f9518cc
more modules updated
2014-08-28 01:54:36 +02:00
Araq
11b6958755
big rename
2014-08-27 23:42:51 +02:00
Araq
bf205fa85d
case consistency part 6
2013-12-28 01:17:02 +01:00
Dominik Picheta
9686d92bfc
Fixed OSError deprecation warnings.
2013-06-26 00:00:07 +01:00
Dominik Picheta
9540a93d95
Fixed terminal module so that it doesn't raise an EOS exception when stdout is redirected.
2013-06-22 19:57:12 +01:00
Grzegorz Adam Hankiewicz
72a3e21f28
Removes executable bit for text files.
2013-03-16 23:53:07 +01:00
Araq
b4844a189d
parameter passing works the same for macros and templates; use callsite magic to access the invokation AST
2012-08-28 22:15:29 +02:00
Araq
9a7f0cd851
bindSym suffices; no 'bind' for macros anymore
2012-08-25 01:34:50 +02:00
Araq
c7ba6f5eb6
implemented 'bind' for macros
2012-08-24 01:18:03 +02:00
Araq
ba3f90cc25
added terminal.isatty; nimgrep version 0.9
2012-04-06 21:26:48 +02:00
Araq
72651de710
bugfix: 'when' sections in generic objects now work, so TThread[void] compiles
2011-11-20 16:13:03 +01:00
Araq
c138cc36b4
new syntactic construct: a{i}
2011-10-08 02:14:42 +02:00
Zahary Karadjov
4a444bf6db
*Pimped up* the test runner with colorful output
...
Added: terminal.styledEcho macro
2011-10-07 17:10:04 +03:00
Keita Haga
b40d55b68e
lib/pure/terminal.nim: fixed bug where the styleReverse doesn't work on Unix-like systems
2011-08-16 01:48:56 +09:00
Araq
77d045b3ac
bugfix terminal compiles for windows again
2011-02-07 00:04:31 +01:00
Andreas Rumpf
40ea1d0330
fixed pango/pangoutils new wrappers
2010-02-26 01:26:16 +01:00
rumpf_a@web.de
40a5d6c3b9
continued work on html/xmlparser
2010-02-14 00:29:35 +01:00