-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imitate terminal clear command in manager #2307
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bad_appel_modul_24_highcrf.mp4here on my side, works well !
|
backslashxx
added a commit
to backslashxx/bad-apple-ascii
that referenced
this pull request
Dec 22, 2024
requires tiann/KernelSU#2307
backslashxx
added a commit
to backslashxx/bad-apple-ascii
that referenced
this pull request
Dec 22, 2024
requires tiann/KernelSU#2307
backslashxx
added a commit
to backslashxx/bad-apple-ascii
that referenced
this pull request
Dec 22, 2024
requires tiann/KernelSU#2307
tiann
approved these changes
Dec 22, 2024
so, 11998 tentatively?
|
here was the demo just for logging purposes |
rsuntk
pushed a commit
to rsuntk/KernelSU
that referenced
this pull request
Dec 25, 2024
The current implementation of KSU manager's output screen simply prints `[H[J` when the `clear` command is used (in both the flashing module & action button screen) instead of clearing the screen: <img src="https://github.com/user-attachments/assets/c30ceb87-13ac-4ba6-a7c5-045564e83181" width="300" /> This limits the ability of shell scripts to purely textual & linear outputs, and prevents more flexible outputs such as a refreshing progress bar or even a progress circle for long running scripts. The current implementation moreover limits the output to 65536 bytes for the String `text`, causing the app to hang once this limit has been reached for scripts with more verbose outputs. This PR fixes these issues by allowing for usage of the `clear` command in shell scripts to clear the screen. It works by checking if the current output line starts with "�[H�[J", which is the default output of the `clear` command in KSU's busybox, and clears the previous outputs if there is a match. This should work universally since the `clear` command defaults to this implementation when ran in KSU manager. A working example can be seen below, where the `clear` command is heavily used (24 times a second) to test for performance & reliability of the code: https://github.com/user-attachments/assets/c45fb6f1-1b40-4b67-8837-4d9a00429715 Tested-by: backslashxx
backslashxx
pushed a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 25, 2024
The current implementation of KSU manager's output screen simply prints `[H[J` when the `clear` command is used (in both the flashing module & action button screen) instead of clearing the screen: <img src="https://github.com/user-attachments/assets/c30ceb87-13ac-4ba6-a7c5-045564e83181" width="300" /> This limits the ability of shell scripts to purely textual & linear outputs, and prevents more flexible outputs such as a refreshing progress bar or even a progress circle for long running scripts. The current implementation moreover limits the output to 65536 bytes for the String `text`, causing the app to hang once this limit has been reached for scripts with more verbose outputs. This PR fixes these issues by allowing for usage of the `clear` command in shell scripts to clear the screen. It works by checking if the current output line starts with "�[H�[J", which is the default output of the `clear` command in KSU's busybox, and clears the previous outputs if there is a match. This should work universally since the `clear` command defaults to this implementation when ran in KSU manager. A working example can be seen below, where the `clear` command is heavily used (24 times a second) to test for performance & reliability of the code: https://github.com/user-attachments/assets/c45fb6f1-1b40-4b67-8837-4d9a00429715 Tested-by: backslashxx
backslashxx
added a commit
to backslashxx/bad-apple-ascii
that referenced
this pull request
Dec 26, 2024
requires tiann/KernelSU#2307
backslashxx
pushed a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 26, 2024
The current implementation of KSU manager's output screen simply prints `[H[J` when the `clear` command is used (in both the flashing module & action button screen) instead of clearing the screen: <img src="https://github.com/user-attachments/assets/c30ceb87-13ac-4ba6-a7c5-045564e83181" width="300" /> This limits the ability of shell scripts to purely textual & linear outputs, and prevents more flexible outputs such as a refreshing progress bar or even a progress circle for long running scripts. The current implementation moreover limits the output to 65536 bytes for the String `text`, causing the app to hang once this limit has been reached for scripts with more verbose outputs. This PR fixes these issues by allowing for usage of the `clear` command in shell scripts to clear the screen. It works by checking if the current output line starts with "�[H�[J", which is the default output of the `clear` command in KSU's busybox, and clears the previous outputs if there is a match. This should work universally since the `clear` command defaults to this implementation when ran in KSU manager. A working example can be seen below, where the `clear` command is heavily used (24 times a second) to test for performance & reliability of the code: https://github.com/user-attachments/assets/c45fb6f1-1b40-4b67-8837-4d9a00429715 Tested-by: backslashxx
selfmusing
pushed a commit
to selfmusing/USlenreK
that referenced
this pull request
Dec 26, 2024
The current implementation of KSU manager's output screen simply prints `[H[J` when the `clear` command is used (in both the flashing module & action button screen) instead of clearing the screen: <img src="https://github.com/user-attachments/assets/c30ceb87-13ac-4ba6-a7c5-045564e83181" width="300" /> This limits the ability of shell scripts to purely textual & linear outputs, and prevents more flexible outputs such as a refreshing progress bar or even a progress circle for long running scripts. The current implementation moreover limits the output to 65536 bytes for the String `text`, causing the app to hang once this limit has been reached for scripts with more verbose outputs. This PR fixes these issues by allowing for usage of the `clear` command in shell scripts to clear the screen. It works by checking if the current output line starts with "�[H�[J", which is the default output of the `clear` command in KSU's busybox, and clears the previous outputs if there is a match. This should work universally since the `clear` command defaults to this implementation when ran in KSU manager. A working example can be seen below, where the `clear` command is heavily used (24 times a second) to test for performance & reliability of the code: https://github.com/user-attachments/assets/c45fb6f1-1b40-4b67-8837-4d9a00429715 Tested-by: backslashxx
selfmusing
pushed a commit
to selfmusing/USlenreK
that referenced
this pull request
Dec 26, 2024
The current implementation of KSU manager's output screen simply prints `[H[J` when the `clear` command is used (in both the flashing module & action button screen) instead of clearing the screen: <img src="https://github.com/user-attachments/assets/c30ceb87-13ac-4ba6-a7c5-045564e83181" width="300" /> This limits the ability of shell scripts to purely textual & linear outputs, and prevents more flexible outputs such as a refreshing progress bar or even a progress circle for long running scripts. The current implementation moreover limits the output to 65536 bytes for the String `text`, causing the app to hang once this limit has been reached for scripts with more verbose outputs. This PR fixes these issues by allowing for usage of the `clear` command in shell scripts to clear the screen. It works by checking if the current output line starts with "�[H�[J", which is the default output of the `clear` command in KSU's busybox, and clears the previous outputs if there is a match. This should work universally since the `clear` command defaults to this implementation when ran in KSU manager. A working example can be seen below, where the `clear` command is heavily used (24 times a second) to test for performance & reliability of the code: https://github.com/user-attachments/assets/c45fb6f1-1b40-4b67-8837-4d9a00429715 Tested-by: backslashxx
LeCmnGend
pushed a commit
to LeCmnGend/KernelSU
that referenced
this pull request
Dec 26, 2024
The current implementation of KSU manager's output screen simply prints `[H[J` when the `clear` command is used (in both the flashing module & action button screen) instead of clearing the screen: <img src="https://github.com/user-attachments/assets/c30ceb87-13ac-4ba6-a7c5-045564e83181" width="300" /> This limits the ability of shell scripts to purely textual & linear outputs, and prevents more flexible outputs such as a refreshing progress bar or even a progress circle for long running scripts. The current implementation moreover limits the output to 65536 bytes for the String `text`, causing the app to hang once this limit has been reached for scripts with more verbose outputs. This PR fixes these issues by allowing for usage of the `clear` command in shell scripts to clear the screen. It works by checking if the current output line starts with "�[H�[J", which is the default output of the `clear` command in KSU's busybox, and clears the previous outputs if there is a match. This should work universally since the `clear` command defaults to this implementation when ran in KSU manager. A working example can be seen below, where the `clear` command is heavily used (24 times a second) to test for performance & reliability of the code: https://github.com/user-attachments/assets/c45fb6f1-1b40-4b67-8837-4d9a00429715 Tested-by: backslashxx
selfmusing
pushed a commit
to selfmusing/USlenreK
that referenced
this pull request
Dec 26, 2024
The current implementation of KSU manager's output screen simply prints `[H[J` when the `clear` command is used (in both the flashing module & action button screen) instead of clearing the screen: <img src="https://github.com/user-attachments/assets/c30ceb87-13ac-4ba6-a7c5-045564e83181" width="300" /> This limits the ability of shell scripts to purely textual & linear outputs, and prevents more flexible outputs such as a refreshing progress bar or even a progress circle for long running scripts. The current implementation moreover limits the output to 65536 bytes for the String `text`, causing the app to hang once this limit has been reached for scripts with more verbose outputs. This PR fixes these issues by allowing for usage of the `clear` command in shell scripts to clear the screen. It works by checking if the current output line starts with "�[H�[J", which is the default output of the `clear` command in KSU's busybox, and clears the previous outputs if there is a match. This should work universally since the `clear` command defaults to this implementation when ran in KSU manager. A working example can be seen below, where the `clear` command is heavily used (24 times a second) to test for performance & reliability of the code: https://github.com/user-attachments/assets/c45fb6f1-1b40-4b67-8837-4d9a00429715 Tested-by: backslashxx
armv7a
pushed a commit
to armv7a/KernelSU
that referenced
this pull request
Dec 27, 2024
The current implementation of KSU manager's output screen simply prints `[H[J` when the `clear` command is used (in both the flashing module & action button screen) instead of clearing the screen: <img src="https://github.com/user-attachments/assets/c30ceb87-13ac-4ba6-a7c5-045564e83181" width="300" /> This limits the ability of shell scripts to purely textual & linear outputs, and prevents more flexible outputs such as a refreshing progress bar or even a progress circle for long running scripts. The current implementation moreover limits the output to 65536 bytes for the String `text`, causing the app to hang once this limit has been reached for scripts with more verbose outputs. This PR fixes these issues by allowing for usage of the `clear` command in shell scripts to clear the screen. It works by checking if the current output line starts with "�[H�[J", which is the default output of the `clear` command in KSU's busybox, and clears the previous outputs if there is a match. This should work universally since the `clear` command defaults to this implementation when ran in KSU manager. A working example can be seen below, where the `clear` command is heavily used (24 times a second) to test for performance & reliability of the code: https://github.com/user-attachments/assets/c45fb6f1-1b40-4b67-8837-4d9a00429715 Tested-by: backslashxx
armv7a
pushed a commit
to armv7a/KernelSU
that referenced
this pull request
Dec 27, 2024
The current implementation of KSU manager's output screen simply prints `[H[J` when the `clear` command is used (in both the flashing module & action button screen) instead of clearing the screen: <img src="https://github.com/user-attachments/assets/c30ceb87-13ac-4ba6-a7c5-045564e83181" width="300" /> This limits the ability of shell scripts to purely textual & linear outputs, and prevents more flexible outputs such as a refreshing progress bar or even a progress circle for long running scripts. The current implementation moreover limits the output to 65536 bytes for the String `text`, causing the app to hang once this limit has been reached for scripts with more verbose outputs. This PR fixes these issues by allowing for usage of the `clear` command in shell scripts to clear the screen. It works by checking if the current output line starts with "�[H�[J", which is the default output of the `clear` command in KSU's busybox, and clears the previous outputs if there is a match. This should work universally since the `clear` command defaults to this implementation when ran in KSU manager. A working example can be seen below, where the `clear` command is heavily used (24 times a second) to test for performance & reliability of the code: https://github.com/user-attachments/assets/c45fb6f1-1b40-4b67-8837-4d9a00429715 Tested-by: backslashxx
armv7a
pushed a commit
to armv7a/KernelSU
that referenced
this pull request
Dec 27, 2024
The current implementation of KSU manager's output screen simply prints `[H[J` when the `clear` command is used (in both the flashing module & action button screen) instead of clearing the screen: <img src="https://github.com/user-attachments/assets/c30ceb87-13ac-4ba6-a7c5-045564e83181" width="300" /> This limits the ability of shell scripts to purely textual & linear outputs, and prevents more flexible outputs such as a refreshing progress bar or even a progress circle for long running scripts. The current implementation moreover limits the output to 65536 bytes for the String `text`, causing the app to hang once this limit has been reached for scripts with more verbose outputs. This PR fixes these issues by allowing for usage of the `clear` command in shell scripts to clear the screen. It works by checking if the current output line starts with "�[H�[J", which is the default output of the `clear` command in KSU's busybox, and clears the previous outputs if there is a match. This should work universally since the `clear` command defaults to this implementation when ran in KSU manager. A working example can be seen below, where the `clear` command is heavily used (24 times a second) to test for performance & reliability of the code: https://github.com/user-attachments/assets/c45fb6f1-1b40-4b67-8837-4d9a00429715 Tested-by: backslashxx
mrsrimar22
added a commit
to KrustyCook/KernelSU
that referenced
this pull request
Dec 27, 2024
* 'main' of https://github.com/KrustyCook/KernelSU: templates/shizuku.root: Fix shizuku service unable to run properly (tiann#2319) manager: module: refresh after webui usage (tiann#2317) manager: Add sort options on module's appbar (tiann#2308) ci: fix ksud release (tiann#2314) website: Update Japanese translation of installation guide (tiann#2296) Imitate terminal clear command in manager (tiann#2307) Minor UI improvements (tiann#2305) Change-Id: 9a4b59b7bae0d2f47ef66c3e64498ded7f46c90b Signed-off-by: mrsrimar22 <[email protected]>
LeCmnGend
pushed a commit
to LeCmnGend/KernelSU
that referenced
this pull request
Jan 4, 2025
The current implementation of KSU manager's output screen simply prints `[H[J` when the `clear` command is used (in both the flashing module & action button screen) instead of clearing the screen: <img src="https://github.com/user-attachments/assets/c30ceb87-13ac-4ba6-a7c5-045564e83181" width="300" /> This limits the ability of shell scripts to purely textual & linear outputs, and prevents more flexible outputs such as a refreshing progress bar or even a progress circle for long running scripts. The current implementation moreover limits the output to 65536 bytes for the String `text`, causing the app to hang once this limit has been reached for scripts with more verbose outputs. This PR fixes these issues by allowing for usage of the `clear` command in shell scripts to clear the screen. It works by checking if the current output line starts with "�[H�[J", which is the default output of the `clear` command in KSU's busybox, and clears the previous outputs if there is a match. This should work universally since the `clear` command defaults to this implementation when ran in KSU manager. A working example can be seen below, where the `clear` command is heavily used (24 times a second) to test for performance & reliability of the code: https://github.com/user-attachments/assets/c45fb6f1-1b40-4b67-8837-4d9a00429715 Tested-by: backslashxx
backslashxx
added a commit
to backslashxx/bad-apple-ascii
that referenced
this pull request
Jan 6, 2025
requires tiann/KernelSU#2307
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current implementation of KSU manager's output screen simply prints
[H[J
when theclear
command is used (in both the flashing module & action button screen) instead of clearing the screen:This limits the ability of shell scripts to purely textual & linear outputs, and prevents more flexible outputs such as a refreshing progress bar or even a progress circle for long running scripts. The current implementation moreover limits the output to 65536 bytes for the String
text
, causing the app to hang once this limit has been reached for scripts with more verbose outputs.This PR fixes these issues by allowing for usage of the
clear
command in shell scripts to clear the screen. It works by checking if the current output line starts with "�[H�[J", which is the default output of theclear
command in KSU's busybox, and clears the previous outputs if there is a match. This should work universally since theclear
command defaults to this implementation when ran in KSU manager.A working example can be seen below, where the
clear
command is heavily used (24 times a second) to test for performance & reliability of the code:screen-20241222-161937.mp4
Tested-by: backslashxx