29 Commits
Author SHA1 Message Date
Jason Shirk a7af25aa37 Stop dispatching on ConsoleKeyInfo (#831)
There are likely issues introduced by this PR,
but I'm merging for a new Beta so this code gets more testing.

* Introduce PSKeyInfo type alias
* Explicit conversions b/w ConsoleKeyInfo and PSKeyInfo
* Change tests to use actual ConsoleKeyInfo data
* Add fr-FR keyboard layout tests
* Add KeyInfo-ru-RU-windows.json (#839)

All impossible without Shift shortcuts labeled as "Investigate: true"
Alt+Spacebar tracked by windows itself

* Add KeyInfo for Polish (Programmers) layout on Windows and Linux (#870)

On Windows *Alt+Spacebar* is hijacked by Windows
On Linux any *Alt+F1-12* combination was not detected
2019-03-20 16:14:05 -07:00
Jason Shirk bc40ae6f6b Remove uses of CSI # S / ScrollConsoleScreenBuffer (#790)
This fixes some weird issues in WSL and some Linux terminals.

This also works around a Windows 1809 Console bug for the Ctrl+l binding
to clear the screen by using the same escape sequence that bash uses.

Fix #724
2018-11-04 19:12:52 -08:00
Jason Shirk 9094f1246b Generate parts of the about topic
To keep the about topic up to date, the function descriptions and key
binding information is now generated after a build.
2017-11-24 22:11:13 -08:00
Jason Shirk 98cf8fcb23 Allow CaptureScreen to be used w/o a key binding
Fix #419
2017-11-04 11:07:18 -07:00
Jason Shirk a7efcd27ca XML comment cleanup 2017-09-03 00:06:41 -07:00
Jason Shirk 1d009a324e More Windows refactoring
Isolate some odds and ends of Windows specific code so the mainline code
path is not Windows specific.
2017-09-02 16:26:39 -07:00
Jason Shirk 1a623b9327 Replace COORD with Point except in ScreenCapture 2017-09-02 14:43:03 -07:00
Jason Shirk 1d3a6819f8 CaptureScreen: correctly set rtf and plain text 2017-09-02 14:42:45 -07:00
Jason Shirk 5557fd366b Refactor CaptureScreen to isolate P/Invokes 2017-09-02 11:45:04 -07:00
Jason Shirk 62447cef51 Paste from Windows clipboard without WinForms 2017-08-31 23:16:03 -07:00
Jason Shirk 602ecd496f Move more Win32 specific apis out of IConsole 2017-08-29 23:38:38 -07:00
Jason Shirk 837921a6b1 Introduce runtime check of platform
In the move to producing a single binary for a protable module, we'll
need some runtime checks - so I've add a single one which also requires
a dependency on new NuGet package.
2017-08-14 08:56:23 -07:00
Jason Shirk 96772e404f Moving onwards towards minimal P/Invokes 2017-08-14 08:56:22 -07:00
Jason Shirk 2eb74eb0f4 Remove redundant qualifiers 2017-07-31 17:12:44 -07:00
Jason Shirk 95683f26f2 Use lambda expression or local function 2017-07-31 17:07:42 -07:00
Jason Shirk 4aba251bdb Remove unused using directives 2017-07-31 16:44:06 -07:00
Jason Shirk (POWERSHELL) 04c7233b46 Globally suppress 'default args should not be used' 2016-04-27 16:36:50 -07:00
Jason Shirk (POWERSHELL) 618b4971ef Move some apis to be internal 2016-01-17 08:52:40 -08:00
Dan Thompson 89b3b0d7b7 CaptureScreen: scroll buffer with selection, add alternate movement keys. 2015-12-13 17:55:04 -08:00
jason@truewheels.net 8691e88595 Initial refactor console api usage
To get the unit tests passing in VS2015, and to help w/ possible future hosts,
I've moved most of the console api usage to a class, which is then mocked
in the unit tests.
2015-12-06 09:05:37 -08:00
jason@truewheels.net 2c780b9157 CaptureScreen tried to set clipboard on a MTA thread
Fix is to use ExecuteOnSTAThread.
2015-11-29 21:43:20 -08:00
jason@truewheels.net b08e74b1cd Get the real colors when copying the screen 2015-11-14 19:14:28 -08:00
Jason Shirk (POWERSHELL) 9c153bd848 Switch to WinForms for clipboard
Some windows skus don't have WPF but do include winforms, so switch to winforms to access the clipboard.
2015-06-18 18:54:13 -07:00
Jason Shirk (POWERSHELL) 94a6ba40c9 Fix/suppress various FxCop errors 2015-06-18 18:24:23 -07:00
Jason Shirk (POWERSHELL) c986e0eae5 Rename namespace PSConsoleUtilities to Microsoft.PowerShell 2015-06-18 15:32:20 -07:00
Jason Shirk (POWERSHELL) 6408a4c96c Add copyright header 2015-06-18 15:04:49 -07:00
jason@truewheels.net 900e3057f2 Cleanup some Resharper issues 2014-04-13 11:21:30 -07:00
jason@truewheels.net 78d8bf0193 Fix colors in CaptureScreen 2014-02-05 23:38:10 -08:00
jason@truewheels.net 0adc651828 Refactor code to multiple files 2014-01-12 14:11:04 -08:00