Aptivi - Deprecated Manuals
ProjectsWebsiteBlog
Nitrocid KS v0.0.24 - Manual
Nitrocid KS v0.0.24 - Manual
  • History of KS
  • Kernel Simulator
  • Introduction to the Kernel
  • toc
  • arguments
    • Command line arguments for KS
    • Kernel arguments for KS
    • Preboot Command line arguments for KS
  • commands
    • Commands for (S)FTP client for KS
    • Commands-for-KS
    • Brief overview of HTTP shell
    • Brief overview of hex editor shell
    • Brief overview of JSON shell
    • Brief overview of mail shell
    • Brief overview of RSS shell
    • Test shell commands
    • Brief overview of text editor shell
    • Brief overview of ZIP shell
    • hex
      • addbyte hex editor shell command
      • addbytes hex editor shell command
      • clear hex editor shell command
      • delbyte hex editor shell command
      • delbytes hex editor shell command
      • exit hex editor shell command
      • exitnosave hex editor shell command
      • print hex editor shell command
      • querybyte hex editor shell command
      • replace hex editor shell command
      • save hex editor shell command
    • http
      • delete HTTP command
      • get HTTP command
      • getstring HTTP command
      • setsite HTTP command
    • json
      • addproperty JSON shell command
      • clear JSON shell command
      • delproperty JSON shell command
      • exit JSON shell command
      • exitnosave JSON shell command
      • print JSON shell command
      • save JSON shell command
    • mail
      • cd mail command
      • exit mail command
      • list mail command
      • lsdirs mail command
      • mkdir mail command
      • mv mail command
      • mvall mail command
      • read mail command
      • readenc mail command
      • ren mail command
      • rm mail command
      • rmall mail command
      • rmdir mail command
      • send mail command
      • sendenc mail command
    • rss
      • articleinfo RSS command
      • bookmark RSS command
      • chfeed RSS command
      • feedinfo RSS command
      • list RSS command
      • listbookmark RSS command
      • read RSS command
      • unbookmark RSS command
    • sftp
      • cdl (S)FTP command
      • cdr (S)FTP command
      • connect (S)FTP command
      • del (S)FTP command
      • disconnect (S)FTP command
      • get (S)FTP command
      • lsl (S)FTP command
      • lsr (S)FTP command
      • put (S)FTP command
      • pwdl (S)FTP command
      • pwdr (S)FTP command
      • quickconnect (S)FTP command
      • ftponly
        • cp FTP command
        • getfolder FTP command
        • mv FTP command
        • perm FTP command
        • putfolder (S)FTP command
        • type FTP command
    • text
      • addline text editor shell command
      • addlines text editor shell command
      • clear text editor shell command
      • delcharnum text editor shell command
      • delline text editor shell command
      • delword text editor shell command
      • editline text editor shell command
      • exit text editor shell command
      • exitnosave text editor shell command
      • print text editor shell command
      • querychar text editor shell command
      • queryword text editor shell command
      • querywordregex text editor shell command
      • replace text editor shell command
      • replaceinline text editor shell command
      • replaceinlineregex text editor shell command
      • replaceregex text editor shell command
      • save text editor shell command
    • uesh
      • adduser command
      • alias command
      • arginj command
      • beep command
      • blockdbgdev command
      • calc command
      • calendar command
      • cat command
      • cdbglog command
      • chattr command
      • chdir command
      • chhostname command
      • chlang command
      • chmal command
      • chmotd command
      • choice command
      • chpwd command
      • chusrname command
      • clearfiredevents command
      • cls command
      • colorhextorgb command
      • colorhextorgbks command
      • colorrgbtohex command
      • combine command
      • convertlineendings command
      • copy command
      • dict command
      • dirinfo command
      • disconndbgdev command
      • dismissnotif command
      • dismissnotifs command
      • echo command
      • edit command
      • exit command
      • fileinfo command
      • find command
      • firedevents command
      • ftp command
      • genname command
      • get command
      • gettimeinfo command
      • hexedit command
      • http command
      • hwinfo command
      • if command
      • input command
      • jsonbeautify command
      • jsonminify command
      • jsonshell command
      • keyinfo command
      • langman command
      • list command
      • lockscreen command
      • logout command
      • lovehate command
      • lsdbgdev command
      • lsvars command
      • mail command
      • md command
      • meteor command
      • mkfile command
      • mktheme command
      • modman command
      • modmanual command
      • move command
      • netinfo command
      • opem command
      • perm command
      • ping command
      • put command
      • rarshell command
      • rdebug command
      • reboot command
      • reloadconfig command
      • reloadsaver command
      • reportbug command
      • retroks command
      • rexec command
      • rm command
      • rmuser command
      • rss command
      • savecurrdir command
      • savescreen command
      • search command
      • searchword command
      • select command
      • set command
      • setrange command
      • setsaver command
      • setthemes command
      • settings command
      • sftp command
      • shownotifs command
      • showtd command
      • showtdzone command
      • shutdown command
      • snaker command
      • solver command
      • speedpress command
      • spellbee command
      • sshcmd command
      • sshell command
      • stopwatch command
      • sumfile command
      • sumfiles command
      • sysinfo command
      • testshell command
      • timer command
      • unblockdbgdev command
      • unitconv command
      • unzip command
      • update command
      • usermanual command
      • verify command
      • weather command
      • wrap command
      • zip command
      • zipshell command
    • unified
      • exit command
      • presets command
    • zip
      • cdir Zip command
      • chadir Zip command
      • chdir Zip command
      • get Zip command
      • list Zip command
      • pack Zip command
  • config
    • Configuration for KS
    • Screensaver settings for KS
    • Splash settings for KS
  • development
    • Custom splash guide
    • Events for Mod Developers
    • Mod Dependencies
    • Mod manual page
    • Modding guide
    • Screensaver modding guide
  • diagnostics
    • Kernel testing
    • Remote debugging guide
  • misc
    • Output redirection
    • Placeholders
    • Splashes
    • Studying Payslip virus
  • releases
    • Compatibility notes for first-gen KS
    • Compatibility notes for second-gen KS
    • Release-Notes-for-First-Generation-KS
    • Release-Notes-for-Second-Generation-KS
  • ueshdevelopment
    • Shell-scripting
    • UESH conditions
  • utilities
    • KSConverter
    • KSJsonifyLocales
Powered by GitBook
On this page
Edit on GitHub
  1. commands

Test shell commands

Last updated 6 months ago

The types of the colors, which are used to display messages colorfully, are located in the ColTypes enumeration found in ColorTools.

Refer to for the events that can be used in the <Event> argument.

<ErrorType> options:

S = Severe
F = Fatal
U = Unrecoverable
D = Double panic
C = Continuable

<RebootTime> is measured in seconds. It is used if <Reboot> is True or 1.

You can find strings inside the text files in the folder.

Refer to for the list of placeholders.

The testing shell provides these commands:

Command
Description
Usage

print

It lets you test the W() call to print every text, using the lines and colors that you need.

print <Color> <Line> <Message>

printf

It lets you test the W() call to print every text, using the lines and colors that you need. It has an additional feature of variables, but are not parsed yet, so they are parsed as text, but will be fixed in the upcoming release.

printf <Color> <Line> <Variable1;Variable2;Variable3;...> <Message>

printd

It lets you send any message to the debugger, using Wdbg() call. It doesn't provide support for variables unlike printdf. It only works if you have enabled the debugger which you can enable by debug 1.

printd <Message>

printdf

It lets you send any message to the debugger, using Wdbg() call. It provides support for variables, but are not parsed yet. It only works if you have enabled the debugger which you can enable by debug 1.

printdf <Variable1;Variable2;Variable3;...> <Message>

printsep

It lets you print the separator using any text you want.

printsep <Message>

printsepf

It lets you print the separator using any text you want with format support.

printsepf <Variable1;Variable2;Variable3;...> <Message>

printsepcolor

It lets you print the separator using any text you want with color support.

printsepcolor <color> <Message>

printsepcolorf

It lets you print the separator using any text you want with color and format support.

printsepcolorf <color> <Variable1;Variable2;Variable3;...> <Message>

testevent

It lets you raise any event. If you have loaded mods, you can use this command for testing event raises.

testevent <Event>

probehw

It lets you probe hardware in the testing session.

probehw

panic

It force crashes the kernel using custom exception types, messages, reboot times, etc. It does not provide support for variables.

panic <ErrorType> <Reboot> <RebootTime> <Description>

panicf

It force crashes the kernel using custom exception types, messages, reboot times, etc. It provides support for variables, but are not parsed yet.

panic <ErrorType> <Reboot> <RebootTime> <Variable1;Variable2;Variable3;...> <Description>

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.

translate <Lang> <Message>

places

It lets you parse placeholders in the text without the option of changing color and the newline.

places <Message>

loadmods

It lets you load mods in the testing shell.

loadmods

stopmods

It lets you stop mods in the testing shell.

stopmods

reloadmods

It lets you reload mods in the testing shell.

reloadmods

blacklistmod

It lets you blacklist a mod in the testing shell.

blacklistmod <mod>

unblacklistmod

It lets you remove a mod from the blacklist in the testing shell.

unblacklistmod <mod>

debug

It lets you enable and disable debugging mode. It only enables the local debugging which will write to your home directory. This allows printd and printdf to function.

debug <Enable>

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 3014 and can be changed.

rdebug <Enable>

testmd5

It lets you estimate the time taken to encode a specified string on milliseconds using MD5 algorithm.

testmd5 <message>

testsha1

It lets you estimate the time taken to encode a specified string on milliseconds using SHA1 algorithm.

testsha1 <message>

testsha256

It lets you estimate the time taken to encode a specified string on milliseconds using SHA256 algorithm.

testsha256 <message>

testsha384

It lets you estimate the time taken to encode a specified string on milliseconds using SHA384 algorithm.

testsha384 <message>

testsha512

It lets you estimate the time taken to encode a specified string on milliseconds using SHA512 algorithm.

testsha512 <message>

testcrc32

It lets you estimate the time taken to encode a specified string on milliseconds using CRC32 algorithm.

testcrc32 <message>

testregexp

It lets you test the regular expression pattern on a specific string. It prints all matches.

testregexp <pattern> <string>

colortest

It lets you test the 255 color compatibility.

colortest <index>

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.

colortruetest <R;G;B>

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.

colorwheel

sendnot

It lets you test the notification system by sending the notification with the specified title and description on a specific priority.

sendnot <Priority> <title> <desc>

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).

sendnot <Priority> <title> <desc> <failat>

dcalend

It lets you render date using different calendar types (one of Gregorian, Hijri, Persian, Saudi-Hijri, Thai-Buddhist)

dcalend <CalendType>

listcodepages

It lets you list all the available codepages installed on the system.

listcodepages

lscompilervars

It lets you list all the compiler variables used to build Kernel Simulator.

lscompilervars

testlistwriterst

It lets you test the list writer using the String type.

testlistwriterstr

testlistwriterint

It lets you test the list writer using the Integer type.

testlistwriterint

testlistwriterchar

It lets you test the list writer using the Char type.

testlistwriterchar

testdictwriterstr

It lets you test the dictionary writer using the String type.

testdictwriterstr

testdictwriterint

It lets you test the dictionary writer using the Integer type.

testdictwriterint

testdictwriterchar

It lets you test the dictionary writer using the Char type.

testdictwriterchar

lscultures

It lets you test the available cultures installed on the system.

lscultures [search]

getcustomsaversetting

It lets you get a setting from a custom saver. Load all the mods and screensavers first before using this command.

getcustomsaversetting <saver> <setting>

setcustomsaversetting

It lets you set a setting from a custom saver. Load all the mods and screensavers first before using this command.

setcustomsaversetting <saver> <setting> <value>

showtime

Shows the current time

showtime

showdate

Shows the current date

showdate

showtd

Shows the current time and date

showtd

showtimeutc

Shows the current time (UTC)

showtimeutc

showdateutc

Shows the current date (UTC)

showdateutc

showtdutc

Shows the current time and date (UTC)

showtdutc

testtable

Tests the table drawing

testtable [margin]

checkstring

Checks the specified string if it exists in the localization files found in the resources of KS (found in the language JSON file)

checkstring <string>

checksettingsentryvars

Checks the settings entry variables to see if it can be accessible using the settings program.

checksettingsentryvars

checklocallines

Checks the localization files to see if the line numbers in them are all equal.

checklocallines

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)

checkstrings <stringsfile>

sleeptook

Checks how many milliseconds (or ticks if started with the -t switch) did it really take to sleep.

sleeptook [-t] <milliseconds>

getlinestyle

Gets the line ending style from text file.

getlinestyle <textfile>

printfiglet

It lets you test the figlet print to print every text, using the font and colors that you need.

printfiglet <Color> <FigletFont> <Message>

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.

printfigletf <Color> <FigletFont> <Variable1;Variable2;Variable3;...> <Message>

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.

help [command]

exit

It exits the test shell, and starts up the kernel. Exits normally if started up with testshell.

exit

shutdown

It shuts down the system.

shutdown

Events for Mod Developers
Resources
this document