Will Fuqua
b61cb830c3
allow scheme parsers to opt out of attempting to parse a file
...
This fixes the issue where the INI file parser can throw errors because it's attempting to parse an `.itermcolors` (xml) file.
2019-04-23 22:04:18 +07:00
Will Fuqua
05f518db5b
replace mutable public fields with properties
...
The properties are made readonly where possible, which is possible in almost all cases.
2019-04-23 21:51:05 +07:00
Will Fuqua
7daea0a25c
pull logic out of Program.cs
...
There aren't any user-facing changes in this commit, just pulling logic out of Program.cs. All that remains in Program.cs is command line parsing.
- The functions that wrote to the registry, the console, and the virtual terminal (--xterm) are now in their own files, implementing the `IConsoleTarget` interface
- Move the utility method UIntToColor into ColorScheme, where it can be used as an indexer, e.g. myColorScheme[i] returns a System.Drawing.Color
- The "export to INI" functionality is now in a "SchemeWriters" namespace; Parsers are now in a "SchemeParsers" namespace
- Printing the color table is now in the ColorTable class.
2019-04-23 21:10:16 +07:00
oising
7eea98d4ea
add sln file
2019-04-21 13:32:04 -04:00
oising
cade139e0c
initial commit for tools/readconsoleinputstream PR
2019-04-21 13:31:36 -04:00
Michael Niksa
619a80ea14
Merge pull request #400 from LokiMidgard/back-and-forground-index-export
...
Back and forground index export
2019-04-02 10:21:23 -07:00
Patrick Kranz
2661fbe0b9
put console attributes in own variable
2019-04-02 19:09:59 +02:00
Patrick Kranz
a247624e90
encapsule console attributes in struct
2019-04-02 19:09:54 +02:00
Patrick Kranz
3484e07089
Fix spelling of foreground (was forground)
2019-04-02 19:09:36 +02:00
Patrick Kranz
9bf9a6f62c
add popup color support to json format
2019-04-02 19:08:53 +02:00
Patrick Kranz
c1e1f5124c
Merge branch 'master' into back-and-forground-index-export
2019-04-02 19:04:50 +02:00
Michael Niksa
3990a68770
Merge pull request #402 from LokiMidgard/json-parser-screen-color-support
...
added Support for parsing screen color in json
2019-04-01 19:16:01 -07:00
Mike Griese
ecea0c9f40
Merge pull request #401 from avdi/master
...
Document loading colortool schemes from current dir
2019-04-01 07:30:37 -07:00
Patrick Kranz
b38f6ffbd1
Added check if screen or popup colors were not found.
2019-03-29 21:53:50 +01:00
Patrick Kranz
e6500864bc
added Support for parsing screen color in json
2019-03-29 21:52:04 +01:00
Avdi Grimm
ee8589110a
Document loading colortool schemes from current dir
2019-03-29 15:04:58 -05:00
Patrick Kranz
99f71a0cc5
Export now writes screen and popup indexes in ini
2019-03-29 17:18:26 +01:00
Patrick Kranz
16b1b059a4
added abblity to parse popup and screen color from ini file
2019-03-29 17:09:09 +01:00
Patrick Kranz
cafe71c50b
added popup color to scheme
2019-03-29 16:44:41 +01:00
Dustin L. Howett (MSFT)
1145336538
Merge pull request #278 from JakeHL/master
...
Added location flag to colortool and updated help.
2019-03-28 16:59:38 -07:00
Dustin L. Howett (MSFT)
a30f56645a
Merge branch 'master' into master
2019-03-28 16:59:03 -07:00
Jake Langford
14f9cfc389
Removed trailing slashes on schemes directory
2019-03-28 17:20:08 +00:00
Michael Niksa
52ef47533b
Merge pull request #378 from devhawk/devhawk/errorsArg
...
Don't report scheme parse errors by default
2019-02-27 12:57:12 -08:00
Harry Pierson
f3e53f1dac
updated resources file
2019-02-27 09:50:08 -08:00
Harry Pierson
ae5be18556
add --errors cmd line arg to enable scheme parsing error reporting
2019-02-27 08:33:06 -08:00
Harry Pierson
4a30b1868b
change ISchemeParser ParseScheme reportErrors param default to false
2019-02-27 08:32:45 -08:00
Michael Niksa
7e5c034b7f
Merge pull request #314 from Microsoft/signing
...
Add signing configuration information to repository.
2018-11-29 12:42:22 -08:00
Michael Niksa
058b3f5d19
Austin should be in the list.
2018-11-29 12:38:36 -08:00
Michael Niksa
df1843c87d
Add signing configuration information to repository.
2018-11-29 10:32:04 -08:00
AzureAD\JakeLangford
10b05fbe23
fixed trailing slash at the end of path
2018-10-12 09:11:48 +01:00
Jake Langford
66bc1f547e
Added location flag to colortool and updated help. Also used path combine for schemes directory
2018-10-10 21:25:36 +01:00
Mike Griese
34ff272cfa
Merge pull request #272 from waf/add-conpty-samples-to-readme
...
Add the new ConPTY samples to the readme
2018-10-08 09:09:01 -07:00
Will Fuqua
9971abf4e4
add the new ConPTY samples to the readme
...
Now that both the ConPTY samples (https://github.com/Microsoft/console/pull/247 and https://github.com/Microsoft/console/pull/260 ) are merged, mention them on the main repository README.
2018-10-06 17:49:48 +07:00
Michael Niksa
5456666d35
Merge pull request #260 from waf/add-csharp-conpty-sample
...
Add csharp conpty sample
2018-10-04 10:18:34 -07:00
Michael Niksa
bb795f5258
Merge pull request #266 from Microsoft/version
...
Correct version lookup for ES autoincremented value
2018-10-02 11:27:09 -07:00
Michael Niksa
2791753780
Adjust version lookup to use file version info stamp which is automatically incremented/generated by engineering system.
2018-10-02 11:18:00 -07:00
Michael Niksa
e5aa14ea7b
Merge pull request #265 from Microsoft/fix-accessdenied-write
...
Wrap file system export write in try/catch.
2018-10-02 10:49:38 -07:00
Michael Niksa
e25ca32022
Wrap file system export write in try/catch.
2018-10-02 10:43:03 -07:00
Michael Niksa
bb5088ae6c
Merge pull request #50 from Microsoft/osc-color
...
Add support for using ColorTool in WSL
2018-10-02 10:24:38 -07:00
Michael Niksa
4272e9c8e9
These masks were unused after I used the color helper. Removing.
2018-10-02 10:16:36 -07:00
Michael Niksa
15c2e57b96
Use helper and move constant for STD_OUTPUT_HANDLE. Use string interpolation for colors. Use Color object and UIntToColor helper for creating our pattern. Add SetLastError annotations to native functions.
2018-10-02 10:03:26 -07:00
Michael Niksa
0c3872d577
Merge branch 'master' into osc-color
2018-10-02 09:46:57 -07:00
Michael Niksa
7371ed764d
Set to LF line endings.
2018-10-02 09:46:15 -07:00
Michael Niksa
f1627dd571
merge master
2018-10-02 09:25:28 -07:00
Michael Niksa
046475f7ab
Merge pull request #181 from mikemaccana/master
...
Adjust 'ANSI 8' color to be more visible against background. Fixes #180
2018-10-02 09:11:49 -07:00
Michael Niksa
2c33edcba9
Merge pull request #236 from Jaykul/feature/schemeslist
...
Fix UIntTocolor
2018-10-02 09:09:48 -07:00
Will Fuqua
08b436f1a5
move Process and ProcessFactory classes into separate files
2018-09-21 21:54:01 +07:00
Will Fuqua
3a1ee61476
fix exit behavior
...
old behavior was whenever the user types "exit" to stop the entire terminal, which is not correct (e.g. does not work correctly for nested cmd.exe sessions). Now we wait for the top-level process to exit, which I think is more correct.
Also contains a minor rename, Process -> ProcessFactory, ProcessResources -> Process.
2018-09-21 21:50:18 +07:00
Will Fuqua
bf32b8d48f
implement dispose pattern
...
- Full Dispose Pattern for ProcessResources since it has unmanaged resources
- Basic Dispose Pattern for PseudoConsolePipe since it has managed resources
- Fix naming of iStdOut to hStdOut
- Change parameter order of Process.Start to make more sense
2018-09-21 20:47:18 +07:00
Will Fuqua
637c57473e
add c# files
...
- Move from rather ad-hoc, error-prone resource management to IDisposable, which should give us a bit more enforcement.
- Optimistically remove "buggy" from readme because the known bugs are now fixed! The main source of bugs was the incorrect InitializeProcThreadAttributeList usage.
- Handle ctrl-c by forwarding it to the PseudoConsole
- Handle terminal close when the window close button is used
- Use .NET's CopyTo in the CopyPipeToOutput, it's much simpler code and seems more robust than the ReadFile/WriteFile approach
- Minor refactor to split native APIs to multiple files
2018-09-20 22:13:37 +07:00