<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://miniscript.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Khorne96</id>
	<title>MiniScript Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://miniscript.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Khorne96"/>
	<link rel="alternate" type="text/html" href="http://miniscript.org/wiki/Special:Contributions/Khorne96"/>
	<updated>2026-04-03T21:44:06Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Key.keyNames&amp;diff=1132</id>
		<title>Key.keyNames</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Key.keyNames&amp;diff=1132"/>
		<updated>2023-10-26T03:01:06Z</updated>

		<summary type="html">&lt;p&gt;Khorne96: /* Example 1 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;c&amp;gt;[[key]].keyNames&amp;lt;/c&amp;gt; returns a list of all the key names available for use with &amp;lt;c&amp;gt;[[key.pressed]]&amp;lt;/c&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=== Usage Notes ===&lt;br /&gt;
This can be used to check all possible button-like inputs (keypresses, joystick buttons, etc). For example: if waiting for the user to press anything to continue or while configuring their input preferences.&lt;br /&gt;
&lt;br /&gt;
Though some values may overlap, the values from &amp;lt;c&amp;gt;[[key]].keyNames&amp;lt;/c&amp;gt; are not always the same that are received from &amp;lt;c&amp;gt;[[key.get]]&amp;lt;/c&amp;gt;. Characters such as upper case letters, arrow keys, etc., as returned from &amp;lt;c&amp;gt;[[key.get]]&amp;lt;/c&amp;gt; cannot be used in &amp;lt;c&amp;gt;[[key.pressed]]&amp;lt;/c&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Example 1 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;while true&lt;br /&gt;
    while true&lt;br /&gt;
	for n in key.keyNames&lt;br /&gt;
		if key.pressed(n) then&lt;br /&gt;
			while key.pressed(n)&lt;br /&gt;
			end while&lt;br /&gt;
			print n&lt;br /&gt;
		end if&lt;br /&gt;
	end for&lt;br /&gt;
end while&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See also: &amp;lt;c&amp;gt;[[key.pressed]]&amp;lt;/c&amp;gt;, &amp;lt;c&amp;gt;[[key]]&amp;lt;/c&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Sample Output ==&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;br /&gt;
Windows 10 sample output: &lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
a&amp;lt;/br&amp;gt;&lt;br /&gt;
b&amp;lt;/br&amp;gt;&lt;br /&gt;
c&amp;lt;/br&amp;gt;&lt;br /&gt;
d&amp;lt;/br&amp;gt;&lt;br /&gt;
e&amp;lt;/br&amp;gt;&lt;br /&gt;
f&amp;lt;/br&amp;gt;&lt;br /&gt;
g&amp;lt;/br&amp;gt;&lt;br /&gt;
h&amp;lt;/br&amp;gt;&lt;br /&gt;
i&amp;lt;/br&amp;gt;&lt;br /&gt;
j&amp;lt;/br&amp;gt;&lt;br /&gt;
k&amp;lt;/br&amp;gt;&lt;br /&gt;
l&amp;lt;/br&amp;gt;&lt;br /&gt;
m&amp;lt;/br&amp;gt;&lt;br /&gt;
n&amp;lt;/br&amp;gt;&lt;br /&gt;
o&amp;lt;/br&amp;gt;&lt;br /&gt;
p&amp;lt;/br&amp;gt;&lt;br /&gt;
q&amp;lt;/br&amp;gt;&lt;br /&gt;
r&amp;lt;/br&amp;gt;&lt;br /&gt;
s&amp;lt;/br&amp;gt;&lt;br /&gt;
t&amp;lt;/br&amp;gt;&lt;br /&gt;
u&amp;lt;/br&amp;gt;&lt;br /&gt;
v&amp;lt;/br&amp;gt;&lt;br /&gt;
w&amp;lt;/br&amp;gt;&lt;br /&gt;
x&amp;lt;/br&amp;gt;&lt;br /&gt;
y&amp;lt;/br&amp;gt;&lt;br /&gt;
z&amp;lt;/br&amp;gt;&lt;br /&gt;
1&amp;lt;/br&amp;gt;&lt;br /&gt;
2&amp;lt;/br&amp;gt;&lt;br /&gt;
3&amp;lt;/br&amp;gt;&lt;br /&gt;
4&amp;lt;/br&amp;gt;&lt;br /&gt;
5&amp;lt;/br&amp;gt;&lt;br /&gt;
6&amp;lt;/br&amp;gt;&lt;br /&gt;
7&amp;lt;/br&amp;gt;&lt;br /&gt;
8&amp;lt;/br&amp;gt;&lt;br /&gt;
9&amp;lt;/br&amp;gt;&lt;br /&gt;
0&amp;lt;/br&amp;gt;&lt;br /&gt;
-&amp;lt;/br&amp;gt;&lt;br /&gt;
=&amp;lt;/br&amp;gt;&lt;br /&gt;
[&amp;lt;/br&amp;gt;&lt;br /&gt;
]&amp;lt;/br&amp;gt;&lt;br /&gt;
\&amp;lt;/br&amp;gt;&lt;br /&gt;
,&amp;lt;/br&amp;gt;&lt;br /&gt;
.&amp;lt;/br&amp;gt;&lt;br /&gt;
/&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;amp;#59;&amp;lt;/br&amp;gt;&lt;br /&gt;
'&amp;lt;/br&amp;gt;&lt;br /&gt;
`&amp;lt;/br&amp;gt;&lt;br /&gt;
f1&amp;lt;/br&amp;gt;&lt;br /&gt;
f2&amp;lt;/br&amp;gt;&lt;br /&gt;
f3&amp;lt;/br&amp;gt;&lt;br /&gt;
f4&amp;lt;/br&amp;gt;&lt;br /&gt;
f5&amp;lt;/br&amp;gt;&lt;br /&gt;
f6&amp;lt;/br&amp;gt;&lt;br /&gt;
f7&amp;lt;/br&amp;gt;&lt;br /&gt;
f8&amp;lt;/br&amp;gt;&lt;br /&gt;
f9&amp;lt;/br&amp;gt;&lt;br /&gt;
f10&amp;lt;/br&amp;gt;&lt;br /&gt;
f11&amp;lt;/br&amp;gt;&lt;br /&gt;
f12&amp;lt;/br&amp;gt;&lt;br /&gt;
f13&amp;lt;/br&amp;gt;&lt;br /&gt;
f14&amp;lt;/br&amp;gt;&lt;br /&gt;
f15&amp;lt;/br&amp;gt;&lt;br /&gt;
up&amp;lt;/br&amp;gt;&lt;br /&gt;
down&amp;lt;/br&amp;gt;&lt;br /&gt;
left&amp;lt;/br&amp;gt;&lt;br /&gt;
right&amp;lt;/br&amp;gt;&lt;br /&gt;
[1]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; // keypad input&amp;lt;/br&amp;gt;&lt;br /&gt;
[2]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; // keypad input&amp;lt;/br&amp;gt;&lt;br /&gt;
[3]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; // keypad input&amp;lt;/br&amp;gt;&lt;br /&gt;
[4]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; // keypad input&amp;lt;/br&amp;gt;&lt;br /&gt;
[5]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; // keypad input&amp;lt;/br&amp;gt;&lt;br /&gt;
[6]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; // keypad input&amp;lt;/br&amp;gt;&lt;br /&gt;
[7]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; // keypad input&amp;lt;/br&amp;gt;&lt;br /&gt;
[8]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; // keypad input&amp;lt;/br&amp;gt;&lt;br /&gt;
[9]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; // keypad input&amp;lt;/br&amp;gt;&lt;br /&gt;
[0]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; // keypad input&amp;lt;/br&amp;gt;&lt;br /&gt;
[+]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; // keypad input&amp;lt;/br&amp;gt;&lt;br /&gt;
[-]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; // keypad input&amp;lt;/br&amp;gt;&lt;br /&gt;
[*]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; // keypad input&amp;lt;/br&amp;gt;&lt;br /&gt;
[/]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; // keypad input&amp;lt;/br&amp;gt;&lt;br /&gt;
enter&amp;lt;/br&amp;gt;&lt;br /&gt;
equals&amp;lt;/br&amp;gt;&lt;br /&gt;
clear&amp;lt;/br&amp;gt;&lt;br /&gt;
left shift&amp;lt;/br&amp;gt;&lt;br /&gt;
right shift&amp;lt;/br&amp;gt;&lt;br /&gt;
left ctrl&amp;lt;/br&amp;gt;&lt;br /&gt;
right ctrl&amp;lt;/br&amp;gt;&lt;br /&gt;
left alt&amp;lt;/br&amp;gt;&lt;br /&gt;
right alt&amp;lt;/br&amp;gt;&lt;br /&gt;
left cmd&amp;lt;/br&amp;gt;&lt;br /&gt;
right cmd&amp;lt;/br&amp;gt;&lt;br /&gt;
backspace&amp;lt;/br&amp;gt;&lt;br /&gt;
tab&amp;lt;/br&amp;gt;&lt;br /&gt;
return&amp;lt;/br&amp;gt;&lt;br /&gt;
escape&amp;lt;/br&amp;gt;&lt;br /&gt;
space&amp;lt;/br&amp;gt;&lt;br /&gt;
delete&amp;lt;/br&amp;gt;&lt;br /&gt;
insert&amp;lt;/br&amp;gt;&lt;br /&gt;
home&amp;lt;/br&amp;gt;&lt;br /&gt;
end&amp;lt;/br&amp;gt;&lt;br /&gt;
page up&amp;lt;/br&amp;gt;&lt;br /&gt;
page down&amp;lt;/br&amp;gt;&lt;br /&gt;
mouse 0&amp;lt;/br&amp;gt;&lt;br /&gt;
mouse 1&amp;lt;/br&amp;gt;&lt;br /&gt;
mouse 2&amp;lt;/br&amp;gt;&lt;br /&gt;
mouse 3&amp;lt;/br&amp;gt;&lt;br /&gt;
mouse 4&amp;lt;/br&amp;gt;&lt;br /&gt;
mouse 5&amp;lt;/br&amp;gt;&lt;br /&gt;
mouse 6&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick button 0&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick button 1&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick button 2&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick button 3&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick button 4&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick button 5&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick button 6&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick button 7&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick button 8&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick button 9&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick button 10&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick button 11&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick button 12&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick button 13&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick button 14&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick button 15&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 1 button 0&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 1 button 1&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 1 button 2&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 1 button 3&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 1 button 4&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 1 button 5&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 1 button 6&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 1 button 7&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 1 button 8&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 1 button 9&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 1 button 10&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 1 button 11&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 1 button 12&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 1 button 13&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 1 button 14&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 1 button 15&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 2 button 0&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 2 button 1&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 2 button 2&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 2 button 3&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 2 button 4&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 2 button 5&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 2 button 6&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 2 button 7&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 2 button 8&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 2 button 9&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 2 button 10&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 2 button 11&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 2 button 12&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 2 button 13&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 2 button 14&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 2 button 15&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 3 button 0&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 3 button 1&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 3 button 2&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 3 button 3&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 3 button 4&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 3 button 5&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 3 button 6&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 3 button 7&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 3 button 8&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 3 button 9&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 3 button 10&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 3 button 11&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 3 button 12&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 3 button 13&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 3 button 14&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 3 button 15&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 4 button 0&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 4 button 1&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 4 button 2&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 4 button 3&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 4 button 4&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 4 button 5&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 4 button 6&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 4 button 7&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 4 button 8&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 4 button 9&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 4 button 10&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 4 button 11&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 4 button 12&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 4 button 13&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 4 button 14&amp;lt;/br&amp;gt;&lt;br /&gt;
joystick 4 button 15&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;/div&gt;</summary>
		<author><name>Khorne96</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Env&amp;diff=1108</id>
		<title>Env</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Env&amp;diff=1108"/>
		<updated>2023-08-27T07:32:42Z</updated>

		<summary type="html">&lt;p&gt;Khorne96: /* Windows Version */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; is a built-in map in both [[Mini Micro]] and [[command-line MiniScript]].  It has somewhat different meaning and usage in each environment.&lt;br /&gt;
&lt;br /&gt;
== Mini Micro ==&lt;br /&gt;
&lt;br /&gt;
In [[Mini Micro]], &amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; refers to a map of special values that affect the Mini Micro environment.  It contains at least the following keys:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Key !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| bootOpts || a complete copy of the data in the [[bootOpts.grfon]] file&lt;br /&gt;
|-&lt;br /&gt;
| curdir || current working directory (same as [[pwd]])&lt;br /&gt;
|-&lt;br /&gt;
| cmdLine || command line command that was used to launch Mini Micro (where applicable)&lt;br /&gt;
|-&lt;br /&gt;
| cmdLineArgs || command line arguments (as a [[list]]) used when Mini Micro was launched (where applicable)&lt;br /&gt;
|-&lt;br /&gt;
| importPaths || [[list]] of directories searched for [[import]] modules&lt;br /&gt;
|-&lt;br /&gt;
| prompt || [[string]] printed as the command-line prompt&lt;br /&gt;
|-&lt;br /&gt;
| morePrompt || [[string]] printed as the prompt when more input is needed&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Command-Line MiniScript ==&lt;br /&gt;
&lt;br /&gt;
In [[command-line MiniScript]], &amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; is a copy of the shell environment variables.  Assignments to entries of &amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; add or update environment variables.  (Deleting environment variables is not possible; you may delete from the &amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; map, but this does not actually affect the environment.)&lt;br /&gt;
&lt;br /&gt;
The exact meaning of environment variables varies with the platform.  They have many uses, such as in [http://www.cgi101.com/book/ch3/text.html CGI scripts].&lt;br /&gt;
&lt;br /&gt;
=== Windows Version ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Key !! Default !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| MS_EXE_DIR || Launch directory ||Returns the directory ([[String]]) of which the miniscript.exe was launched from&lt;br /&gt;
|-&lt;br /&gt;
| MS_IMPORT_PATH || &amp;quot;$MS_SCRIPT_DIR/lib:$MS_EXE_DIR/lib&amp;quot; ||directory listings ([[String]]) of where MiniScript files are located allowing [[Import]] to search in those for file import.&lt;br /&gt;
|-&lt;br /&gt;
| HOMEPATH || User home || Returns the home Directory ([[String]]) of the user that had launched miniscript.exe&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Linux Version===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Key !! Default !! Meaning&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Useful tips ==&lt;br /&gt;
&lt;br /&gt;
=== Adding more import paths (Windows Command Line) ===&lt;br /&gt;
To add more folders to [[Import]] from, alter or add the path with a dollar sign ('''$''') to the beginning of $MS_SCRIPT_DIR or $MS_EXE_DIR [[String]] text with a forward slash ('''/''') before the folder name like so: '''$MS_SCRIPT_DIR/sprites'''. To add multiple paths for import simply add a colon (''':''') between the designated paths to indicate multiple directories to import from. Apply the string to the [[Env|env]].MS_IMPORT_PATH like below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt; env.MS_IMPORT_PATH = &amp;quot;$MS_SCRIPT_DIR/sprites&amp;quot; // replaces the default with one folder named sprites&lt;br /&gt;
 env.MS_IMPORT_PATH = &amp;quot;$MS_SCRIPT_DIR/lib:$MS_EXE_DIR/lib:$MS_SCRIPT_DIR/sprites&amp;quot; // default plus new folder sprites&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;br /&gt;
[[Category:Command-Line MiniScript]]&lt;br /&gt;
[[Category:Farmtronics]]&lt;/div&gt;</summary>
		<author><name>Khorne96</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Env&amp;diff=1107</id>
		<title>Env</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Env&amp;diff=1107"/>
		<updated>2023-08-27T07:27:24Z</updated>

		<summary type="html">&lt;p&gt;Khorne96: /* Adding more import paths (Windows) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; is a built-in map in both [[Mini Micro]] and [[command-line MiniScript]].  It has somewhat different meaning and usage in each environment.&lt;br /&gt;
&lt;br /&gt;
== Mini Micro ==&lt;br /&gt;
&lt;br /&gt;
In [[Mini Micro]], &amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; refers to a map of special values that affect the Mini Micro environment.  It contains at least the following keys:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Key !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| bootOpts || a complete copy of the data in the [[bootOpts.grfon]] file&lt;br /&gt;
|-&lt;br /&gt;
| curdir || current working directory (same as [[pwd]])&lt;br /&gt;
|-&lt;br /&gt;
| cmdLine || command line command that was used to launch Mini Micro (where applicable)&lt;br /&gt;
|-&lt;br /&gt;
| cmdLineArgs || command line arguments (as a [[list]]) used when Mini Micro was launched (where applicable)&lt;br /&gt;
|-&lt;br /&gt;
| importPaths || [[list]] of directories searched for [[import]] modules&lt;br /&gt;
|-&lt;br /&gt;
| prompt || [[string]] printed as the command-line prompt&lt;br /&gt;
|-&lt;br /&gt;
| morePrompt || [[string]] printed as the prompt when more input is needed&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Command-Line MiniScript ==&lt;br /&gt;
&lt;br /&gt;
In [[command-line MiniScript]], &amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; is a copy of the shell environment variables.  Assignments to entries of &amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; add or update environment variables.  (Deleting environment variables is not possible; you may delete from the &amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; map, but this does not actually affect the environment.)&lt;br /&gt;
&lt;br /&gt;
The exact meaning of environment variables varies with the platform.  They have many uses, such as in [http://www.cgi101.com/book/ch3/text.html CGI scripts].&lt;br /&gt;
&lt;br /&gt;
=== Windows Version ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Key !! Default !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| MS_EXE_DIR || Launch directory ||Returns the directory ([[String]]) of which the miniscript.exe was launched from&lt;br /&gt;
|-&lt;br /&gt;
| MS_IMPORT_PATH || &amp;quot;$MS_SCRIPT_DIR/lib:$MS_EXE_DIR/lib&amp;quot; ||import paths ([[String]]) listing of where to importable files are located when using [[Import]]&lt;br /&gt;
|-&lt;br /&gt;
| HOMEPATH || User home || Returns the home Directory ([[String]]) of the user that had launched miniscript.exe&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Linux Version===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Key !! Default !! Meaning&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Useful tips ==&lt;br /&gt;
&lt;br /&gt;
=== Adding more import paths (Windows Command Line) ===&lt;br /&gt;
To add more folders to [[Import]] from, alter or add the path with a dollar sign ('''$''') to the beginning of $MS_SCRIPT_DIR or $MS_EXE_DIR [[String]] text with a forward slash ('''/''') before the folder name like so: '''$MS_SCRIPT_DIR/sprites'''. To add multiple paths for import simply add a colon (''':''') between the designated paths to indicate multiple directories to import from. Apply the string to the [[Env|env]].MS_IMPORT_PATH like below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt; env.MS_IMPORT_PATH = &amp;quot;$MS_SCRIPT_DIR/sprites&amp;quot; // replaces the default with one folder named sprites&lt;br /&gt;
 env.MS_IMPORT_PATH = &amp;quot;$MS_SCRIPT_DIR/lib:$MS_EXE_DIR/lib:$MS_SCRIPT_DIR/sprites&amp;quot; // default plus new folder sprites&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;br /&gt;
[[Category:Command-Line MiniScript]]&lt;br /&gt;
[[Category:Farmtronics]]&lt;/div&gt;</summary>
		<author><name>Khorne96</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Env&amp;diff=1106</id>
		<title>Env</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Env&amp;diff=1106"/>
		<updated>2023-08-27T07:27:00Z</updated>

		<summary type="html">&lt;p&gt;Khorne96: /* Linux */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; is a built-in map in both [[Mini Micro]] and [[command-line MiniScript]].  It has somewhat different meaning and usage in each environment.&lt;br /&gt;
&lt;br /&gt;
== Mini Micro ==&lt;br /&gt;
&lt;br /&gt;
In [[Mini Micro]], &amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; refers to a map of special values that affect the Mini Micro environment.  It contains at least the following keys:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Key !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| bootOpts || a complete copy of the data in the [[bootOpts.grfon]] file&lt;br /&gt;
|-&lt;br /&gt;
| curdir || current working directory (same as [[pwd]])&lt;br /&gt;
|-&lt;br /&gt;
| cmdLine || command line command that was used to launch Mini Micro (where applicable)&lt;br /&gt;
|-&lt;br /&gt;
| cmdLineArgs || command line arguments (as a [[list]]) used when Mini Micro was launched (where applicable)&lt;br /&gt;
|-&lt;br /&gt;
| importPaths || [[list]] of directories searched for [[import]] modules&lt;br /&gt;
|-&lt;br /&gt;
| prompt || [[string]] printed as the command-line prompt&lt;br /&gt;
|-&lt;br /&gt;
| morePrompt || [[string]] printed as the prompt when more input is needed&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Command-Line MiniScript ==&lt;br /&gt;
&lt;br /&gt;
In [[command-line MiniScript]], &amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; is a copy of the shell environment variables.  Assignments to entries of &amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; add or update environment variables.  (Deleting environment variables is not possible; you may delete from the &amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; map, but this does not actually affect the environment.)&lt;br /&gt;
&lt;br /&gt;
The exact meaning of environment variables varies with the platform.  They have many uses, such as in [http://www.cgi101.com/book/ch3/text.html CGI scripts].&lt;br /&gt;
&lt;br /&gt;
=== Windows Version ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Key !! Default !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| MS_EXE_DIR || Launch directory ||Returns the directory ([[String]]) of which the miniscript.exe was launched from&lt;br /&gt;
|-&lt;br /&gt;
| MS_IMPORT_PATH || &amp;quot;$MS_SCRIPT_DIR/lib:$MS_EXE_DIR/lib&amp;quot; ||import paths ([[String]]) listing of where to importable files are located when using [[Import]]&lt;br /&gt;
|-&lt;br /&gt;
| HOMEPATH || User home || Returns the home Directory ([[String]]) of the user that had launched miniscript.exe&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Linux Version===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Key !! Default !! Meaning&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Useful tips ==&lt;br /&gt;
&lt;br /&gt;
=== Adding more import paths (Windows) ===&lt;br /&gt;
To add more folders to [[Import]] from, alter or add the path with a dollar sign ('''$''') to the beginning of $MS_SCRIPT_DIR or $MS_EXE_DIR [[String]] text with a forward slash ('''/''') before the folder name like so: '''$MS_SCRIPT_DIR/sprites'''. To add multiple paths for import simply add a colon (''':''') between the designated paths to indicate multiple directories to import from. Apply the string to the [[Env|env]].MS_IMPORT_PATH like below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt; env.MS_IMPORT_PATH = &amp;quot;$MS_SCRIPT_DIR/sprites&amp;quot; // replaces the default with one folder named sprites&lt;br /&gt;
 env.MS_IMPORT_PATH = &amp;quot;$MS_SCRIPT_DIR/lib:$MS_EXE_DIR/lib:$MS_SCRIPT_DIR/sprites&amp;quot; // default plus new folder sprites&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;br /&gt;
[[Category:Command-Line MiniScript]]&lt;br /&gt;
[[Category:Farmtronics]]&lt;/div&gt;</summary>
		<author><name>Khorne96</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Env&amp;diff=1105</id>
		<title>Env</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Env&amp;diff=1105"/>
		<updated>2023-08-27T07:25:32Z</updated>

		<summary type="html">&lt;p&gt;Khorne96: /* Command-Line MiniScript */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; is a built-in map in both [[Mini Micro]] and [[command-line MiniScript]].  It has somewhat different meaning and usage in each environment.&lt;br /&gt;
&lt;br /&gt;
== Mini Micro ==&lt;br /&gt;
&lt;br /&gt;
In [[Mini Micro]], &amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; refers to a map of special values that affect the Mini Micro environment.  It contains at least the following keys:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Key !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| bootOpts || a complete copy of the data in the [[bootOpts.grfon]] file&lt;br /&gt;
|-&lt;br /&gt;
| curdir || current working directory (same as [[pwd]])&lt;br /&gt;
|-&lt;br /&gt;
| cmdLine || command line command that was used to launch Mini Micro (where applicable)&lt;br /&gt;
|-&lt;br /&gt;
| cmdLineArgs || command line arguments (as a [[list]]) used when Mini Micro was launched (where applicable)&lt;br /&gt;
|-&lt;br /&gt;
| importPaths || [[list]] of directories searched for [[import]] modules&lt;br /&gt;
|-&lt;br /&gt;
| prompt || [[string]] printed as the command-line prompt&lt;br /&gt;
|-&lt;br /&gt;
| morePrompt || [[string]] printed as the prompt when more input is needed&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Command-Line MiniScript ==&lt;br /&gt;
&lt;br /&gt;
In [[command-line MiniScript]], &amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; is a copy of the shell environment variables.  Assignments to entries of &amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; add or update environment variables.  (Deleting environment variables is not possible; you may delete from the &amp;lt;c&amp;gt;env&amp;lt;/c&amp;gt; map, but this does not actually affect the environment.)&lt;br /&gt;
&lt;br /&gt;
The exact meaning of environment variables varies with the platform.  They have many uses, such as in [http://www.cgi101.com/book/ch3/text.html CGI scripts].&lt;br /&gt;
&lt;br /&gt;
=== Windows Version ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Key !! Default !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| MS_EXE_DIR || Launch directory ||Returns the directory ([[String]]) of which the miniscript.exe was launched from&lt;br /&gt;
|-&lt;br /&gt;
| MS_IMPORT_PATH || &amp;quot;$MS_SCRIPT_DIR/lib:$MS_EXE_DIR/lib&amp;quot; ||import paths ([[String]]) listing of where to importable files are located when using [[Import]]&lt;br /&gt;
|-&lt;br /&gt;
| HOMEPATH || User home || Returns the home Directory ([[String]]) of the user that had launched miniscript.exe&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Linux ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Key !! Default !! Meaning&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Useful tips ==&lt;br /&gt;
&lt;br /&gt;
=== Adding more import paths (Windows) ===&lt;br /&gt;
To add more folders to [[Import]] from, alter or add the path with a dollar sign ('''$''') to the beginning of $MS_SCRIPT_DIR or $MS_EXE_DIR [[String]] text with a forward slash ('''/''') before the folder name like so: '''$MS_SCRIPT_DIR/sprites'''. To add multiple paths for import simply add a colon (''':''') between the designated paths to indicate multiple directories to import from. Apply the string to the [[Env|env]].MS_IMPORT_PATH like below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt; env.MS_IMPORT_PATH = &amp;quot;$MS_SCRIPT_DIR/sprites&amp;quot; // replaces the default with one folder named sprites&lt;br /&gt;
 env.MS_IMPORT_PATH = &amp;quot;$MS_SCRIPT_DIR/lib:$MS_EXE_DIR/lib:$MS_SCRIPT_DIR/sprites&amp;quot; // default plus new folder sprites&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;br /&gt;
[[Category:Command-Line MiniScript]]&lt;br /&gt;
[[Category:Farmtronics]]&lt;/div&gt;</summary>
		<author><name>Khorne96</name></author>
		
	</entry>
</feed>