mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-23 11:15:32 +02:00
feat(pty): add initial pty node
This commit is contained in:
parent
d223a458cd
commit
1514f42b54
21 changed files with 2819 additions and 71 deletions
21
test/test_pty.gd
Normal file
21
test/test_pty.gd
Normal file
|
@ -0,0 +1,21 @@
|
|||
# SPDX-FileCopyrightText: 2024 Leroy Hopson <godot-xterm@leroy.nix.nz>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
class_name PTYTest extends "res://addons/gut/test.gd"
|
||||
|
||||
var pty: PTY
|
||||
|
||||
|
||||
func before_each():
|
||||
pty = PTY.new()
|
||||
add_child_autofree(pty)
|
||||
|
||||
|
||||
class TestDefaults:
|
||||
extends PTYTest
|
||||
|
||||
func test_default_env() -> void:
|
||||
assert_eq(pty.env, {"TERM": "xterm-256color", "COLORTERM": "truecolor"})
|
||||
|
||||
func test_default_use_os_env() -> void:
|
||||
assert_eq(pty.use_os_env, true)
|
Loading…
Add table
Add a link
Reference in a new issue