Test shell commands
The types of the colors, which are used to display messages colorfully, are located in the ColTypes enumeration found in ColorTools.
Refer to Events for Mod Developers for the events that can be used in the <Event>
argument.
<ErrorType>
options:
<RebootTime>
is measured in seconds. It is used if <Reboot>
is True or 1.
You can find strings inside the text files in the Resources folder.
Refer to this document for the list of placeholders.
The testing shell provides these commands:
Command | Description | Usage |
---|---|---|
It lets you test the |
| |
printf | It lets you test the |
|
printd | It lets you send any message to the debugger, using |
|
printdf | It lets you send any message to the debugger, using |
|
printsep | It lets you print the separator using any text you want. |
|
printsepf | It lets you print the separator using any text you want with format support. |
|
printsepcolor | It lets you print the separator using any text you want with color support. |
|
printsepcolorf | It lets you print the separator using any text you want with color and format support. |
|
testevent | It lets you raise any event. If you have loaded mods, you can use this command for testing event raises. |
|
probehw | It lets you probe hardware in the testing session. |
|
panic | It force crashes the kernel using custom exception types, messages, reboot times, etc. It does not provide support for variables. |
|
panicf | It force crashes the kernel using custom exception types, messages, reboot times, etc. It provides support for variables, but are not parsed yet. |
|
translate | It lets you translate strings that are found in the current language file in the source code from the current source language to the target language, and prints it in the console. |
|
places | It lets you parse placeholders in the text without the option of changing color and the newline. |
|
loadmods | It lets you load mods in the testing shell. |
|
stopmods | It lets you stop mods in the testing shell. |
|
reloadmods | It lets you reload mods in the testing shell. |
|
blacklistmod | It lets you blacklist a mod in the testing shell. |
|
unblacklistmod | It lets you remove a mod from the blacklist in the testing shell. |
|
debug | It lets you enable and disable debugging mode. It only enables the local debugging which will write to your home directory. This allows |
|
rdebug | It lets you enable remote debugger inside the debugging core. This allows users who need to see what's going on in another computer running KS to see its debugging logs. It uses port number |
|
testmd5 | It lets you estimate the time taken to encode a specified string on milliseconds using MD5 algorithm. |
|
testsha1 | It lets you estimate the time taken to encode a specified string on milliseconds using SHA1 algorithm. |
|
testsha256 | It lets you estimate the time taken to encode a specified string on milliseconds using SHA256 algorithm. |
|
testsha384 | It lets you estimate the time taken to encode a specified string on milliseconds using SHA384 algorithm. |
|
testsha512 | It lets you estimate the time taken to encode a specified string on milliseconds using SHA512 algorithm. |
|
testcrc32 | It lets you estimate the time taken to encode a specified string on milliseconds using CRC32 algorithm. |
|
testregexp | It lets you test the regular expression pattern on a specific string. It prints all matches. |
|
colortest | It lets you test the 255 color compatibility. |
|
colortruetest | It lets you test the 24-bit color compatibility, assuming that R, G, and B aren't less than 0 or greater than 255. |
|
colorwheel | Opens the colorwheel facility to test choosing the color based on the type of color whether it's a 255-color or a true color. |
|
sendnot | It lets you test the notification system by sending the notification with the specified title and description on a specific priority. |
|
sendnotprog | It lets you test the notification system by sending the notification with the specified title and description on a specific priority with progress support to test the incrementation. It can be set to fail at a specific percentage (0-100). |
|
dcalend | It lets you render date using different calendar types (one of Gregorian, Hijri, Persian, Saudi-Hijri, Thai-Buddhist) |
|
listcodepages | It lets you list all the available codepages installed on the system. |
|
lscompilervars | It lets you list all the compiler variables used to build Kernel Simulator. |
|
testlistwriterst | It lets you test the list writer using the String type. |
|
testlistwriterint | It lets you test the list writer using the Integer type. |
|
testlistwriterchar | It lets you test the list writer using the Char type. |
|
testdictwriterstr | It lets you test the dictionary writer using the String type. |
|
testdictwriterint | It lets you test the dictionary writer using the Integer type. |
|
testdictwriterchar | It lets you test the dictionary writer using the Char type. |
|
lscultures | It lets you test the available cultures installed on the system. |
|
getcustomsaversetting | It lets you get a setting from a custom saver. Load all the mods and screensavers first before using this command. |
|
setcustomsaversetting | It lets you set a setting from a custom saver. Load all the mods and screensavers first before using this command. |
|
showtime | Shows the current time |
|
showdate | Shows the current date |
|
showtd | Shows the current time and date |
|
showtimeutc | Shows the current time (UTC) |
|
showdateutc | Shows the current date (UTC) |
|
showtdutc | Shows the current time and date (UTC) |
|
testtable | Tests the table drawing |
|
checkstring | Checks the specified string if it exists in the localization files found in the resources of KS (found in the language JSON file) |
|
checksettingsentryvars | Checks the settings entry variables to see if it can be accessible using the settings program. |
|
checklocallines | Checks the localization files to see if the line numbers in them are all equal. |
|
checkstrings | Checks the specified strings in a separate text file if they exist in the localization files found in the resources of KS (found in the language JSON file) |
|
sleeptook | Checks how many milliseconds (or ticks if started with the |
|
getlinestyle | Gets the line ending style from text file. |
|
printfiglet | It lets you test the figlet print to print every text, using the font and colors that you need. |
|
printfigletf | It lets you test the figlet print to print every text, using the font and colors that you need. It has an additional feature of variables. |
|
powerlinetest | It lets you test the powerline glyphs | |
testexecuteasm | It lets you test the assembly execution by reflection | |
help | It lists all the commands and its usages. |
|
exit | It exits the test shell, and starts up the kernel. Exits normally if started up with |
|
shutdown | It shuts down the system. |
|
Last updated