Commit Graph

217 Commits

Author SHA1 Message Date
BDisp
509a8d15c7 No need to throw if after all a valid console is preserved. 2023-01-18 00:27:57 +00:00
BDisp
1426019f3e Fixes #2293. WindowsDriver forces minimum console height equal to 1, but should allow be 0. 2023-01-17 23:27:53 +00:00
Tig
d5abc2001f Merge pull request #2266 from AaronLieberman/unix-idle-fix
Fixes #2265 - Keyboard input doesn't work in UnixMainLoop when Idle function is registered
2023-01-02 17:33:12 -07:00
Aaron Lieberman
d4f4fc6738 Fix bug with UnixMainLoop and idle
When running in WSL Ubuntu, I was unable to process input. The issue was that when there's an idle function registered with the main loop, UnixMainLoop doesn't ever call poll. Without the poll call, pollmap doesn't get updated and the input callback doesn't get called. Change this so that it calls poll every loop iteration, even if there's an idle function.
2023-01-01 10:27:58 -08:00
Charlie Kindel
eb8cb4408d misc changed done before I went on holiday 2022-12-31 06:20:17 -07:00
BDisp
075141a687 Fixes #2247. Preparing for the NStack v1.0.7 which now handling properly non-BMP code points. 2022-12-05 18:08:39 +00:00
Charlie Kindel
a0b36d3457 merged develop 2022-12-04 08:09:27 -07:00
Charlie Kindel
c4760f1c92 fixed cr/lf issue 2022-11-11 12:16:23 -07:00
Charlie Kindel
f61e4daa03 Tweaks to autoinitshutdown 2022-11-11 10:18:05 -07:00
Charlie Kindel
1efb051379 Refactored AutoInitShutdown attribute - scary stuff 2022-11-11 10:06:21 -07:00
Charlie Kindel
2bce4a709d trying to fix curses reset issue 2022-11-09 10:13:14 -07:00
Charlie Kindel
5d7a4e3dd5 mucking with xclip 2022-11-08 21:57:20 -07:00
Charlie Kindel
b2b745d094 mucking with xclip 2022-11-08 20:59:21 -07:00
Charlie Kindel
601413f9ef mucking with xclip 2022-11-08 20:56:43 -07:00
Charlie Kindel
aca4ab3eae IClipboard tests for NotSupportedException 2022-11-08 20:44:04 -07:00
Charlie Kindel
66184a09c1 adjusted process start code 2022-11-08 20:09:40 -07:00
Charlie Kindel
495c4c6499 better error handling 2022-11-08 18:07:30 -07:00
Charlie Kindel
9d7f985c8a better error handling 2022-11-08 15:50:01 -07:00
Charlie Kindel
033d03f4a1 trying to get WSL to work 2022-11-08 15:04:48 -07:00
Charlie Kindel
ccb8405041 better error handling 2022-11-08 09:53:56 -07:00
Tig
6af2fd12d3 Merge branch 'develop' into fix-nonbmp 2022-11-07 21:23:38 -07:00
Charlie Kindel
cbbeb404a7 inital impl 2022-11-07 18:21:32 -07:00
Charlie Kindel
de3c02e9bf refactored internal Init() (now called InternnalInit()) to be more clear; updated docs and unit tests 2022-11-05 14:36:41 -06:00
Chris Pacejo
cb7c1be8bc fix output of non-BMP Unicode characters in NetDriver 2022-11-05 00:52:09 -04:00
Tig
571a131490 Merge branch 'develop' into view-clear-fix 2022-10-31 08:45:48 -07:00
BDisp
e0504dd5ff Removed unnecessary method. 2022-10-30 21:36:41 +00:00
BDisp
abd9d47860 Added support to handle with the virtual packet key. 2022-10-30 21:02:24 +00:00
BDisp
15a7e37a50 Fixes #2076. Running alone the SetColors_Changes_Colors unit test will fail. 2022-10-30 20:52:36 +00:00
BDisp
8d9d96f5af Merge develop and resolving conflicts. 2022-10-30 20:49:42 +00:00
BDisp
fec4c286f4 Fixes #2081. Clipboard unit tests sometimes fail with WSL. 2022-10-30 20:14:21 +00:00
BDisp
c54483eae9 Adding a more realistic key down/up event with null key. 2022-10-30 20:13:11 +00:00
BDisp
e6e6dbb5f2 Fixes #2069. KeyDown and KeyUp events must run before OnKeyDown and OnKeyUp. 2022-10-30 20:12:57 +00:00
BDisp
e389a7bcfc Fixes #2061. WindowsDriver sometimes returns badly mouse flag zero on mouse moved. 2022-10-30 20:12:04 +00:00
BDisp
250ebd3f97 Added some more improvements. 2022-10-26 00:28:18 +01:00
BDisp
49eefa617d Fixes #2081. Clipboard unit tests sometimes fail with WSL. 2022-10-12 23:46:37 +01:00
BDisp
eaaa636497 Adding a more realistic key down/up event with null key. 2022-09-29 19:11:09 +01:00
BDisp
702ef46727 Fixes #2069. KeyDown and KeyUp events must run before OnKeyDown and OnKeyUp. 2022-09-29 19:10:56 +01:00
BDisp
1dd9ae1266 Excluding the shift key when IsLetterOrDigit, IsSymbol and IsPunctuation. 2022-09-26 00:57:10 +01:00
BDisp
03500150a1 Fixes #2061. WindowsDriver sometimes returns badly mouse flag zero on mouse moved. 2022-09-23 17:08:53 +01:00
BDisp
61f5b0992f Only the Shift key must be handled with the Packet key. 2022-09-21 20:10:17 +01:00
tznind
ecfd9c1132 WIP fix TryRemapPacketKey to correctly apply Alt/Ctrl mask 2022-09-21 13:13:46 +01:00
tznind
a67da71f77 Merge branch 'vkpacket' of https://github.com/tznind/gui.cs into vkpacket 2022-09-20 16:06:01 +01:00
tznind
bb6187075e Removed dead code. Packet vk is only used for symbols, never escape etc. 2022-09-20 16:05:54 +01:00
Thomas Nind
ba29d552d4 Merge branch 'develop' into vkpacket 2022-09-20 07:05:25 +01:00
tznind
35e79a9f64 Tidy up layout and fix old inaccurate comment 2022-09-19 11:12:34 +01:00
tznind
0b2bdb04e0 Change TryRemapPacketKey to map to Key instead of ConsoleKey 2022-09-19 11:10:03 +01:00
tznind
0304656a19 Added single and double quotes 2022-09-19 10:22:10 +01:00
tznind
b0c208595e Added TryParseConsoleKey for better parsing 2022-09-18 19:05:05 +01:00
Thomas
9897bb903e Support for remapping basic unicode keychars that come from OS with ConsoleKey.Packet. Affects only WindowsDriver 2022-09-17 13:26:47 +01:00
BDisp
389d0be6bd Added abstract MakeColor and CreateColors to create the colors at once. (#1972)
* Added abstract MakeColor and CreateColors to create the colors at once.

* Adjusting colors to contrast with almost all views.

* Reverting Border unit test.

* Removing commented color code.
2022-09-05 12:47:16 -07:00