diff --git a/core/os/os_js.odin b/core/os/os_js.odin index 348554728..4d02eef7c 100644 --- a/core/os/os_js.odin +++ b/core/os/os_js.odin @@ -249,3 +249,7 @@ exit :: proc "contextless" (code: int) -> ! { current_thread_id :: proc "contextless" () -> int { return 0 } + +lookup_env :: proc(key: string, allocator := context.allocator) -> (value: string, found: bool) { + return "", false +} \ No newline at end of file diff --git a/core/terminal/terminal_js.odin b/core/terminal/terminal_js.odin new file mode 100644 index 000000000..2d880420b --- /dev/null +++ b/core/terminal/terminal_js.odin @@ -0,0 +1,15 @@ +#+private +#+build js +package terminal + +import "core:os" + +_is_terminal :: proc(handle: os.Handle) -> bool { + return true +} + +_init_terminal :: proc() { + color_depth = .None +} + +_fini_terminal :: proc() { } \ No newline at end of file