-
-
Notifications
You must be signed in to change notification settings - Fork 9
terminal
[2.7/terminal.adept
](https://github.com/AdeptLanguage/AdeptImport/blob/2eb8b9e05864f782fc7b75b5e62346c5643b8b72/output.
-
func print(string String) void
Prints a
String
to standard output. -
func print(string *ubyte) void
Prints a C-String to standard output.
-
func print(thing $T) void
Prints a generic value to standard output.
A
toString
function must exist for the type ofthing
. (e.g.toString(MyType) String
) -
func print(values ...) void
Prints a collection of values to standard output, each on their own line.
Each value must be either a
String
or primitive.Requires
__typeinfo__ && variadic_array_use_typeinfo
to betrue
-
func place(string String) void
Prints a
String
to standard output without a trailing newline. -
func place(string *ubyte) void
Prints a C-String to standard output without a trailing newline.
-
func place(thing $T) void
Prints a generic value to standard output without a trailing newline.
A
toString
function must exist for the type ofthing
. (e.g.toString(MyType) String
) -
func place(values ...) void
Prints a collection of values to standard output, each separated by a comma.
Each value must be either a
String
or primitive.Requires
__typeinfo__ && variadic_array_use_typeinfo
to betrue
. -
func placePlain(values ...) void
Prints a collection of values to standard output, without a trailing newline or separating character.
Each value must be either a
String
or primitive.Requires
__typeinfo__ && variadic_array_use_typeinfo
to betrue
. -
func newline() void
Prints a newline character to standard output.
-
func scan() String
Reads a
String
from standard input. -
func scan(prompt String) String
Prints a prompt to standard output and then reads a
String
from standard input. -
func scan(result *$T) successful
Reads a
$T
from standard input.The function
func scan(prompt String, out result *$T) successful
must exist where$T
is a specific type. -
func scan(prompt String, out result *String) successful
Prints a prompt to standard output and then reads a
String
from standard input. -
func scan(prompt String, out result **ubyte) successful
Prints a prompt to standard output and then reads a C-String from standard input.
The resulting C-String will be heap-allocated and should be freed using either
free()
ordelete
. -
func scan(prompt String, out result *bool) successful
Prints a prompt to standard output and then reads a
bool
from standard input. -
func scan(prompt String, out result *byte) successful
Prints a prompt to standard output and then reads a
byte
from standard input. -
func scan(prompt String, out result *ubyte) successful
Prints a prompt to standard output and then reads a
ubyte
from standard input. -
func scan(prompt String, out result *short) successful
Prints a prompt to standard output and then reads a
short
from standard input. -
func scan(prompt String, out result *ushort) successful
Prints a prompt to standard output and then reads a
ushort
from standard input. -
func scan(prompt String, out result *int) successful
Prints a prompt to standard output and then reads an
int
from standard input. -
func scan(prompt String, out result *uint) successful
Prints a prompt to standard output and then reads a
uint
from standard input. -
func scan(prompt String, out result *long) successful
Prints a prompt to standard output and then reads a
long
from standard input. -
func scan(prompt String, out result *ulong) successful
Prints a prompt to standard output and then reads a
ulong
from standard input. -
func scan(prompt String, out result *float) successful
Prints a prompt to standard output and then reads a
float
from standard input. -
func scan(prompt String, out result *double) successful
Prints a prompt to standard output and then reads a
double
from standard input.
-
func skim() String
Reads a
String
from standard input until the next non-leading space or newline. -
func skim(prompt String) String
Prints a prompt to standard output and then reads a
String
from standard input until the next non-leading space or newline. -
func skimInt() int
Reads an
int
from standard input. -
func skimInt(prompt String) int
Prints a prompt to standard output and then reads an
int
from standard input. -
func skimIntInto(out result *int) successful
Reads an
int
from standard input.Returns whether or not the input was successfully converted to an
int
. -
func skimIntInto(prompt String, out result *int) successful
Prints a prompt to standard output and then reads an
int
from standard input.Returns whether or not the input was successfully converted to an
int
. -
func skimDouble() double
Reads an
double
from standard input. -
func skimDouble(prompt String) double
Prints a prompt to standard output and then reads a
double
from standard input. -
func skimDoubleInto(out result *double) successful
Reads an
double
from standard input.Returns whether or not the input was successfully converted to a
double
. -
func skimDoubleInto(prompt String, out result *double) successful
Prints a prompt to standard output and then reads a
double
from standard input.Returns whether or not the input was successfully converted to an
double
. -
func vplace(values VariadicArray, separator String = "", separator_after_last bool = true, ending String = "", fname *ubyte = 'vplace') void
Prints a collection of values in a
VariadicArray
to standard output.Requires
__typeinfo__ && variadic_array_use_typeinfo
to betrue
. -
func placeEx(separator String, separator_after_last bool, ending String, values ...)
Prints a collection of values in to standard output.
Requires
__typeinfo__ && variadic_array_use_typeinfo
to betrue
.
func printf(format String, arguments ...) int
func fprintf(file *FILE, format String, arguments ...) int
func scanf(format String, ...) int
func fscanf(file *FILE, format String, ...) int
foreign printf(*ubyte, ...) int
foreign fprintf(*FILE, *ubyte, ...) int
foreign sprintf(out *ubyte, *ubyte, ...) int
foreign snprintf(out *ubyte, usize, *ubyte, ...) int
foreign scanf(*ubyte, out ...) int
foreign fscanf(*FILE, *ubyte, out ...) int
foreign sscanf(*ubyte, *ubyte, out ...) int
foreign vprintf(*ubyte, inout va_list) int
foreign vfprintf(*FILE, *ubyte, inout va_list) int
foreign vsprintf(out *ubyte, *ubyte, inout va_list) int
foreign vsnprintf(out *ubyte, usize, *ubyte, inout va_list) int
foreign vscanf(*ubyte, inout va_list) int
foreign vfscanf(*FILE, *ubyte, inout va_list) int
foreign vsscanf(*ubyte, *ubyte, inout va_list) int
Other symbols are imported indirectly from 2.7/cstdio.adept