Commit Graph

100 Commits

Author SHA1 Message Date
Tig Kindel
ed7cb3d429 removed unused GetColors api 2023-02-06 11:25:29 +09:00
BDisp
788eed4a4d Fixes #2317. Drivers do not normalize accented letters. 2023-02-05 00:25:14 +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
Charlie Kindel
c4760f1c92 fixed cr/lf issue 2022-11-11 12:16:23 -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
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
BDisp
abd9d47860 Added support to handle with the virtual packet key. 2022-10-30 21:02:24 +00:00
BDisp
fec4c286f4 Fixes #2081. Clipboard unit tests sometimes fail with WSL. 2022-10-30 20:14:21 +00: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
BDisp
e767ae14eb Fixes #1969. ESC on CursesDriver take to long to being processed. (#1970)
* Fixes #1969. ESC on CursesDriver take to long to being processed.

* Increasing set_escdelay and timeout values to ensure precessing any more long delay.
2022-09-05 07:17:23 -07:00
Tig Kindel
666c2e151a Fix 1773 again (#1938)
* fixes #1773 - better hotnormal color for listview

* Other drivers

* fixed curses driver
2022-08-04 08:26:39 -07:00
BDisp
8149eed9aa Fixes #1837. Setting Unix clipboard doesn't freezes anymore. 2022-06-27 12:03:18 -04:00
BDisp
935f0392de Fixes #1830. If "libcoreclr.so" is not present then "libncursesw.so" will be used. 2022-06-20 07:44:40 -07:00
BDisp
8f8816a4a1 Fixes pasting from extern clipboard. 2022-06-20 07:44:40 -07:00
BDisp
9b4400400f Fixes #1815. Now returns false if WSL clipboard isn't supported. 2022-06-20 07:44:40 -07:00
BDisp
9ee3502c61 Added public abstract ResizeScreen method to the ConsoleDriver. 2022-06-17 10:23:50 -07:00
BDisp
8277655838 Fixes Windows Terminal initial resize on CursesDriver related with #1768. 2022-06-17 10:23:50 -07:00
BDisp
d16f0f607f Fixes some console buffer size issue on resizing reported in #1768. (#1784) 2022-06-11 03:18:33 -07:00
Freddie Mercurial (Jessica M.)
68b40a93f1 Exposes APIs to support upcoming Web console feature (#1770)
* Implementations to allow a WebConsole feature

* Preventing application hanging on the RunLoop.

* Implementations to allow a WebConsole feature

* Preventing application hanging on the RunLoop.

* Making WantContinuousButtonPressedView public.

* Added TimeoutAdded event.

* Fixes unit test for WantContinuousButtonPressedView.

* Changes as requested resolved.

Co-authored-by: BDisp <bd.bdisp@gmail.com>
2022-06-08 13:05:06 -07:00
BDisp
49207e6ce5 Fixes #1743. Scrolling is much faster now. (#1765) 2022-06-02 14:39:12 -07:00
BDisp
67ab11044a Fixes #1763. Allowing read console inputs before idle handlers. (#1764)
* Fixes #1763. Allowing read console inputs before idle handlers.

* Locking FakeConsole.MockKeyPresses after the Application.Init.

* Adding scenario checking failed for iterations.
2022-06-01 13:38:03 -07:00
BDisp
4382a2c2c2 Fixes remaining wide runes render issues. 2022-05-11 00:24:57 +01:00
BDisp
640fecba03 Fixing drivers. 2022-05-03 01:20:18 +01:00
BDisp
311acc03df Fixes drivers for wide runes handling which also works on Windows Terminal. 2022-04-30 01:03:41 +01:00
BDisp
6c21b1ee6e Implementing HistoryText class for undo and redo text. (#1590)
* Implementing HistotyText class for undo and redo text.

* Untying newline based on 'n' but on Environment.NewLine.

* Prevent throwing exception if value is null.

* Also adding history text feature to the return key.

* Fixes WSL unit test failure.
2022-02-18 07:34:11 -08:00
henrikx
24bdaad9d7 Use custom resolver for libcoreclr.so also for .NET 6.0 (#1574)
* Use custom resolver for libcoreclr.so also for .NET 6.0

* Implement suggested changes
2022-02-06 14:44:01 -08:00
BDisp
ce99df4629 Prevents a Process breaks rendering on Linux. (#1506) 2021-11-13 07:46:02 -08:00
BDisp
d55ae77331 Fixes #1446. Added more features to the Border and Toplevel focus. (#1447)
* Fixes #1446. Added more features to the Border and Toplevel focus.

* Prevents throwing exception on negative effect3DOffset values

* Ensures that a view can be focused.

* Only sets focus if it isn't disposing.

* Fixes ViewToScreen and DrawChildBorder Effect3D.

* Unit test for negative coordinates with the ViewToScreen method.

* Added Tab navigation feature to the Editor scenario.

* ComboBox cursonDownKey nullref fix (#1472)

* added null guard to fix null ref when pressing keyDown inside combobox
Improved an error message when view cannot be found

* Added a unit test to ensure combobox can process all key events
Found and fixed a new nullref

* Found a new bug when source is already present and combobox is added to a top view

* searchSet is auto initialized to new List() now to make the code a little bit safer

* Fixes WindowsDriver HeightAsBuffer set to false. (#1466)

* Bump ReportGenerator from 4.8.12 to 4.8.13 (#1473)

Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 4.8.12 to 4.8.13.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v4.8.12...v4.8.13)

---
updated-dependencies:
- dependency-name: ReportGenerator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fixes #1445. Fixing more the Curses and WSL clipboard. (#1448)

* Fixes #1445. Fixing more the Curses and WSL clipboard.

* Fixing unit tests.

* Changing namespace.

* Fixes WSL2 clipboard unit test.

* Upgrades devcontainer with the MainLoop fix.

* Fixes pasting with no selection and with lines break.

* Prevents the event button click being fired after a button pressed with mouse move.

* Fixes the char [ not being processed.

* Added Application.QuitKey property to allow change the quitting application key. (#1450)

* Added Application.QuitKey property to allow change the quitting application key.

* Fixes QuitKey unit test by reseting his value.

* Locks timeouts until is added.

* Fixes #1467. AlternateForward/BackwardKey bypasses dialog modality (#1468)

* Changed namespace.

* Fixing merge conflicts.

* Fixes mouse click issue.

* Removing windows resizing because buffer resizing is enough.

* Fixes #1477. Mouse click and console bottom on Windows Terminal.

Co-authored-by: Igor Bagdamyan <37334640+En3Tho@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-05 09:22:13 -07:00
BDisp
84f79b2326 Fixes #1445. Fixing more the Curses and WSL clipboard. (#1448)
* Fixes #1445. Fixing more the Curses and WSL clipboard.

* Fixing unit tests.

* Changing namespace.

* Fixes WSL2 clipboard unit test.

* Upgrades devcontainer with the MainLoop fix.

* Fixes pasting with no selection and with lines break.

* Prevents the event button click being fired after a button pressed with mouse move.

* Fixes the char [ not being processed.
2021-09-29 14:22:23 -07:00
BDisp
8bfa2f0425 Border feature (#1436)
* Allowing pass the view to the RootMouseEvent.

* Allowing bring the current window to front on dragging.

* Improving the ConsoleDriver to get the Attribute colors based on the value.

* Added a PanelView to deal with borders.

* Added a Border feature to all views.
2021-08-26 07:55:19 -07:00
BDisp
8a6c94f120 Fixes CursesDriver mouse and reset issue. (#1420) 2021-08-24 08:21:07 -07:00
BDisp
52f48b2044 Fixes #1384. Added a VisibleChanged event on the View class. (#1385)
* Fixes #1384. Added a VisibleChanged event on the View class.

* Getting the last char.

* Fixes #871. Added Enable property to Responder and added Disabled color for all ColorSchemes.

* Added GetNormalColor method to the View being more readable.

* Fixes the contentBottomRightCorner Enable and Visible.

* Fixes #643. Added AddItemAt and RemoveItem to StatusBar and fixed more bugs.

* Typo fixes.

* Fixes #1387. Allowing the UnitTests project to test internal keywords.

* Fixes #1389. Added a unidirectional feature to the Marquee styles to the ProgressBar.

* Fixes #1394. Added ReflectedType to check for overridden.

* Fixes #1396. Using the Loaded event instead the Ready event.

* Fixes #1402. Only WindowsDriver supports horizontal scroll. (#1403)

* Fixes #1402. Only WindowsDriver supports horizontal scroll.

* Fixes ProcessContinuousButtonPressedAsync on all drivers.

* Fixed internal unit test.

* Fixing warning.

* Fixing Editor scenario error.

* Fixes double and triple click on a touchpad.

* Ensuring reset the counting.

* Allowing touchpad double and triple click with one finger on CursesDriver.

* Allowing touchpad double and triple click with one finger on WindowsDriver.

* Fixes #1414. Fixed multi toplevels and mdi container issues.

* Improving EnsureVisibleBounds and PositionToplevel.

* Added mouseGrabView to the ResetState method.

* Changing namespace.

* Allowing file type on the SaveDialog.

* Fixes SaveDialogs writing the extension twice.
2021-08-11 02:56:30 -07:00
BDisp
b193aaaa56 Fixes #1402. Only WindowsDriver supports horizontal scroll. (#1403)
* Fixes #1402. Only WindowsDriver supports horizontal scroll.

* Fixes ProcessContinuousButtonPressedAsync on all drivers.
2021-08-04 21:54:33 -07:00
BDisp
7c1083114d Fixes #1358. Attribute.Foreground / Attribute.Background now working with CursesDriver 2021-07-01 19:21:01 +01:00
BDisp
a6b940f1fd Fixes CursesDriver resize issue. 2021-06-04 16:00:52 +01:00
BDisp
0e2446588a Prevents read blocking on Mac. 2021-05-29 22:43:39 +01:00
BDisp
ce04eeda86 Added -noprofile option to PowerShell and the clip.exe. 2021-05-27 17:13:12 +01:00
BDisp
30748df0da Trying even more to fix permissions issue and removed try catch. 2021-05-25 19:43:19 +01:00
BDisp
286461e7c8 Fixes bash permissions issue in Linux. 2021-05-25 19:09:33 +01:00
BDisp
87271cc477 Implemented the ClipboardBase abstract class as suggested by @tznind. 2021-05-25 18:49:30 +01:00