Struct wasmer_wasix::os::console::cconst::ConsoleConst
source · pub struct ConsoleConst {}
Implementations§
source§impl ConsoleConst
impl ConsoleConst
pub const TERM_KEY_ENTER: u32 = 13u32
pub const TERM_KEY_BACKSPACE: u32 = 8u32
pub const TERM_KEY_INSERT: u32 = 45u32
pub const TERM_KEY_DEL: u32 = 46u32
pub const TERM_KEY_TAB: u32 = 9u32
pub const TERM_KEY_HOME: u32 = 36u32
pub const TERM_KEY_END: u32 = 35u32
pub const TERM_KEY_PAGE_UP: u32 = 33u32
pub const TERM_KEY_PAGE_DOWN: u32 = 34u32
pub const TERM_KEY_LEFT_ARROW: u32 = 37u32
pub const TERM_KEY_UP_ARROW: u32 = 38u32
pub const TERM_KEY_RIGHT_ARROW: u32 = 39u32
pub const TERM_KEY_DOWN_ARROW: u32 = 40u32
pub const TERM_KEY_C: u32 = 67u32
pub const TERM_KEY_L: u32 = 76u32
pub const TERM_KEY_F1: u32 = 112u32
pub const TERM_KEY_F2: u32 = 113u32
pub const TERM_KEY_F3: u32 = 114u32
pub const TERM_KEY_F4: u32 = 115u32
pub const TERM_KEY_F5: u32 = 116u32
pub const TERM_KEY_F6: u32 = 117u32
pub const TERM_KEY_F7: u32 = 118u32
pub const TERM_KEY_F8: u32 = 119u32
pub const TERM_KEY_F9: u32 = 120u32
pub const TERM_KEY_F10: u32 = 121u32
pub const TERM_KEY_F11: u32 = 122u32
pub const TERM_KEY_F12: u32 = 123u32
pub const TERM_CURSOR_UP: &'static str = "\x1b[A"
pub const TERM_CURSOR_DOWN: &'static str = "\x1b[B"
pub const TERM_CURSOR_RIGHT: &'static str = "\x1b[C"
pub const TERM_CURSOR_LEFT: &'static str = "\x1b[D"
pub const TERM_DELETE_LINE: &'static str = "\x1b[2K\r"
pub const TERM_DELETE_RIGHT: &'static str = "\x1b[0K\r"
pub const TERM_DELETE_LEFT: &'static str = "\x1b[1K\r"
pub const TERM_DELETE_BELOW: &'static str = "\x1b[0J\r"
pub const TERM_DELETE_ABOVE: &'static str = "\x1b[1J\r"
pub const TERM_DELETE_ALL: &'static str = "\x1b[2J\r"
pub const TERM_DELETE_SAVED: &'static str = "\x1b[3J\r"
pub const TERM_CURSOR_SAVE: &'static str = "\x1b[s"
pub const TERM_CURSOR_RESTORE: &'static str = "\x1b[u"
pub const TERM_WRAPAROUND: &'static str = "\x1b[?7h"
pub const TERM_REVERSE_WRAPAROUND: &'static str = "\x1b[?45h"
pub const TERM_NO_WRAPAROUND: &'static str = "\x1b[?7l"
pub const TERM_NO_REVERSE_WRAPAROUND: &'static str = "\x1b[?45l"
pub const COL_RESET: &'static str = "\x1B[0m"
pub const COL_BLACK: &'static str = "\x1B[0;30m"
pub const COL_GRAY: &'static str = "\x1B[1;30m"
pub const COL_RED: &'static str = "\x1B[0;31m"
pub const COL_LIGHT_RED: &'static str = "\x1B[1;31m"
pub const COL_GREEN: &'static str = "\x1B[0;32m"
pub const COL_LIGHT_GREEN: &'static str = "\x1B[1;32m"
pub const COL_BROWN: &'static str = "\x1B[0;33m"
pub const COL_YELLOW: &'static str = "\x1B[1;33m"
pub const COL_BLUE: &'static str = "\x1B[0;34m"
pub const COL_LIGHT_BLUE: &'static str = "\x1B[1;34m"
pub const COL_PURPLE: &'static str = "\x1B[0;35m"
pub const COL_LIGHT_PURPLE: &'static str = "\x1B[1;35m"
pub const COL_CYAN: &'static str = "\x1B[0;36m"
pub const COL_LIGHT_CYAN: &'static str = "\x1B[1;36m"
pub const COL_LIGHT_GRAY: &'static str = "\x1B[0;37m"
pub const COL_WHITE: &'static str = "\x1B[1;37m"
pub const WELCOME_LARGE: &'static str = "\\x1B[1;34m\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2557}\n\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551}\n\u{2588}\u{2588}\u{2551} \u{2588}\u{2557} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2554}\u{2588}\u{2588}\u{2588}\u{2588}\u{2554}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2554}\u{255d} \u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2551}\n\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2551}\u{255a}\u{2550}\u{2550}\u{2550}\u{2550}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2551}\u{255a}\u{2588}\u{2588}\u{2554}\u{255d}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{255d} \u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2557} \u{255a}\u{2550}\u{2550}\u{2550}\u{2550}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2551}\n\u{255a}\u{2588}\u{2588}\u{2588}\u{2554}\u{2588}\u{2588}\u{2588}\u{2554}\u{255d}\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2551} \u{255a}\u{2550}\u{255d} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551}\n \u{255a}\u{2550}\u{2550}\u{255d}\u{255a}\u{2550}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d}\u{255a}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{255a}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d}\u{255a}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{255a}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d}\u{255a}\u{2550}\u{255d}\u{255a}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{255a}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d}\\x1B[37;1m\\r\n QUICK START: MORE INFO:\\x1B[1;30m\\r\n\u{2022} Wasmer commands: wasmer \u{2022} Usage Information: help\\r\n\u{2022} Core utils: coreutils \u{2022} About Wasmer: about wasmer\\r\n\u{2022} Pipe: echo blah | cat\\x1B[37;0m\\r\\r\\n"
pub const WELCOME_MEDIUM: &'static str = "\\x1B[1;34m\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557} \\r\n\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2557}\\r\n\u{2588}\u{2588}\u{2551} \u{2588}\u{2557} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2554}\u{2588}\u{2588}\u{2588}\u{2588}\u{2554}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2554}\u{255d}\\r\n\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2551}\u{255a}\u{2550}\u{2550}\u{2550}\u{2550}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2551}\u{255a}\u{2588}\u{2588}\u{2554}\u{255d}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{255d} \u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2557}\\r\n\u{255a}\u{2588}\u{2588}\u{2588}\u{2554}\u{2588}\u{2588}\u{2588}\u{2554}\u{255d}\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2551} \u{255a}\u{2550}\u{255d} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551}\\r\n \u{255a}\u{2550}\u{2550}\u{255d}\u{255a}\u{2550}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d}\u{255a}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{255a}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d}\u{255a}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{255a}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d}\\x1B[37;1m\\r\n Type \'help\' for commands.\\x1B[37;0m\\r\\r\\n"
pub const WELCOME_SMALL: &'static str = "\\x1B[1;34m _ _ _ _____ ___ ____ _____ ____ \\r\n| | | (____ |/___| \\| ___ |/ ___)\\r\n| | | / ___ |___ | | | | ____| | \\r\n \\___/\\_____(___/|_|_|_|_____|_| \\x1B[37;0m\\r\\r\\n"
pub const ABOUT: &'static str = "# Wasmer Terminal\n\nThis terminal is an Wasmer powered terminal hosted in a browser which implements\na basic operating system and is natively integrated with ATE and Wasmer.\n\nFor more information try:\n\nabout wasmer\n"
pub const ABOUT_WASMER: &'static str = "# Wasmer\n\nWasmer is a fast and secure WebAssembly runtime that enables super\nlightweight containers to run anywhere: from Desktop to the Cloud, Edge and\nIoT devices.\n\nFeatures:\n\u{2022} Secure by default. No file, network, or environment access, unless\n explicitly enabled.\n\u{2022} Supports WASI out of the box.\n\u{2022} Fast. Run WebAssembly at near-native speeds.\n\u{2022} Embeddable in multiple programming languages\n\u{2022} Compliant with latest WebAssembly Proposals (SIMD, Reference Types,\n Threads, ...)\n"
pub const HELP: &'static str = "# wasmer.sh\n\n## The Shell\n\nThe Wasmer WASM shell is an browser based operating system that integrates\nwith the WebAssembly community to assembly and build micro-applications.\n\nIncluding:\n- MemFS file system with mount points\n- stdin, stdout, stderr and tty support\n- Private file system space per process.\n- Full support for piping and TTY.\n- Fully multi-threaded.\n- Support for basic bash commands.\n\n## coreutil commands:\n\n arch, base32, base64, basename, cat, cksum, comm, cp, csplit, cut,\n date, dircolors, dirname, echo, env, expand, factor, false, fmt, fold,\n hashsum, head, join, link, ln, ls, md5sum, mkdir, mktemp, mv, nl, nproc,\n numfmt, od, paste, printenv, printf, ptx, pwd, readlink, realpath,\n relpath, rm, rmdir, seq, sha1sum, sha224sum, sha256sum, sha3-224sum,\n sha3-256sum, sha3-384sum, sha3-512sum, sha384sum, sha3sum, sha512sum,\n shake128sum, shake256sum, shred, shuf, sleep, sum, tee, touch, tr, true,\n truncate, tsort, unexpand, uniq, unlink, wc, yes"
pub const BAD_WORKER: &'static str = "\n\\x1B[1;31mBackground worker threads failed - {error}\\x1B[30;1m\n\nIt would appear that your browser does not support background worker threads\nwhich means that https://wasmer.sh will not be able to launch processes and\neffectively becomes very limited.\\x1B[37;1m\n\nList supported major browsers:\n\n- Chrome for Desktop - \\x1B[30;1mversion 68 and above\\x1B[37;1m\n- Chrome for Android - \\x1B[30;1mversion 96 and above\\x1B[37;1m\n- Firefox for Desktop - \\x1B[30;1mversion 79 and above\\x1B[37;1m\n- Firefox for Android - \\x1B[30;1mversion 92 and above\\x1B[37;1m\n- Edge - \\x1B[30;1mversion 79 and above\\x1B[30;1m\n\nThe full list is provided here:\nhttps://caniuse.com/sharedarraybuffer\\x1B[37;1m\n\nPlease install and/or upgrade your browser to continue\n"
Auto Trait Implementations§
impl Freeze for ConsoleConst
impl RefUnwindSafe for ConsoleConst
impl Send for ConsoleConst
impl Sync for ConsoleConst
impl Unpin for ConsoleConst
impl UnwindSafe for ConsoleConst
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Pointee for T
impl<T> Pointee for T
§impl<T> Upcastable for T
impl<T> Upcastable for T
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
§fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
upcast boxed dyn