aboutsummaryrefslogtreecommitdiff
path: root/modules/lua/api/os.luadoc
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-08-21 01:14:24 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-08-21 01:14:24 -0400
commitf41a788cb424b31fd687253e8db3fd448a693b4a (patch)
treed733e35486108a29afcac5d84a9adfd03dcb30c4 /modules/lua/api/os.luadoc
parent0c1718a568f4db2661ab3fc960beba22ce5ff00c (diff)
downloadtextadept-f41a788cb424b31fd687253e8db3fd448a693b4a.tar.gz
textadept-f41a788cb424b31fd687253e8db3fd448a693b4a.zip
Added Lua autocompletion support.
Diffstat (limited to 'modules/lua/api/os.luadoc')
-rw-r--r--modules/lua/api/os.luadoc24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/lua/api/os.luadoc b/modules/lua/api/os.luadoc
new file mode 100644
index 00000000..cb8ca275
--- /dev/null
+++ b/modules/lua/api/os.luadoc
@@ -0,0 +1,24 @@
+--- Returns CPU time used by program in seconds.
+function clock()
+--- Returns a string or table containing date and time, "*t" returns a table.
+function date([format [, time]])
+--- Returns number of seconds from time t1 to time t2.
+function difftime(t2, t1)
+--- Executes command using C function system, returns status code.
+function execute(command)
+--- Terminates host program with optional code, default is success code.
+function exit([code])
+--- Returns value of environment variable varname. nil if not defined.
+function getenv(varname)
+--- Deletes file with given name, nil if fails.
+function remove(filename)
+--- Renames file oldname to newname, nil if fails.
+function rename(oldname, newname)
+--- Set current locale of program, returns name of new locate or nil.
+function setlocale(locale [, category])
+--- Returns current time(usually seconds) or time as represented by table.
+function time([table])
+---
+-- Returns a string with a filename for a temporary file(dangerous! tmpfile is
+-- better).
+function tmpname()