mirror of
https://github.com/quasar/Quasar.git
synced 2026-04-25 15:25:59 +03:00
[PR #232] [MERGED] Remote shell fixes #1058
Labels
No labels
bug
bug
cant-reproduce
discussion
duplicate
easy
enhancement
help wanted
improvement
invalid
need more info
pull-request
question
wont-add
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Quasar#1058
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/quasar/Quasar/pull/232
Author: @yankejustin
Created: 5/27/2015
Status: ✅ Merged
Merged: 5/27/2015
Merged by: @MaxXor
Base:
master← Head:RemoteShellFix📝 Commits (9)
690dcc3Merge pull request #16 from MaxXor/master2e761afFixed Remote Shell Flickeringbe78162Changes to output handling of commands5c4525eChanges to Dispose(bool)007296eChanged how exiting is determined39a717cCorrectly colorize errors320172aPerfected handling of exitingd402d78Fixed client breaking on shell close9bddb0fInitialize ManualResetEvents in the constructor📊 Changes
6 files changed (+169 additions, -23 deletions)
View changed files
📝
Client/Core/Packets/ClientPackets/ShellCommandResponse.cs(+5 -1)📝
Client/Core/RemoteShell/Shell.cs(+113 -12)📝
Server/Core/Commands/MiscHandler.cs(+12 -1)📝
Server/Core/Packets/ClientPackets/ShellCommandResponse.cs(+5 -1)📝
Server/Forms/FrmRemoteShell.Designer.cs(+3 -3)📝
Server/Forms/FrmRemoteShell.cs(+31 -5)📄 Description
Fixes
1. Remote Shell Form is now set to double-buffered. - Fixes an issue with the Remote Shell Form flickering. 2. Handling "exit" commands. - No longer directly sends an "exit" command to the client becausethis.Close()is called. In such context, the Remote Shell Form is closed. The Remote Shell Form is subscribed to an event that will send an "exit" command to the client when the Remote Shell Form is closing. There is no need to send two "exit" commands. 3. The output TextBox for the Remote Shell Form is now aRichTextBox. - Allows correct colorization of appended text.Changes
1. Handling "exit" commands. - Changed how it is handled: correctly parsed from a command and handled correctly. 2.Dispose(bool). -Dispose(bool)should not suppress finalization. Finalization suppression should be determined byDispose(). - Now disposes of the newManualResetEventobjects.Additions
1. Added a property to RemoteShellCommandResponse (IsError). - This new property denotes how it should be handled: it the RemoteShellCommand responded with an error (IsError = true), we should print it differently (red). 2. Added an interface (IRemoteShell) for the RemoteShellForm. - Provides methods to use specifically for printing regular messages or errors. - More readable. - By routing all of the output messages and error messages to the same spot, changing or extending on these features are significantly easier. 3. Multi-threaded output chaining. - Created new thread that handles the output of errors in the shell. - Added a new method that queues up the threads used to chain the two different outputs together.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.