Skip to content

terminal

IsaacShelton edited this page Apr 8, 2022 · 5 revisions

terminal

[2.6/terminal.adept](https://github.com/AdeptLanguage/AdeptImport/blob/59030266ecb8f3f161e595adb59b755645f90a69/output.

Functions

  • func print(string String) void

    Prints a String to standard output.

    [view src]

  • func print(string *ubyte) void

    Prints a C-String to standard output.

    [view src]

  • func print(thing $T) void

    Prints a generic value to standard output.

    A toString function must exist for the type of thing. (e.g. toString(MyType) String)

    [view src]

  • 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 be true

    [view src]

  • func place(string String) void

    Prints a String to standard output without a trailing newline.

    [view src]

  • func place(string *ubyte) void

    Prints a C-String to standard output without a trailing newline.

    [view src]

  • func place(thing $T) void

    Prints a generic value to standard output without a trailing newline.

    A toString function must exist for the type of thing. (e.g. toString(MyType) String)

    [view src]

  • 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 be true.

    [view src]

  • 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 be true.

    [view src]

  • func newline() void

    Prints a newline character to standard output.

    [view src]

  • func scan() String

    Reads a String from standard input.

    [view src]

  • func scan(prompt String) String

    Prints a prompt to standard output and then reads a String from standard input.

    [view src]

  • 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.

    [view src]

  • func scan(prompt String, out result *String) successful

    Prints a prompt to standard output and then reads a String from standard input.

    [view src]

  • 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() or delete.

    [view src]

  • func scan(prompt String, out result *bool) successful

    Prints a prompt to standard output and then reads a bool from standard input.

    [view src]

  • func scan(prompt String, out result *byte) successful

    Prints a prompt to standard output and then reads a byte from standard input.

    [view src]

  • func scan(prompt String, out result *ubyte) successful

    Prints a prompt to standard output and then reads a ubyte from standard input.

    [view src]

  • func scan(prompt String, out result *short) successful

    Prints a prompt to standard output and then reads a short from standard input.

    [view src]

  • func scan(prompt String, out result *ushort) successful

    Prints a prompt to standard output and then reads a ushort from standard input.

    [view src]

  • func scan(prompt String, out result *int) successful

    Prints a prompt to standard output and then reads an int from standard input.

    [view src]

  • func scan(prompt String, out result *uint) successful

    Prints a prompt to standard output and then reads a uint from standard input.

    [view src]

  • func scan(prompt String, out result *long) successful

    Prints a prompt to standard output and then reads a long from standard input.

    [view src]

  • func scan(prompt String, out result *ulong) successful

    Prints a prompt to standard output and then reads a ulong from standard input.

    [view src]

  • func scan(prompt String, out result *float) successful

    Prints a prompt to standard output and then reads a float from standard input.

    [view src]

  • func scan(prompt String, out result *double) successful

    Prints a prompt to standard output and then reads a double from standard input.

    [view src]

Less Relevant Functions

  • func skim() String

    Reads a String from standard input until the next non-leading space or newline.

    [view src]

  • 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.

    [view src]

  • func skimInt() int

    Reads an int from standard input.

    [view src]

  • func skimInt(prompt String) int

    Prints a prompt to standard output and then reads an int from standard input.

    [view src]

  • func skimIntInto(out result *int) successful

    Reads an int from standard input.

    Returns whether or not the input was successfully converted to an int.

    [view src]

  • 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.

    [view src]

  • func skimDouble() double

    Reads an double from standard input.

    [view src]

  • func skimDouble(prompt String) double

    Prints a prompt to standard output and then reads a double from standard input.

    [view src]

  • func skimDoubleInto(out result *double) successful

    Reads an double from standard input.

    Returns whether or not the input was successfully converted to a double.

    [view src]

  • 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.

    [view src]

  • 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 be true.

    [view src]

  • 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 be true.

    [view src]

Other Useful Indirectly Imported Functions

  • 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

Other symbols are imported indirectly from 2.6/cstdio.adept

Clone this wiki locally