/usr/include/xview/tty.h is in xviewg-dev 3.2p1.4-28.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | /*
* @(#)tty.h 20.18 93/06/28 SMI
*
* (c) Copyright 1989 Sun Microsystems, Inc. Sun design patents
* pending in the U.S. and foreign countries. See LEGAL NOTICE
* file for terms of the license.
*/
#ifndef xview_tty_DEFINED
#define xview_tty_DEFINED
/*
***********************************************************************
* Include Files
***********************************************************************
*/
#include <xview/window.h>
#include <xview/openwin.h>
#include <xview/pkg.h>
#include <xview/attrol.h>
/*
***********************************************************************
* Definitions and Macros
***********************************************************************
*/
/*
* PUBLIC #defines
*/
#define TTY &xv_tty_pkg
/*
* Data type declaration for ttysw view
*/
#define TTY_VIEW_TYPE ATTR_PKG_TTY_VIEW
#define TTY_VIEW &xv_tty_view_pkg
/*
* PRIVATE #defines
*/
#define TTY_ATTR(type, ordinal) ATTR(ATTR_PKG_TTY, type, ordinal)
#define ATTR_BUF_LEN_USED ATTR_TYPE(ATTR_BASE_OPAQUE, 3)
#define TTY_ARGV_DO_NOT_FORK -1
#define TTY_INFINITY ((long)0x77777777)
/*
* PUBLIC #defines
* For SunView 1 Compatibility Only
*/
/*
* Data type declaration for ttysw folio
*/
#define TTY_TYPE ATTR_PKG_TTY
/*
***********************************************************************
* Typedefs, Enumerations, and Structures
***********************************************************************
*/
typedef Xv_opaque Tty;
typedef Xv_opaque Tty_view;
typedef struct {
Xv_openwin parent_data;
Xv_opaque private_data;
} Xv_tty;
typedef struct {
Xv_window_struct parent_data;
Xv_opaque private_data;
} Xv_tty_view;
typedef enum {
/*
* Public attributes
*/
TTY_ARGV = TTY_ATTR(ATTR_OPAQUE, 1),
TTY_CONSOLE = TTY_ATTR(ATTR_BOOLEAN, 5),
TTY_INPUT = TTY_ATTR(ATTR_BUF_LEN_USED, 10),
TTY_OUTPUT = TTY_ATTR(ATTR_BUF_LEN_USED, 15),
TTY_PAGE_MODE = TTY_ATTR(ATTR_BOOLEAN, 20),
TTY_QUIT_ON_CHILD_DEATH
= TTY_ATTR(ATTR_BOOLEAN, 25),
/*
* Private attributes
*/
TTY_BOLDSTYLE = TTY_ATTR(ATTR_INT, 30),
TTY_BOLDSTYLE_NAME = TTY_ATTR(ATTR_STRING, 35),
TTY_INVERSE_MODE = TTY_ATTR(ATTR_INT, 40),
TTY_PID = TTY_ATTR(ATTR_INT, 45),
TTY_PTY_FD = TTY_ATTR(ATTR_INT, 50), /* --G */
TTY_TTY_FD = TTY_ATTR(ATTR_INT, 60), /* --G */
TTY_UNDERLINE_MODE = TTY_ATTR(ATTR_INT, 65)
} Tty_attribute;
#undef ATTR_BUF_LEN_USED
/*
***********************************************************************
* Globals
***********************************************************************
*/
extern Xv_pkg xv_tty_pkg;
extern Xv_pkg xv_tty_view_pkg;
/*
* Escape sequences recognized by TTY subwindows
*
* \E[1t - open
* \E[2t - close (become iconic)
* \E[3t - move, with interactive feedback
* \E[3;TOP;LEFTt - move, TOP LEFT in pixels
* \E[4t - stretch, with interactive feedback
* \E[4;ROWS;COLSt - stretch, ROWS COLS in pixels
* \E[5t - top (expose)
* \E[6t - bottom (hide)
* \E[7t - refresh
* \E[8;ROWS;COLSt - stretch, ROWS COLS in characters
* \E[11t - report open or iconic, sends \E[1t or \E[2t
* \E[13t - report position, sends \E[3;TOP;LEFTt
* \E[14t - report size in pixels, sends \E[8;ROWS;COLSt
* \E[18t - report size in chars, sends \E[4;ROWS;COLSt
* \E[20t - report icon label, sends \E]Llabel\E\
* \E[21t - report tool label, sends \E]llabel\E\
* \E]l<text>\E\ - set tool label to <text>
* \E]I<file>\E\ - set icon file to <file>
* \E]L<label>\E\ - set icon label to <label>
*/
#endif /* ~xview_tty_DEFINED */
|