class PtTty PtTerminal { tty_buflen; // unsigned short (Pt_ARG_TTY_BUFLEN) tty_cmd; // string (Pt_ARG_TTY_CMD) tty_devsize; // PhPoint (Pt_ARG_TTY_DEVSIZE) tty_exit_status; // integer (Pt_ARG_TTY_EXIT_STATUS) tty_fd; // integer (Pt_ARG_TTY_FD) tty_fdset; // unsigned short (Pt_ARG_TTY_FDSET) tty_flags; // flag (Pt_ARG_TTY_FLAGS) tty_input; // string (Pt_ARG_TTY_INPUT) tty_mfd; // integer (Pt_ARG_TTY_MFD) tty_path; // string (Pt_ARG_TTY_PATH) tty_pid; // long (Pt_ARG_TTY_PID) tty_pri; // integer (Pt_ARG_TTY_PRI) tty_pseudo; // string (Pt_ARG_TTY_PSEUDO) }
This widget is a child of PtTerminal, but can be attached to a device, and has the capability of device I/O.
![]() | For detailed information, please refer to PtTty in the Photon documentation. |
{PhPoint (x . 0) (y . 0)} | Constant | Description |
|---|---|
| Pt_TTY_TERMRESIZE | Sets the terminal widget size when the device size changes. |
| Pt_TTY_DEVRESIZE | Resizes the device when the terminal size changes. |
| Pt_TTY_DEVLIMIT | Resizes the device when its size changes beyond the size limits of the terminal. |
| Pt_TTY_DEVFORCE | Resizes the device size to the terminal's size. |
| Pt_TTY_SETENV | Set or modify environment variables. |
| Pt_TTY_ARGV0 | Use the program name as argv[0]. |
| Pt_TTY_BUF_PRIVATE | The widget is using an allocated buffer. |
The following callbacks are associated with this widget:
| Callback | Description |
|---|---|
| Pt_CB_TTY_DEVSIZE | This callback is generated when a resize event is received, but before the terminal widget is resized. |
| Pt_CB_TTY_OUTPUT | This callback is generated when output is received, before passing it on to the terminal widget. |
| Pt_CB_TTY_TERMINATED | This callback is generated when a child process (terminal) has been terminated. |
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.