Alex Jordan
fb0e218eb1
Fix crash on file name being too long in prompt
2016-08-10 15:40:46 -07:00
Andrew Schwartzmeyer
59624e9b2f
Fix comparison for default ConsoleKey
2016-07-28 21:51:03 -07:00
Andrew Schwartzmeyer
554ef0b780
Use GetCharFromConsoleKey on Windows
...
Due to virtual key codes on Windows, simple chords like Ctrl+] are not
recognized as such. Instead, the ConsoleKey is Oem6, and the KeyChar is
an control code.
2016-07-28 21:51:02 -07:00
Andrew Schwartzmeyer
d5b339fb5d
Revert changes made to GetGestureString
...
Given the use of key.KeyChar, the original implementation is now
portable.
2016-07-28 21:35:19 -07:00
Andrew Schwartzmeyer
1facd95f1e
Implement TryParseCharLiteral for Linux
2016-07-28 21:35:19 -07:00
Andrew Schwartzmeyer
75b086402a
Remove GetCharFromConsoleKey
...
The ConsoleKey enum does not necessarily cover all possible chars.
Moreover, the times we need to obtain this info, we already have it.
2016-07-28 21:35:19 -07:00
Jason Shirk (POWERSHELL)
673dd2c355
Change preprocessor macro LINUX to UNIX
2016-07-22 10:49:45 -07:00
Andrew Schwartzmeyer
0f04de1e96
Fix some documentation warnings
...
Mostly low-hanging fruit and Linux additions/changes.
2016-07-18 19:08:28 -07:00
Andrew Schwartzmeyer
b6f26ad7cc
Enable XML documentation generation
...
This is enabled for PowerShell projects, but not PackageManagment,
WSMan, Cim, or MMI.
2016-07-18 18:40:42 -07:00
Andrew Schwartzmeyer
c6758603ae
Set DefaultEditMode to Emacs on Linux / OS X
2016-07-15 13:40:16 -07:00
Andrew Schwartzmeyer
b3ef98036d
Set bindings based on options
...
This is instead of hard-coding a call to SetDefaultWindowsBindings().
2016-07-15 13:39:29 -07:00
Andrew Schwartzmeyer
ab83e00475
Refactor switch into SetDefaultBindings(EditMode)
2016-07-15 13:38:55 -07:00
Jason Shirk (POWERSHELL)
c0b16d7bf5
Skip tone/duration on beep on LINUX
2016-07-07 12:07:52 -07:00
Jason Shirk (POWERSHELL)
372d69583f
Only use CHAR_INFO on Windows
...
CHAR_INFO has 4 bits for ConsoleColor. On Linux, ConsoleColor is sometimes -1 (unknown),
which is a 17th possible value for ConsoleColor, which can't be represented in CHAR_INFO.
To fix this, I've introduced a bigger type that gets converted to CHAR_INFO when necessary.
2016-07-07 12:07:52 -07:00
Jason Shirk (POWERSHELL)
e79c62f9ec
Introduce TTYConsole for UNIX
2016-07-07 12:07:52 -07:00
Jason Shirk (POWERSHELL)
8e234322c4
First stab addressing CORECLR vs. LINUX in PSReadLine
2016-07-07 12:07:52 -07:00
Jason Shirk (POWERSHELL)
efc83bbaa2
Add csproj files and sln for editing but not building
2016-07-05 10:27:41 -07:00
Andrew Schwartzmeyer
c5df728176
Import PSReadLine change to throw when redirected
...
A similar change was made to the Source Depot fork of PSReadLine, and
the behavior is depended on in the ConsoleHost. The host always attempts
to load PSReadLine, because a future version of PSReadLine will support
redirected input/output, and until then, PSReadLine must throw so that
the host correctly falls back to Console.ReadLine().
2016-07-01 14:36:15 -07:00
Andrew Schwartzmeyer
000206ac90
Bump framework to netstandard1.6
...
This is required to use the new .NET Core RTM packages, specifically the
`IEnumerable Append` API.
2016-06-27 15:30:47 -07:00
Sergei Vorobev
713ddfdf05
Remove authors section from product project.json
2016-06-16 19:33:19 -07:00
Andrew Schwartzmeyer
8e7c2ca30b
Sign all assemblies with key
2016-06-16 15:48:18 -07:00
Andrew Schwartzmeyer
e3056303aa
Rename compilationOptions to buildOptions in project.json files
...
This resolves #928 . This is a breaking change in that you *must* be
running a recent version of .NET CLI.
2016-06-10 11:03:56 -07:00
Andrew Schwartzmeyer
0e10a51802
Whitespace and formatting cleanups
2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer
140d452ba2
Fix PSReadLine history path on Windows
...
Bug introduced in initial port of PSReadLine. `Path.Combine` sees the
initial backslash as an absolute path, thus discarding `AppData`.
2016-06-09 09:50:36 -07:00
v-alexjo
f46aa8d195
configdefault missed in refactoring
2016-06-09 09:50:36 -07:00
v-alexjo
42c0b9a5f7
Style changes and psreadline path change
2016-06-09 09:50:36 -07:00
v-alexjo
caa4c3f163
Changing history to cache, removed redundant code
2016-06-09 09:50:36 -07:00
v-alexjo
c2527199a6
Further code review changes
2016-06-09 09:50:36 -07:00
v-alexjo
237c659b5e
Changes to xdg to append powershell path
2016-06-09 09:50:36 -07:00
v-alexjo
29e97bf1aa
Code review changes to XDG support
2016-06-09 09:50:36 -07:00
v-alexjo
54c64c9db6
Initial XDG support and folder default changes
...
Conflicts:
src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs
2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer
8435ed758c
Fix PSReadLine for net451 build
...
Needed System.Windows.Forms
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
78dd93c1ac
Build PSReadLine for ConsoleHost
2016-05-17 13:28:44 -07:00
Andy Schwartzmeyer
aa95479307
Merge pull request #937 from PowerShell/psreadline5
...
Fix MenuComplete
2016-05-02 11:01:19 -07:00
Andrew Schwartzmeyer
9c5d076559
Fix directory completion for different file-systems
...
Use the file-system agnostic `System.IO.Path.DirectorySeparatorChar` for
`GetReplacementTextForDirectory`, instead of hard-coded backslashes.
2016-04-30 15:39:07 -07:00
George Fleming
88457fc5d4
Fix MenuComplete
2016-04-29 14:56:16 -07:00
George Fleming
31ddde619f
Undo accidental removal of new keyword
2016-04-29 13:40:36 -07:00
George Fleming
a431e38475
Remove commented out line
2016-04-29 13:34:26 -07:00
George Fleming
42cf547afc
Change default history file location
2016-04-29 13:28:43 -07:00
George Fleming
6eff9fdbea
Include System.Windows.Forms only if not CORECLR
2016-04-29 13:28:43 -07:00
George Fleming
fa0854cdfc
Change from check for Linux to not Windows
2016-04-29 13:28:43 -07:00
George Fleming
bff72e2e3b
Merge with Andy's changes
2016-04-29 13:23:34 -07:00
George Fleming
74b5060f6e
Fix ClearScreen, and disable scroll-related functions that don't work in CoreCLR
2016-04-29 13:17:53 -07:00
George Fleming
1d87607bd4
Fix Undo/Redo
2016-04-29 13:17:53 -07:00
George Fleming
66ee25c603
Change default colors, and show highlighted text properly
2016-04-29 13:17:53 -07:00
Andrew Schwartzmeyer
573461e4c2
Fix comparison of keys in dispatch dictionary
...
This compares the keys by a combination of their ConsoleKey and
Modifiers fields. We cannot compare the KeyChar field as it is
platform (and TTY configuration) dependent.
2016-04-29 10:11:34 -07:00
Andrew Schwartzmeyer
04c49c376b
Fix resource manager
...
Since the project is `Microsoft.PowerShell.PSReadLine`, the embedded
resource name had to be fixed.
2016-04-27 13:40:29 -07:00
George Fleming
d49e51695e
Enable colors
2016-04-27 11:00:45 -07:00
George Fleming
1c955a67a8
Enable setting of new key bindings
2016-04-27 11:00:45 -07:00
George Fleming
232f9abe54
PSReadLine for Linux
2016-04-27 11:00:45 -07:00