-
-
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) voidPrints a
Stringto standard output. -
func print(string *ubyte) voidPrints a C-String to standard output.
-
func print(thing $T) voidPrints a generic value to standard output.
A
toStringfunction must exist for the type ofthing. (e.g.toString(MyType) String) -
func print(values ...) voidPrints a collection of values to standard output, each on their own line.
Each value must be either a
Stringor primitive.Requires
__typeinfo__ && variadic_array_use_typeinfoto betrue -
func place(string String) voidPrints a
Stringto standard output without a trailing newline. -
func place(string *ubyte) voidPrints a C-String to standard output without a trailing newline.
-
func place(thing $T) voidPrints a generic value to standard output without a trailing newline.
A
toStringfunction must exist for the type ofthing. (e.g.toString(MyType) String) -
func place(values ...) voidPrints a collection of values to standard output, each separated by a comma.
Each value must be either a
Stringor primitive.Requires
__typeinfo__ && variadic_array_use_typeinfoto betrue. -
func placePlain(values ...) voidPrints a collection of values to standard output, without a trailing newline or separating character.
Each value must be either a
Stringor primitive.Requires
__typeinfo__ && variadic_array_use_typeinfoto betrue. -
func newline() voidPrints a newline character to standard output.
-
func scan() StringReads a
Stringfrom standard input. -
func scan(prompt String) StringPrints a prompt to standard output and then reads a
Stringfrom standard input. -
func scan(result *$T) successfulReads a
$Tfrom standard input.The function
func scan(prompt String, out result *$T) successfulmust exist where$Tis a specific type. -
func scan(prompt String, out result *String) successfulPrints a prompt to standard output and then reads a
Stringfrom standard input. -
func scan(prompt String, out result **ubyte) successfulPrints 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) successfulPrints a prompt to standard output and then reads a
boolfrom standard input. -
func scan(prompt String, out result *byte) successfulPrints a prompt to standard output and then reads a
bytefrom standard input. -
func scan(prompt String, out result *ubyte) successfulPrints a prompt to standard output and then reads a
ubytefrom standard input. -
func scan(prompt String, out result *short) successfulPrints a prompt to standard output and then reads a
shortfrom standard input. -
func scan(prompt String, out result *ushort) successfulPrints a prompt to standard output and then reads a
ushortfrom standard input. -
func scan(prompt String, out result *int) successfulPrints a prompt to standard output and then reads an
intfrom standard input. -
func scan(prompt String, out result *uint) successfulPrints a prompt to standard output and then reads a
uintfrom standard input. -
func scan(prompt String, out result *long) successfulPrints a prompt to standard output and then reads a
longfrom standard input. -
func scan(prompt String, out result *ulong) successfulPrints a prompt to standard output and then reads a
ulongfrom standard input. -
func scan(prompt String, out result *float) successfulPrints a prompt to standard output and then reads a
floatfrom standard input. -
func scan(prompt String, out result *double) successfulPrints a prompt to standard output and then reads a
doublefrom standard input.
-
func skim() StringReads a
Stringfrom standard input until the next non-leading space or newline. -
func skim(prompt String) StringPrints a prompt to standard output and then reads a
Stringfrom standard input until the next non-leading space or newline. -
func skimInt() intReads an
intfrom standard input. -
func skimInt(prompt String) intPrints a prompt to standard output and then reads an
intfrom standard input. -
func skimIntInto(out result *int) successfulReads an
intfrom standard input.Returns whether or not the input was successfully converted to an
int. -
func skimIntInto(prompt String, out result *int) successfulPrints a prompt to standard output and then reads an
intfrom standard input.Returns whether or not the input was successfully converted to an
int. -
func skimDouble() doubleReads an
doublefrom standard input. -
func skimDouble(prompt String) doublePrints a prompt to standard output and then reads a
doublefrom standard input. -
func skimDoubleInto(out result *double) successfulReads an
doublefrom standard input.Returns whether or not the input was successfully converted to a
double. -
func skimDoubleInto(prompt String, out result *double) successfulPrints a prompt to standard output and then reads a
doublefrom 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') voidPrints a collection of values in a
VariadicArrayto standard output.Requires
__typeinfo__ && variadic_array_use_typeinfoto 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_typeinfoto betrue.
func printf(format String, arguments ...) intfunc fprintf(file *FILE, format String, arguments ...) intfunc scanf(format String, ...) intfunc fscanf(file *FILE, format String, ...) intforeign printf(*ubyte, ...) intforeign fprintf(*FILE, *ubyte, ...) intforeign sprintf(out *ubyte, *ubyte, ...) intforeign snprintf(out *ubyte, usize, *ubyte, ...) intforeign scanf(*ubyte, out ...) intforeign fscanf(*FILE, *ubyte, out ...) intforeign sscanf(*ubyte, *ubyte, out ...) intforeign vprintf(*ubyte, inout va_list) intforeign vfprintf(*FILE, *ubyte, inout va_list) intforeign vsprintf(out *ubyte, *ubyte, inout va_list) intforeign vsnprintf(out *ubyte, usize, *ubyte, inout va_list) intforeign vscanf(*ubyte, inout va_list) intforeign vfscanf(*FILE, *ubyte, inout va_list) intforeign vsscanf(*ubyte, *ubyte, inout va_list) int
Other symbols are imported indirectly from 2.7/cstdio.adept