Files
gui/macos/DModem/PtySpawn.h
T
Claude 8b2ba3e58c Remote page on macOS: SSH by /usr/bin/ssh on a pty, Telnet and rlogin on a socket; the docs
The terminal view now takes any TerminalHost (the modem, or a remote
login), so both pages draw with the same view.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSV65geuGd6zMt2V6r
2026-11-12 12:28:13 +00:00

22 lines
713 B
C

/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (C) 2026 D-Modem Authors
*
* PtySpawn.h - a program started on a new pty (the Remote page's ssh):
* Swift can't fork, so this is C
*/
#ifndef DMODEM_PTY_SPAWN_H
#define DMODEM_PTY_SPAWN_H
#include <sys/types.h>
/* path started with argv (NULL-ended) and TERM=term on a pty of cols by
rows, as the leader of its own session: the pty's master (non-blocking),
and its pid in *pid; -1 if it could not be */
int dm_pty_spawn(const char *path, const char *const *argv, const char *term,
int cols, int rows, pid_t *pid);
/* the pty's new size, told to the program (SIGWINCH) */
void dm_pty_resize(int fd, int cols, int rows);
#endif