-
-
Notifications
You must be signed in to change notification settings - Fork 6
Features Terminals
coe0718 edited this page May 23, 2026
·
3 revisions
Create and manage PTY sessions.
deskbrid terminal create --shell /bin/bash --cwd /home/user/project
deskbrid terminal create --shell zsh --rows 24 --cols 80
deskbrid terminal create --env PATH=/usr/local/bin:/usr/bin --env DEBUG=1Response:
{
"type": "response",
"status": "ok",
"data": {
"terminal_id": "term_123456"
}
}Protocol:
{
"type": "terminal.create",
"shell": "/bin/bash",
"cwd": "/home/user/project",
"rows": 24,
"cols": 80
}deskbrid terminal listResponse:
{
"type": "response",
"status": "ok",
"data": [
{
"terminal_id": "term_123456",
"pid": 12345,
"shell": "/bin/bash",
"cwd": "/home/user/project"
}
]
}Protocol:
{"type": "terminal.list"}deskbrid terminal write term_123456 --input "ls -la\n"
deskbrid terminal write term_123456 --input "echo 'Hello'\n"Protocol:
{"type": "terminal.write", "terminal_id": "term_123456", "input": "ls -la\n"}deskbrid terminal read term_123456
deskbrid terminal read term_123456 --max-bytes 4096 --flushResponse:
{
"type": "response",
"status": "ok",
"data": {
"output": "total 16\ndrwxr-xr-x 2 user user 4096 Jan 15 10:00 .\n-rw-r--r-- 1 user user 123 Jan 15 10:00 main.rs\n"
}
}Protocol:
{
"type": "terminal.read",
"terminal_id": "term_123456",
"max_bytes": 4096,
"flush": true
}deskbrid terminal resize term_123456 --rows 40 --cols 120Protocol:
{
"type": "terminal.resize",
"terminal_id": "term_123456",
"rows": 40,
"cols": 120
}deskbrid terminal kill term_123456
deskbrid terminal kill term_123456 --signal SIGKILL
deskbrid terminal kill term_123456 --signal SIGTERMProtocol:
{
"type": "terminal.kill",
"terminal_id": "term_123456",
"signal": "SIGTERM"
}from deskbrid import Deskbrid
client = Deskbrid()
# Create a terminal
result = client.terminal_create(cwd="/home/user/project")
term_id = result["terminal_id"]
# Run a command
client.terminal_write(term_id, "npm test\n")
# Read output
output = client.terminal_read(term_id)
print(output["output"])
# Clean up
client.terminal_kill(term_id)- Accessibility
- Apps
- Audio
- Backlight (LED driver)
- Bluetooth
- Clipboard
- Color Picker
- Desktop Portal
- Desktop Settings
- Files
- Hotkeys
- Input
- Keyboard Layouts
- Media (MPRIS)
- Monitors
- Network
- Notifications
- Print (CUPS)
- Screenshots
- Screen Recording
- Screencast
- Self-Update
- System
- System Tray
- Systemd Units & Timers
- Terminals (PTY)
- Windows & Workspaces