I/O, Modules and System Interface
Serialization
categories
Platform
Miscellaneous
Environment variables

Platform

Miscellaneous


categories Miscellaneousnormal dispatch [XL] Core method

chroot(dir:string) -> void

chroot(dirname) causes dirname to become the root directory, that is, the starting point for path searches of pathnames beginning with '/'.

This call is restricted to the super-user.


categories Miscellaneousnormal dispatch [XL] Kernel method

color() -> integer

color() returns the current color mode that can be on of :


categories Miscellaneousnormal dispatch [XL] Kernel method

color(c:integer) -> integer

color(c) sets the color mode to c and returns the previous color mode


categories Miscellaneousnormal dispatch [XL] Kernel method

color_princ(s:string) -> void

color_princ(s) prints the string s on the current output (cout()). The string s may contain color sequences that will be printed as color modifiers according to the current color mode.


categories Miscellaneousnormal dispatch [XL] Kernel method

ding() -> void

ding() prints on stdout the "bell" char (ASCII 0x7).


categories Miscellaneousnormal dispatch Core method

exit(self:integer) -> void

exit(n) stops CLAIRE and returns to the hosting system the value n. What can happen next is platform-dependent.


categories Miscellaneousnormal dispatch Core method

gc() -> void

gc() forces a garbage collection to take place.


categories Miscellaneousnormal dispatch [XL] Kernel method

getlocale(cat:integer) -> string

getlocale(s) returns the current locale for the given category cat (see setlocale).


categories Miscellaneousnormal dispatch [XL] Kernel method

pwd() -> string

pwd() is used to obtain the path of the current working directory. this directory may be changed with setcwd.


categories Miscellaneousnormal dispatch Core method

release() -> string

returns a release number of your CLAIRE system (<release>.<version>.<revision>).


categories Miscellaneousnormal dispatch [XL] Kernel method

setcwd(s:string) -> void

setcwd(s) set the current working directory to the path s. this path can then be obtained with pwd.


categories Miscellaneousnormal dispatch [XL] Kernel method

setlocale(cat:integer, s:string) -> string

setlocale(cat, s) is a wrapper for the C lib setlocale. It sets the notion of natural language formatting style for particular sets of routines. The cat argument defines the category of the routine setlocale applies (see man). cat is one of the following :


categories Miscellaneousnormal dispatch Core method

shell(self:string) -> integer

Passes the command s to the operating system (the shell) and returns the exit status of the command execution.


categories Miscellaneousnormal dispatch [XL] Kernel method

sleep(t:integer) -> void

sleep(t) suspends the execution of the process for t ms.


categories Miscellaneousnormal dispatch [XL] Core method

Core/unix?() -> boolean

unix?() tell if the underlying system is a UNIX (vs. windows).