Symbol: tty
bin/csh/lex.c
1336
struct termios tty;
bin/csh/lex.c
1340
if (isatty(SHIN) && tcgetattr(SHIN, &tty) == 0 && (tty.c_lflag & ICANON))
games/hunt/huntd/driver.c
1071
int tty;
games/hunt/huntd/driver.c
1074
if ((tty = open(_PATH_TTY, O_WRONLY)) >= 0) {
games/hunt/huntd/driver.c
1075
fp = fdopen(tty, "w");
games/phantasia/main.c
317
struct termios tty;
games/phantasia/main.c
343
if (tcgetattr(0, &tty) == 0) {
games/phantasia/main.c
344
Ch_Erase = tty.c_cc[VERASE];
games/phantasia/main.c
345
Ch_Kill = tty.c_cc[VKILL];
lib/libc/gen/getttyent.c
101
tty.ty_status &= ~TTY_ON;
lib/libc/gen/getttyent.c
103
tty.ty_status |= TTY_ON;
lib/libc/gen/getttyent.c
105
tty.ty_status |= TTY_SECURE;
lib/libc/gen/getttyent.c
107
tty.ty_status |= TTY_LOCAL;
lib/libc/gen/getttyent.c
109
tty.ty_status |= TTY_RTSCTS;
lib/libc/gen/getttyent.c
111
tty.ty_status |= TTY_SOFTCAR;
lib/libc/gen/getttyent.c
113
tty.ty_status |= TTY_MDMBUF;
lib/libc/gen/getttyent.c
115
tty.ty_window = value(p);
lib/libc/gen/getttyent.c
123
tty.ty_comment = p;
lib/libc/gen/getttyent.c
125
tty.ty_comment = 0;
lib/libc/gen/getttyent.c
128
return (&tty);
lib/libc/gen/getttyent.c
43
getttynam(const char *tty)
lib/libc/gen/getttyent.c
49
if (!strcmp(tty, t->ty_name))
lib/libc/gen/getttyent.c
58
static struct ttyent tty;
lib/libc/gen/getttyent.c
82
tty.ty_name = p;
lib/libc/gen/getttyent.c
84
if (!*(tty.ty_getty = p))
lib/libc/gen/getttyent.c
85
tty.ty_getty = tty.ty_type = NULL;
lib/libc/gen/getttyent.c
88
if (!*(tty.ty_type = p))
lib/libc/gen/getttyent.c
89
tty.ty_type = NULL;
lib/libc/gen/getttyent.c
93
tty.ty_status = 0;
lib/libc/gen/getttyent.c
94
tty.ty_window = NULL;
lib/libcurses/curses.priv.h
1708
extern NCURSES_EXPORT(char *) _nc_trace_ttymode(const TTY *tty);
lib/libkvm/kvm_proc2.c
122
struct tty tty;
lib/libkvm/kvm_proc2.c
186
KREAD(kd, (u_long)sess.s_ttyp, &tty)) {
lib/libkvm/kvm_proc2.c
245
tty.t_dev != (dev_t)arg)
lib/libkvm/kvm_proc2.c
304
kp.p_tdev = tty.t_dev;
lib/libkvm/kvm_proc2.c
305
if (tty.t_pgrp != NULL &&
lib/libkvm/kvm_proc2.c
306
tty.t_pgrp != process.ps_pgrp &&
lib/libkvm/kvm_proc2.c
307
KREAD(kd, (u_long)tty.t_pgrp, &pgrp)) {
lib/libkvm/kvm_proc2.c
310
(u_long)tty.t_pgrp);
lib/libkvm/kvm_proc2.c
313
kp.p_tpgid = tty.t_pgrp ? pgrp.pg_id : -1;
lib/libkvm/kvm_proc2.c
314
kp.p_tsess = PTRTOINT64(tty.t_session);
lib/libkvm/kvm_proc2.c
398
kp.p_tdev = tty.t_dev;
lib/libkvm/kvm_proc2.c
399
if (tty.t_pgrp != NULL &&
lib/libkvm/kvm_proc2.c
400
tty.t_pgrp != process.ps_pgrp &&
lib/libkvm/kvm_proc2.c
401
KREAD(kd, (u_long)tty.t_pgrp, &pgrp)) {
lib/libkvm/kvm_proc2.c
404
(u_long)tty.t_pgrp);
lib/libkvm/kvm_proc2.c
407
kp.p_tpgid = tty.t_pgrp ? pgrp.pg_id : -1;
lib/libkvm/kvm_proc2.c
408
kp.p_tsess = PTRTOINT64(tty.t_session);
lib/libutil/login.c
46
int fd, tty;
lib/libutil/login.c
49
tty = ttyslot();
lib/libutil/login.c
50
if (tty > 0 && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT|O_CLOEXEC, 0644))
lib/libutil/login.c
57
pos = (off_t)tty * sizeof(struct utmp);
lib/libutil/login_fbtab.c
112
if (strcmp(devnam + sizeof(_PATH_DEV) - 1, tty) == 0) {
lib/libutil/login_fbtab.c
81
login_fbtab(const char *tty, uid_t uid, gid_t gid)
libexec/comsat/comsat.c
251
char tty[PATH_MAX], name[UT_NAMESIZE + 1];
libexec/comsat/comsat.c
253
(void)snprintf(tty, sizeof(tty), "%s%.*s",
libexec/comsat/comsat.c
255
if (strchr(tty + sizeof(_PATH_DEV) - 1, '/')) {
libexec/comsat/comsat.c
257
syslog(LOG_AUTH | LOG_NOTICE, "'/' in \"%s\"", tty);
libexec/comsat/comsat.c
260
if (stat(tty, &stb) || !(stb.st_mode & S_IEXEC)) {
libexec/comsat/comsat.c
262
(int)sizeof(utp->ut_name), utp->ut_name, tty);
libexec/comsat/comsat.c
266
utp->ut_name, tty);
libexec/comsat/comsat.c
271
fd = open(tty, O_WRONLY);
libexec/comsat/comsat.c
273
dsyslog(LOG_ERR, "%s: %s", tty, strerror(errno));
libexec/rpc.rusersd/rusers_proc.c
74
getidle(char *tty, int len)
libexec/rpc.rusersd/rusers_proc.c
82
len, tty);
libexec/talkd/process.c
189
find_user(char *name, char *tty, size_t ttyl)
libexec/talkd/process.c
209
if (*tty == '\0') {
libexec/talkd/process.c
227
} else if (SCMPN(ubuf.ut_line, tty) == 0) {
libexec/talkd/process.c
233
if (*tty == '\0' && status == SUCCESS) {
libexec/talkd/process.c
236
strlcpy(tty, line, ttyl);
libexec/talkd/talkd.h
47
int find_user(char *name, char *tty, size_t ttyl);
regress/lib/libpthread/poll/poll.c
58
int null, zero, tty, dummy;
regress/lib/libpthread/poll/poll.c
67
CHECKe(openpty(&dummy, &tty, NULL, NULL, NULL));
regress/lib/libpthread/select/select.c
80
int tty = isatty(fd);
regress/lib/libpthread/select/select.c
94
if (tty) {
regress/lib/libsndio/vol/vol.c
118
pfd[0].fd = tty;
regress/lib/libsndio/vol/vol.c
126
if (read(tty, &cmd, 1) < 0) {
regress/lib/libsndio/vol/vol.c
36
int tty;
regress/lib/libsndio/vol/vol.c
56
tty = open("/dev/tty", O_RDWR);
regress/lib/libsndio/vol/vol.c
57
if (tty < 0) {
regress/lib/libsndio/vol/vol.c
61
if (tcgetattr(tty, &tio) < 0) {
regress/lib/libsndio/vol/vol.c
69
if (tcsetattr(tty, TCSAFLUSH, &tio) < 0) {
regress/usr.sbin/syslogd/ttylog.c
164
fprintf(lg, "console %s on %s\n", console, tty);
regress/usr.sbin/syslogd/ttylog.c
168
strlcpy(utmp.ut_line, tty, sizeof(utmp.ut_line));
regress/usr.sbin/syslogd/ttylog.c
172
fprintf(lg, "login %s %s\n", username, tty);
regress/usr.sbin/syslogd/ttylog.c
181
if (tty == NULL)
regress/usr.sbin/syslogd/ttylog.c
187
fprintf(lg, "console %s off\n", tty);
regress/usr.sbin/syslogd/ttylog.c
190
if (logout(tty) == 0)
regress/usr.sbin/syslogd/ttylog.c
191
errx(1, "logout %s", tty);
regress/usr.sbin/syslogd/ttylog.c
192
fprintf(lg, "logout %s\n", tty);
regress/usr.sbin/syslogd/ttylog.c
43
char ptyname[16], *console, *username, *logfile, *tty;
regress/usr.sbin/syslogd/ttylog.c
93
if ((tty = strrchr(ptyname, '/')) == NULL)
regress/usr.sbin/syslogd/ttylog.c
95
tty++;
sbin/ldattach/ldattach.c
113
struct termios tty;
sbin/ldattach/ldattach.c
223
if (tcgetattr(fd, &tty) == -1) {
sbin/ldattach/ldattach.c
231
tty.c_cflag &= ~CS8;
sbin/ldattach/ldattach.c
232
tty.c_cflag |= CS7;
sbin/ldattach/ldattach.c
234
tty.c_cflag &= ~CS7;
sbin/ldattach/ldattach.c
235
tty.c_cflag |= CS8;
sbin/ldattach/ldattach.c
239
tty.c_cflag |= PARENB;
sbin/ldattach/ldattach.c
241
tty.c_cflag |= PARODD;
sbin/ldattach/ldattach.c
243
tty.c_cflag &= ~PARODD;
sbin/ldattach/ldattach.c
246
tty.c_cflag |= CSTOPB;
sbin/ldattach/ldattach.c
248
tty.c_cflag &= ~CSTOPB;
sbin/ldattach/ldattach.c
251
tty.c_cflag |= CRTSCTS;
sbin/ldattach/ldattach.c
254
tty.c_cflag &= ~HUPCL;
sbin/ldattach/ldattach.c
257
cfsetspeed(&tty, speed);
sbin/ldattach/ldattach.c
277
tty.c_cflag |= CLOCAL;
sbin/ldattach/ldattach.c
278
tty.c_iflag = 0;
sbin/ldattach/ldattach.c
279
tty.c_lflag = 0;
sbin/ldattach/ldattach.c
280
tty.c_oflag = 0;
sbin/ldattach/ldattach.c
281
tty.c_cc[VMIN] = 1;
sbin/ldattach/ldattach.c
282
tty.c_cc[VTIME] = 0;
sbin/ldattach/ldattach.c
287
if (tcsetattr(fd, TCSADRAIN, &tty) == -1) {
sys/arch/hppa/dev/pdc.c
186
struct tty *tp;
sys/arch/hppa/dev/pdc.c
232
struct tty *tp;
sys/arch/hppa/dev/pdc.c
249
struct tty *tp;
sys/arch/hppa/dev/pdc.c
263
struct tty *tp;
sys/arch/hppa/dev/pdc.c
278
struct tty *tp;
sys/arch/hppa/dev/pdc.c
296
pdcparam(struct tty *tp, struct termios *t)
sys/arch/hppa/dev/pdc.c
303
pdcstart(struct tty *tp)
sys/arch/hppa/dev/pdc.c
321
pdcstop(struct tty *tp, int flag)
sys/arch/hppa/dev/pdc.c
337
struct tty *tp = sc->sc_tty;
sys/arch/hppa/dev/pdc.c
347
struct tty *
sys/arch/hppa/dev/pdc.c
47
struct tty *sc_tty;
sys/arch/hppa/dev/pdc.c
71
void pdcstart(struct tty *tp);
sys/arch/hppa/dev/pdc.c
73
int pdcparam(struct tty *tp, struct termios *);
sys/arch/hppa/include/conf.h
24
struct tty;
sys/arch/hppa/include/conf.h
28
int pdcparam(struct tty *, struct termios *);
sys/arch/hppa/include/conf.h
29
void pdcstart(struct tty *);
sys/arch/luna88k/dev/siotty.c
101
void siotty_rxsoft(struct siotty_softc *, struct tty *);
sys/arch/luna88k/dev/siotty.c
102
void siotty_txsoft(struct siotty_softc *, struct tty *);
sys/arch/luna88k/dev/siotty.c
133
struct tty *tp;
sys/arch/luna88k/dev/siotty.c
239
struct tty *tp;
sys/arch/luna88k/dev/siotty.c
255
siotty_rxsoft(struct siotty_softc *sc, struct tty *tp)
sys/arch/luna88k/dev/siotty.c
295
siotty_txsoft(struct siotty_softc *sc, struct tty *tp)
sys/arch/luna88k/dev/siotty.c
307
siostart(struct tty *tp)
sys/arch/luna88k/dev/siotty.c
338
siostop(struct tty *tp, int flag)
sys/arch/luna88k/dev/siotty.c
354
sioparam(struct tty *tp, struct termios *t)
sys/arch/luna88k/dev/siotty.c
462
struct tty *tp;
sys/arch/luna88k/dev/siotty.c
512
struct tty *tp = sc->sc_tty;
sys/arch/luna88k/dev/siotty.c
535
struct tty *tp = sc->sc_tty;
sys/arch/luna88k/dev/siotty.c
544
struct tty *tp = sc->sc_tty;
sys/arch/luna88k/dev/siotty.c
553
struct tty *tp = sc->sc_tty;
sys/arch/luna88k/dev/siotty.c
606
struct tty *
sys/arch/luna88k/dev/siotty.c
71
struct tty *sc_tty;
sys/arch/luna88k/dev/siotty.c
97
void siostart(struct tty *);
sys/arch/luna88k/dev/siotty.c
98
int sioparam(struct tty *, struct termios *);
sys/arch/powerpc64/dev/opalcons.c
143
struct tty *tp;
sys/arch/powerpc64/dev/opalcons.c
175
struct tty *tp;
sys/arch/powerpc64/dev/opalcons.c
190
struct tty *tp;
sys/arch/powerpc64/dev/opalcons.c
203
struct tty *tp;
sys/arch/powerpc64/dev/opalcons.c
216
struct tty *tp;
sys/arch/powerpc64/dev/opalcons.c
234
opalconsstart(struct tty *tp)
sys/arch/powerpc64/dev/opalcons.c
252
opalconsstop(struct tty *tp, int flag)
sys/arch/powerpc64/dev/opalcons.c
264
struct tty *
sys/arch/powerpc64/dev/opalcons.c
276
opalconsparam(struct tty *tp, struct termios *t)
sys/arch/powerpc64/dev/opalcons.c
303
struct tty *tp = sc->sc_tty;
sys/arch/powerpc64/dev/opalcons.c
38
struct tty *sc_tty;
sys/arch/powerpc64/dev/opalcons.c
57
void opalconsstart(struct tty *);
sys/arch/powerpc64/dev/opalcons.c
58
int opalconsparam(struct tty *, struct termios *);
sys/arch/riscv64/dev/sfuart.c
115
void sfuart_start(struct tty *);
sys/arch/riscv64/dev/sfuart.c
194
struct tty *tp = sc->sc_tty;
sys/arch/riscv64/dev/sfuart.c
236
struct tty *tp = sc->sc_tty;
sys/arch/riscv64/dev/sfuart.c
282
sfuart_param(struct tty *tp, struct termios *t)
sys/arch/riscv64/dev/sfuart.c
331
sfuart_start(struct tty *tp)
sys/arch/riscv64/dev/sfuart.c
363
struct tty *tp;
sys/arch/riscv64/dev/sfuart.c
458
struct tty *tp = sc->sc_tty;
sys/arch/riscv64/dev/sfuart.c
481
struct tty *tp = sfuarttty(dev);
sys/arch/riscv64/dev/sfuart.c
492
struct tty *tp = sfuarttty(dev);
sys/arch/riscv64/dev/sfuart.c
504
struct tty *tp;
sys/arch/riscv64/dev/sfuart.c
546
sfuartstop(struct tty *tp, int flag)
sys/arch/riscv64/dev/sfuart.c
551
struct tty *
sys/arch/riscv64/dev/sfuart.c
85
struct tty *sc_tty;
sys/arch/sh/dev/scif.c
1025
scif_txsoft(struct scif_softc *sc, struct tty *tp)
sys/arch/sh/dev/scif.c
1036
scif_stsoft(struct scif_softc *sc, struct tty *tp)
sys/arch/sh/dev/scif.c
1077
struct tty *tp;
sys/arch/sh/dev/scif.c
120
void scifstart(struct tty *);
sys/arch/sh/dev/scif.c
121
int scifparam(struct tty *, struct termios *);
sys/arch/sh/dev/scif.c
129
struct tty *sc_tty;
sys/arch/sh/dev/scif.c
187
void scif_rxsoft(struct scif_softc *, struct tty *);
sys/arch/sh/dev/scif.c
188
void scif_txsoft(struct scif_softc *, struct tty *);
sys/arch/sh/dev/scif.c
189
void scif_stsoft(struct scif_softc *, struct tty *);
sys/arch/sh/dev/scif.c
411
struct tty *tp;
sys/arch/sh/dev/scif.c
472
scifstart(struct tty *tp)
sys/arch/sh/dev/scif.c
535
scifparam(struct tty *tp, struct termios *t)
sys/arch/sh/dev/scif.c
674
struct tty *tp;
sys/arch/sh/dev/scif.c
774
struct tty *tp = sc->sc_tty;
sys/arch/sh/dev/scif.c
790
struct tty *tp = sc->sc_tty;
sys/arch/sh/dev/scif.c
799
struct tty *tp = sc->sc_tty;
sys/arch/sh/dev/scif.c
804
struct tty *
sys/arch/sh/dev/scif.c
808
struct tty *tp = sc->sc_tty;
sys/arch/sh/dev/scif.c
817
struct tty *tp = sc->sc_tty;
sys/arch/sh/dev/scif.c
896
scifstop(struct tty *tp, int flag)
sys/arch/sh/dev/scif.c
941
scif_rxsoft(struct scif_softc *sc, struct tty *tp)
sys/arch/sh/dev/scif.c
943
int (*rint)(int, struct tty *) = *linesw[tp->t_line].l_rint;
sys/arch/sparc64/dev/pcons.c
198
void pconsstart(struct tty *);
sys/arch/sparc64/dev/pcons.c
199
int pconsparam(struct tty *, struct termios *);
sys/arch/sparc64/dev/pcons.c
206
struct tty *tp;
sys/arch/sparc64/dev/pcons.c
249
struct tty *tp = sc->of_tty;
sys/arch/sparc64/dev/pcons.c
262
struct tty *tp = sc->of_tty;
sys/arch/sparc64/dev/pcons.c
271
struct tty *tp = sc->of_tty;
sys/arch/sparc64/dev/pcons.c
280
struct tty *tp = sc->of_tty;
sys/arch/sparc64/dev/pcons.c
290
struct tty *
sys/arch/sparc64/dev/pcons.c
299
pconsstop(struct tty *tp, int flag)
sys/arch/sparc64/dev/pcons.c
305
pconsstart(struct tty *tp)
sys/arch/sparc64/dev/pcons.c
338
pconsparam(struct tty *tp, struct termios *t)
sys/arch/sparc64/dev/pcons.c
350
struct tty *tp = sc->of_tty;
sys/arch/sparc64/dev/pcons.c
71
struct tty *of_tty;
sys/arch/sparc64/dev/sab.c
1054
sabtty_param(struct tty *tp, struct termios *t)
sys/arch/sparc64/dev/sab.c
1063
sabtty_start(struct tty *tp)
sys/arch/sparc64/dev/sab.c
135
void sabtty_start(struct tty *);
sys/arch/sparc64/dev/sab.c
136
int sabtty_param(struct tty *, struct termios *);
sys/arch/sparc64/dev/sab.c
149
int sabttyparam(struct sabtty_softc *, struct tty *, struct termios *);
sys/arch/sparc64/dev/sab.c
156
int sabttystop(struct tty *, int);
sys/arch/sparc64/dev/sab.c
157
struct tty *sabttytty(dev_t);
sys/arch/sparc64/dev/sab.c
580
struct tty *tp = sc->sc_tty;
sys/arch/sparc64/dev/sab.c
635
struct tty *tp;
sys/arch/sparc64/dev/sab.c
750
struct tty *tp = sc->sc_tty;
sys/arch/sparc64/dev/sab.c
790
struct tty *tp = sc->sc_tty;
sys/arch/sparc64/dev/sab.c
800
struct tty *tp = sc->sc_tty;
sys/arch/sparc64/dev/sab.c
810
struct tty *tp = sc->sc_tty;
sys/arch/sparc64/dev/sab.c
868
struct tty *
sys/arch/sparc64/dev/sab.c
878
sabttystop(struct tty *tp, int flags)
sys/arch/sparc64/dev/sab.c
89
struct tty * sc_tty;
sys/arch/sparc64/dev/sab.c
968
sabttyparam(struct sabtty_softc *sc, struct tty *tp, struct termios *t)
sys/arch/sparc64/dev/sbbc.c
131
struct tty *sc_tty;
sys/arch/sparc64/dev/sbbc.c
167
void sbbcstart(struct tty *);
sys/arch/sparc64/dev/sbbc.c
168
int sbbcparam(struct tty *, struct termios *);
sys/arch/sparc64/dev/sbbc.c
441
struct tty *tp = sc->sc_tty;
sys/arch/sparc64/dev/sbbc.c
506
struct tty *tp;
sys/arch/sparc64/dev/sbbc.c
542
struct tty *tp;
sys/arch/sparc64/dev/sbbc.c
561
struct tty *tp;
sys/arch/sparc64/dev/sbbc.c
578
struct tty *tp;
sys/arch/sparc64/dev/sbbc.c
595
struct tty *tp;
sys/arch/sparc64/dev/sbbc.c
617
sbbcstart(struct tty *tp)
sys/arch/sparc64/dev/sbbc.c
635
sbbcstop(struct tty *tp, int flag)
sys/arch/sparc64/dev/sbbc.c
647
struct tty *
sys/arch/sparc64/dev/sbbc.c
663
sbbcparam(struct tty *tp, struct termios *t)
sys/arch/sparc64/dev/vcctty.c
201
struct tty *tp = sc->sc_tty;
sys/arch/sparc64/dev/vcctty.c
251
vcctty_send_data(struct vcctty_softc *sc, struct tty *tp)
sys/arch/sparc64/dev/vcctty.c
310
struct tty *tp;
sys/arch/sparc64/dev/vcctty.c
347
struct tty *tp;
sys/arch/sparc64/dev/vcctty.c
366
struct tty *tp;
sys/arch/sparc64/dev/vcctty.c
383
struct tty *tp;
sys/arch/sparc64/dev/vcctty.c
400
struct tty *tp;
sys/arch/sparc64/dev/vcctty.c
436
vccttystart(struct tty *tp)
sys/arch/sparc64/dev/vcctty.c
459
vccttystop(struct tty *tp, int flag)
sys/arch/sparc64/dev/vcctty.c
471
struct tty *
sys/arch/sparc64/dev/vcctty.c
487
vccttyparam(struct tty *tp, struct termios *t)
sys/arch/sparc64/dev/vcctty.c
496
vccttyhwiflow(struct tty *tp, int stop)
sys/arch/sparc64/dev/vcctty.c
68
struct tty *sc_tty;
sys/arch/sparc64/dev/vcctty.c
85
void vcctty_send_data(struct vcctty_softc *, struct tty *);
sys/arch/sparc64/dev/vcctty.c
88
void vccttystart(struct tty *);
sys/arch/sparc64/dev/vcctty.c
89
int vccttyparam(struct tty *, struct termios *);
sys/arch/sparc64/dev/vcctty.c
90
int vccttyhwiflow(struct tty *, int);
sys/arch/sparc64/dev/vcons.c
177
struct tty *tp;
sys/arch/sparc64/dev/vcons.c
218
struct tty *tp;
sys/arch/sparc64/dev/vcons.c
239
struct tty *tp;
sys/arch/sparc64/dev/vcons.c
256
struct tty *tp;
sys/arch/sparc64/dev/vcons.c
273
struct tty *tp;
sys/arch/sparc64/dev/vcons.c
295
vconsstart(struct tty *tp)
sys/arch/sparc64/dev/vcons.c
313
vconsstop(struct tty *tp, int flag)
sys/arch/sparc64/dev/vcons.c
325
struct tty *
sys/arch/sparc64/dev/vcons.c
341
vconsparam(struct tty *tp, struct termios *t)
sys/arch/sparc64/dev/vcons.c
353
struct tty *tp = sc->sc_tty;
sys/arch/sparc64/dev/vcons.c
43
struct tty *sc_tty;
sys/arch/sparc64/dev/vcons.c
64
void vconsstart(struct tty *);
sys/arch/sparc64/dev/vcons.c
65
int vconsparam(struct tty *, struct termios *);
sys/dev/cons.c
143
cnstop(struct tty *tp, int flag)
sys/dev/cons.c
51
struct tty *constty = NULL; /* virtual console output device */
sys/dev/cons.h
73
extern struct tty *constty;
sys/dev/fdt/amluart.c
109
void amluart_start(struct tty *);
sys/dev/fdt/amluart.c
199
struct tty *tp = sc->sc_tty;
sys/dev/fdt/amluart.c
250
struct tty *tp = sc->sc_tty;
sys/dev/fdt/amluart.c
296
amluart_param(struct tty *tp, struct termios *t)
sys/dev/fdt/amluart.c
339
amluart_start(struct tty *tp)
sys/dev/fdt/amluart.c
368
struct tty *tp;
sys/dev/fdt/amluart.c
456
struct tty *tp = sc->sc_tty;
sys/dev/fdt/amluart.c
480
struct tty *tp = amluarttty(dev);
sys/dev/fdt/amluart.c
491
struct tty *tp = amluarttty(dev);
sys/dev/fdt/amluart.c
503
struct tty *tp;
sys/dev/fdt/amluart.c
545
amluartstop(struct tty *tp, int flag)
sys/dev/fdt/amluart.c
550
struct tty *
sys/dev/fdt/amluart.c
79
struct tty *sc_tty;
sys/dev/fdt/cduart.c
107
struct tty *sc_tty;
sys/dev/fdt/cduart.c
127
struct tty *cduarttty(dev_t);
sys/dev/fdt/cduart.c
130
int cduartparam(struct tty *, struct termios *);
sys/dev/fdt/cduart.c
131
void cduartstart(struct tty *);
sys/dev/fdt/cduart.c
271
struct tty *tp = sc->sc_tty;
sys/dev/fdt/cduart.c
325
struct tty *tp = sc->sc_tty;
sys/dev/fdt/cduart.c
378
struct tty *tp;
sys/dev/fdt/cduart.c
460
struct tty *tp;
sys/dev/fdt/cduart.c
483
struct tty *tp;
sys/dev/fdt/cduart.c
495
struct tty *tp;
sys/dev/fdt/cduart.c
508
struct tty *tp;
sys/dev/fdt/cduart.c
551
cduartparam(struct tty *tp, struct termios *t)
sys/dev/fdt/cduart.c
557
cduartstart(struct tty *tp)
sys/dev/fdt/cduart.c
593
cduartstop(struct tty *tp, int flag)
sys/dev/fdt/cduart.c
598
struct tty *
sys/dev/fdt/exuart.c
107
int exuart_param(struct tty *tp, struct termios *t);
sys/dev/fdt/exuart.c
108
void exuart_start(struct tty *);
sys/dev/fdt/exuart.c
317
struct tty *tp = sc->sc_tty;
sys/dev/fdt/exuart.c
419
exuart_param(struct tty *tp, struct termios *t)
sys/dev/fdt/exuart.c
508
exuart_start(struct tty *tp)
sys/dev/fdt/exuart.c
55
struct tty *sc_tty;
sys/dev/fdt/exuart.c
605
struct tty *tp;
sys/dev/fdt/exuart.c
677
struct tty *tp;
sys/dev/fdt/exuart.c
825
struct tty *tp = sc->sc_tty;
sys/dev/fdt/exuart.c
851
struct tty *tty;
sys/dev/fdt/exuart.c
853
tty = exuarttty(dev);
sys/dev/fdt/exuart.c
854
if (tty == NULL)
sys/dev/fdt/exuart.c
857
return((*linesw[tty->t_line].l_read)(tty, uio, flag));
sys/dev/fdt/exuart.c
863
struct tty *tty;
sys/dev/fdt/exuart.c
865
tty = exuarttty(dev);
sys/dev/fdt/exuart.c
866
if (tty == NULL)
sys/dev/fdt/exuart.c
869
return((*linesw[tty->t_line].l_write)(tty, uio, flag));
sys/dev/fdt/exuart.c
876
struct tty *tp;
sys/dev/fdt/exuart.c
965
exuartstop(struct tty *tp, int flag)
sys/dev/fdt/exuart.c
970
struct tty *
sys/dev/fdt/imxuart.c
203
struct tty *tp = sc->sc_tty;
sys/dev/fdt/imxuart.c
261
imxuart_param(struct tty *tp, struct termios *t)
sys/dev/fdt/imxuart.c
335
imxuart_start(struct tty *tp)
sys/dev/fdt/imxuart.c
422
struct tty *tp;
sys/dev/fdt/imxuart.c
484
struct tty *tp;
sys/dev/fdt/imxuart.c
57
struct tty *sc_tty;
sys/dev/fdt/imxuart.c
619
struct tty *tp = sc->sc_tty;
sys/dev/fdt/imxuart.c
646
struct tty *tty;
sys/dev/fdt/imxuart.c
648
tty = imxuarttty(dev);
sys/dev/fdt/imxuart.c
649
if (tty == NULL)
sys/dev/fdt/imxuart.c
652
return((*linesw[tty->t_line].l_read)(tty, uio, flag));
sys/dev/fdt/imxuart.c
658
struct tty *tty;
sys/dev/fdt/imxuart.c
660
tty = imxuarttty(dev);
sys/dev/fdt/imxuart.c
661
if (tty == NULL)
sys/dev/fdt/imxuart.c
664
return((*linesw[tty->t_line].l_write)(tty, uio, flag));
sys/dev/fdt/imxuart.c
671
struct tty *tp;
sys/dev/fdt/imxuart.c
760
imxuartstop(struct tty *tp, int flag)
sys/dev/fdt/imxuart.c
765
struct tty *
sys/dev/fdt/imxuart.c
98
int imxuart_param(struct tty *tp, struct termios *t);
sys/dev/fdt/imxuart.c
99
void imxuart_start(struct tty *);
sys/dev/fdt/mvuart.c
101
int mvuart_param(struct tty *, struct termios *);
sys/dev/fdt/mvuart.c
102
void mvuart_start(struct tty *);
sys/dev/fdt/mvuart.c
247
struct tty *tp = sc->sc_tty;
sys/dev/fdt/mvuart.c
261
mvuart_param(struct tty *tp, struct termios *t)
sys/dev/fdt/mvuart.c
303
mvuart_start(struct tty *tp)
sys/dev/fdt/mvuart.c
345
struct tty *tp;
sys/dev/fdt/mvuart.c
387
struct tty *tp;
sys/dev/fdt/mvuart.c
476
struct tty *tp = sc->sc_tty;
sys/dev/fdt/mvuart.c
500
struct tty *tty;
sys/dev/fdt/mvuart.c
502
tty = mvuarttty(dev);
sys/dev/fdt/mvuart.c
503
if (tty == NULL)
sys/dev/fdt/mvuart.c
506
return((*linesw[tty->t_line].l_read)(tty, uio, flag));
sys/dev/fdt/mvuart.c
512
struct tty *tty;
sys/dev/fdt/mvuart.c
514
tty = mvuarttty(dev);
sys/dev/fdt/mvuart.c
515
if (tty == NULL)
sys/dev/fdt/mvuart.c
518
return((*linesw[tty->t_line].l_write)(tty, uio, flag));
sys/dev/fdt/mvuart.c
525
struct tty *tp;
sys/dev/fdt/mvuart.c
568
mvuartstop(struct tty *tp, int flag)
sys/dev/fdt/mvuart.c
573
struct tty *
sys/dev/fdt/mvuart.c
76
struct tty *sc_tty;
sys/dev/ic/com.c
1006
struct tty *tp;
sys/dev/ic/com.c
1069
struct tty *tp;
sys/dev/ic/com.c
238
struct tty *tp;
sys/dev/ic/com.c
430
struct tty *tp = sc->sc_tty;
sys/dev/ic/com.c
472
struct tty *tp = sc->sc_tty;
sys/dev/ic/com.c
524
struct tty *tp = sc->sc_tty;
sys/dev/ic/com.c
633
struct tty *tp = sc->sc_tty;
sys/dev/ic/com.c
642
struct tty *tp = sc->sc_tty;
sys/dev/ic/com.c
647
struct tty *
sys/dev/ic/com.c
651
struct tty *tp = sc->sc_tty;
sys/dev/ic/com.c
673
struct tty *tp = sc->sc_tty;
sys/dev/ic/com.c
783
comparam(struct tty *tp, struct termios *t)
sys/dev/ic/com.c
920
comstart(struct tty *tp)
sys/dev/ic/com.c
970
comstop(struct tty *tp, int flag)
sys/dev/ic/comvar.h
143
int comstop(struct tty *, int);
sys/dev/ic/comvar.h
151
int comparam(struct tty *, struct termios *);
sys/dev/ic/comvar.h
152
void comstart(struct tty *);
sys/dev/ic/comvar.h
76
struct tty *sc_tty;
sys/dev/ic/cy.c
1208
struct tty *tp;
sys/dev/ic/cy.c
253
struct tty *cytty(dev_t);
sys/dev/ic/cy.c
255
int cystop(struct tty *, int flag);
sys/dev/ic/cy.c
264
struct tty *tp;
sys/dev/ic/cy.c
394
struct tty *tp = cy->cy_tty;
sys/dev/ic/cy.c
434
struct tty *tp = cy->cy_tty;
sys/dev/ic/cy.c
454
struct tty *tp = cy->cy_tty;
sys/dev/ic/cy.c
467
struct tty *
sys/dev/ic/cy.c
474
struct tty *tp = cy->cy_tty;
sys/dev/ic/cy.c
489
struct tty *tp = cy->cy_tty;
sys/dev/ic/cy.c
568
cystart(struct tty *tp)
sys/dev/ic/cy.c
603
cystop(struct tty *tp, int flag)
sys/dev/ic/cy.c
637
cyparam(struct tty *tp, struct termios *t)
sys/dev/ic/cy.c
71
int cyparam(struct tty *, struct termios *);
sys/dev/ic/cy.c
72
void cystart(struct tty *);
sys/dev/ic/cy.c
887
struct tty *tp;
sys/dev/ic/cyreg.h
140
struct tty *cy_tty;
sys/dev/ic/pluart.c
139
int pluart_param(struct tty *tp, struct termios *t);
sys/dev/ic/pluart.c
140
void pluart_start(struct tty *);
sys/dev/ic/pluart.c
243
struct tty *tp = sc->sc_tty;
sys/dev/ic/pluart.c
302
pluart_param(struct tty *tp, struct termios *t)
sys/dev/ic/pluart.c
410
pluart_start(struct tty *tp)
sys/dev/ic/pluart.c
491
struct tty *tp;
sys/dev/ic/pluart.c
559
struct tty *tp;
sys/dev/ic/pluart.c
692
struct tty *tp = sc->sc_tty;
sys/dev/ic/pluart.c
719
struct tty *tty;
sys/dev/ic/pluart.c
721
tty = pluarttty(dev);
sys/dev/ic/pluart.c
722
if (tty == NULL)
sys/dev/ic/pluart.c
725
return((*linesw[tty->t_line].l_read)(tty, uio, flag));
sys/dev/ic/pluart.c
731
struct tty *tty;
sys/dev/ic/pluart.c
733
tty = pluarttty(dev);
sys/dev/ic/pluart.c
734
if (tty == NULL)
sys/dev/ic/pluart.c
737
return((*linesw[tty->t_line].l_write)(tty, uio, flag));
sys/dev/ic/pluart.c
744
struct tty *tp;
sys/dev/ic/pluart.c
795
pluartstop(struct tty *tp, int flag)
sys/dev/ic/pluart.c
800
struct tty *
sys/dev/ic/pluartvar.h
25
struct tty *sc_tty;
sys/dev/ic/qcuart.c
126
struct tty *tp = sc->sc_tty;
sys/dev/ic/qcuart.c
165
struct tty *tp = sc->sc_tty;
sys/dev/ic/qcuart.c
190
struct tty *tp = sc->sc_tty;
sys/dev/ic/qcuart.c
236
qcuart_param(struct tty *tp, struct termios *t)
sys/dev/ic/qcuart.c
279
qcuart_start(struct tty *tp)
sys/dev/ic/qcuart.c
310
struct tty *tp;
sys/dev/ic/qcuart.c
402
struct tty *tp = sc->sc_tty;
sys/dev/ic/qcuart.c
426
struct tty *tp = qcuarttty(dev);
sys/dev/ic/qcuart.c
437
struct tty *tp = qcuarttty(dev);
sys/dev/ic/qcuart.c
449
struct tty *tp;
sys/dev/ic/qcuart.c
491
qcuartstop(struct tty *tp, int flag)
sys/dev/ic/qcuart.c
496
struct tty *
sys/dev/ic/qcuart.c
89
void qcuart_start(struct tty *);
sys/dev/ic/qcuartvar.h
26
struct tty *sc_tty;
sys/dev/ic/z8530tty.c
1197
zshwiflow(struct tty *tp, int block)
sys/dev/ic/z8530tty.c
1256
void zstty_rxsoft(struct zstty_softc *, struct tty *);
sys/dev/ic/z8530tty.c
1257
void zstty_txsoft(struct zstty_softc *, struct tty *);
sys/dev/ic/z8530tty.c
1258
void zstty_stsoft(struct zstty_softc *, struct tty *);
sys/dev/ic/z8530tty.c
1394
struct tty *tp = zst->zst_tty;
sys/dev/ic/z8530tty.c
1457
zstty_rxsoft(struct zstty_softc *zst, struct tty *tp)
sys/dev/ic/z8530tty.c
1460
int (*rint)(int, struct tty *) = linesw[tp->t_line].l_rint;
sys/dev/ic/z8530tty.c
149
struct tty *zst_tty;
sys/dev/ic/z8530tty.c
1554
zstty_txsoft(struct zstty_softc *zst, struct tty *tp)
sys/dev/ic/z8530tty.c
1570
zstty_stsoft(struct zstty_softc *zst, struct tty *tp)
sys/dev/ic/z8530tty.c
1616
struct tty *tp = zst->zst_tty;
sys/dev/ic/z8530tty.c
211
void zsstart(struct tty *);
sys/dev/ic/z8530tty.c
212
int zsparam(struct tty *, struct termios *);
sys/dev/ic/z8530tty.c
216
int zshwiflow(struct tty *, int);
sys/dev/ic/z8530tty.c
266
struct tty *tp;
sys/dev/ic/z8530tty.c
397
struct tty *
sys/dev/ic/z8530tty.c
410
struct tty *tp = zst->zst_tty;
sys/dev/ic/z8530tty.c
462
struct tty *tp;
sys/dev/ic/z8530tty.c
690
struct tty *tp = zst->zst_tty;
sys/dev/ic/z8530tty.c
723
struct tty *tp = zst->zst_tty;
sys/dev/ic/z8530tty.c
732
struct tty *tp = zst->zst_tty;
sys/dev/ic/z8530tty.c
742
struct tty *tp = zst->zst_tty;
sys/dev/ic/z8530tty.c
818
zsstart(struct tty *tp)
sys/dev/ic/z8530tty.c
867
zsstop(struct tty *tp, int flag)
sys/dev/ic/z8530tty.c
890
zsparam(struct tty *tp, struct termios *t)
sys/dev/pci/cz.c
1057
struct tty *tp = sc->sc_tty;
sys/dev/pci/cz.c
1087
struct tty *tp = sc->sc_tty;
sys/dev/pci/cz.c
1101
struct tty *tp = sc->sc_tty;
sys/dev/pci/cz.c
1115
struct tty *tp = sc->sc_tty;
sys/dev/pci/cz.c
114
struct tty *sc_tty;
sys/dev/pci/cz.c
1305
czttyparam(struct tty *tp, struct termios *t)
sys/dev/pci/cz.c
1444
czttystart(struct tty *tp)
sys/dev/pci/cz.c
1468
czttystop(struct tty *tp, int flag)
sys/dev/pci/cz.c
1539
cztty_transmit(struct cztty_softc *sc, struct tty *tp)
sys/dev/pci/cz.c
1585
cztty_receive(struct cztty_softc *sc, struct tty *tp)
sys/dev/pci/cz.c
175
int cztty_transmit(struct cztty_softc *, struct tty *);
sys/dev/pci/cz.c
176
int cztty_receive(struct cztty_softc *, struct tty *);
sys/dev/pci/cz.c
185
void czttystart(struct tty *tp);
sys/dev/pci/cz.c
186
int czttyparam(struct tty *tp, struct termios *t);
sys/dev/pci/cz.c
293
struct tty *tp;
sys/dev/pci/cz.c
680
struct tty *tp;
sys/dev/pci/cz.c
878
struct tty *
sys/dev/pci/cz.c
900
struct tty *tp = sc->sc_tty;
sys/dev/pci/cz.c
943
struct tty *tp;
sys/dev/pv/viocon.c
128
void vioconstart(struct tty *);
sys/dev/pv/viocon.c
129
int vioconhwiflow(struct tty *, int);
sys/dev/pv/viocon.c
130
int vioconparam(struct tty *, struct termios *);
sys/dev/pv/viocon.c
135
int vioconstop(struct tty *, int);
sys/dev/pv/viocon.c
137
struct tty *viocontty(dev_t dev);
sys/dev/pv/viocon.c
224
struct tty *tp;
sys/dev/pv/viocon.c
329
struct tty *tp = vp->vp_tty;
sys/dev/pv/viocon.c
381
struct tty *tp = vp->vp_tty;
sys/dev/pv/viocon.c
400
vioconstart(struct tty *tp)
sys/dev/pv/viocon.c
455
vioconhwiflow(struct tty *tp, int stop)
sys/dev/pv/viocon.c
473
vioconparam(struct tty *tp, struct termios *t)
sys/dev/pv/viocon.c
490
struct tty *tp;
sys/dev/pv/viocon.c
544
struct tty *tp = vp->vp_tty;
sys/dev/pv/viocon.c
566
struct tty *tp = vp->vp_tty;
sys/dev/pv/viocon.c
575
struct tty *tp = vp->vp_tty;
sys/dev/pv/viocon.c
580
struct tty *
sys/dev/pv/viocon.c
589
vioconstop(struct tty *tp, int flag)
sys/dev/pv/viocon.c
605
struct tty *tp;
sys/dev/pv/viocon.c
91
struct tty *vp_tty;
sys/dev/sbus/magma.c
1003
struct tty *tp = mp->mp_tty;
sys/dev/sbus/magma.c
1075
mttystop(struct tty *tp, int flags)
sys/dev/sbus/magma.c
1102
mtty_start(struct tty *tp)
sys/dev/sbus/magma.c
1147
struct tty *tp = mp->mp_tty;
sys/dev/sbus/magma.c
1215
mtty_param(struct tty *tp, struct termios *t)
sys/dev/sbus/magma.c
579
struct tty *tp;
sys/dev/sbus/magma.c
681
struct tty *tp = mp->mp_tty;
sys/dev/sbus/magma.c
797
struct tty *tp;
sys/dev/sbus/magma.c
837
struct tty *tp;
sys/dev/sbus/magma.c
928
struct tty *tp = mp->mp_tty;
sys/dev/sbus/magma.c
965
struct tty *tp = mp->mp_tty;
sys/dev/sbus/magma.c
978
struct tty *tp = mp->mp_tty;
sys/dev/sbus/magma.c
986
struct tty *
sys/dev/sbus/magmareg.h
137
struct tty *mp_tty;
sys/dev/sbus/magmareg.h
210
int mtty_param(struct tty *, struct termios *);
sys/dev/sbus/magmareg.h
211
void mtty_start(struct tty *);
sys/dev/sbus/spif.c
295
struct tty *tp;
sys/dev/sbus/spif.c
326
struct tty *tp;
sys/dev/sbus/spif.c
414
struct tty *tp = sp->sp_tty;
sys/dev/sbus/spif.c
439
struct tty *tp = sp->sp_tty;
sys/dev/sbus/spif.c
505
struct tty *tp = sp->sp_tty;
sys/dev/sbus/spif.c
556
stty_param(struct tty *tp, struct termios *t)
sys/dev/sbus/spif.c
656
struct tty *tp = sp->sp_tty;
sys/dev/sbus/spif.c
666
struct tty *tp = sp->sp_tty;
sys/dev/sbus/spif.c
671
struct tty *
sys/dev/sbus/spif.c
681
sttystop(struct tty *tp, int flags)
sys/dev/sbus/spif.c
69
int sttystop(struct tty *, int);
sys/dev/sbus/spif.c
698
stty_start(struct tty *tp)
sys/dev/sbus/spif.c
78
int stty_param(struct tty *, struct termios *);
sys/dev/sbus/spif.c
79
struct tty *sttytty(dev_t);
sys/dev/sbus/spif.c
83
void stty_start(struct tty *);
sys/dev/sbus/spif.c
889
struct tty *tp;
sys/dev/sbus/spifvar.h
38
struct tty *sp_tty; /* tty device */
sys/dev/usb/ucom.c
1059
ucomstop(struct tty *tp, int flag)
sys/dev/usb/ucom.c
1082
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
109
struct tty *sc_tty; /* our tty */
sys/dev/usb/ucom.c
1156
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
1157
int (*rint)(int c, struct tty *tp) = LINESW(tp, l_rint);
sys/dev/usb/ucom.c
126
int ucomparam(struct tty *, struct termios *);
sys/dev/usb/ucom.c
127
void ucomstart(struct tty *);
sys/dev/usb/ucom.c
185
struct tty *tp;
sys/dev/usb/ucom.c
228
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
300
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
348
struct tty *tp;
sys/dev/usb/ucom.c
594
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
622
struct tty *tp;
sys/dev/usb/ucom.c
643
struct tty *tp;
sys/dev/usb/ucom.c
657
struct tty *
sys/dev/usb/ucom.c
692
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
862
struct tty *tp = sc->sc_tty;
sys/dev/usb/ucom.c
883
ucomparam(struct tty *tp, struct termios *t)
sys/dev/usb/ucom.c
987
ucomstart(struct tty *tp)
sys/dev/wscons/wsdisplay.c
1012
struct tty *
sys/dev/wscons/wsdisplay.c
1035
struct tty *tp;
sys/dev/wscons/wsdisplay.c
1441
wsdisplaystart(struct tty *tp)
sys/dev/wscons/wsdisplay.c
1525
wsdisplaystop(struct tty *tp, int flag)
sys/dev/wscons/wsdisplay.c
1540
wsdisplayparam(struct tty *tp, struct termios *t)
sys/dev/wscons/wsdisplay.c
1580
struct tty *tp;
sys/dev/wscons/wsdisplay.c
1606
struct tty *tp;
sys/dev/wscons/wsdisplay.c
1628
struct tty *tp;
sys/dev/wscons/wsdisplay.c
223
void wsdisplaystart(struct tty *);
sys/dev/wscons/wsdisplay.c
224
int wsdisplayparam(struct tty *, struct termios *);
sys/dev/wscons/wsdisplay.c
3426
struct tty *tp;
sys/dev/wscons/wsdisplay.c
452
struct tty *tp = scr->scr_tty;
sys/dev/wscons/wsdisplay.c
848
struct tty *tp;
sys/dev/wscons/wsdisplay.c
89
struct tty *scr_tty;
sys/dev/wscons/wsdisplay.c
905
struct tty *tp;
sys/dev/wscons/wsdisplay.c
968
struct tty *tp;
sys/dev/wscons/wsdisplay.c
992
struct tty *tp;
sys/kern/kern_sysctl.c
2065
struct tty *tp;
sys/kern/subr_prf.c
349
kputchar(int c, int flags, struct tty *tp)
sys/kern/subr_prf.c
448
struct tty *tp = NULL;
sys/kern/subr_prf.c
474
ttyprintf(struct tty *tp, const char *fmt, ...)
sys/kern/subr_prf.c
684
kputchar(chr, oflags, (struct tty *)vp); \
sys/kern/subr_prf.c
86
void kputchar(int, int, struct tty *);
sys/kern/tty.c
1080
struct tty *tp = (*cdevsw[major(dev)].d_tty)(dev);
sys/kern/tty.c
1121
struct tty *tp = kn->kn_hook;
sys/kern/tty.c
1132
struct tty *tp = kn->kn_hook;
sys/kern/tty.c
1153
struct tty *tp = kn->kn_hook;
sys/kern/tty.c
1164
struct tty *tp = kn->kn_hook;
sys/kern/tty.c
1188
struct tty *tp = kn->kn_hook;
sys/kern/tty.c
1207
ttnread(struct tty *tp)
sys/kern/tty.c
1228
ttywait_nsec(struct tty *tp, uint64_t nsecs)
sys/kern/tty.c
1256
ttywait(struct tty *tp)
sys/kern/tty.c
1265
ttywflush(struct tty *tp)
sys/kern/tty.c
1279
ttyflush(struct tty *tp, int rw)
sys/kern/tty.c
1307
ttychars(struct tty *tp)
sys/kern/tty.c
1317
ttyblock(struct tty *tp)
sys/kern/tty.c
1349
struct tty *tp = (struct tty *)arg;
sys/kern/tty.c
1363
ttstart(struct tty *tp)
sys/kern/tty.c
1375
ttylclose(struct tty *tp, int flag, struct proc *p)
sys/kern/tty.c
1391
ttymodem(struct tty *tp, int flag)
sys/kern/tty.c
1432
nullmodem(struct tty *tp, int flag)
sys/kern/tty.c
1455
ttypend(struct tty *tp)
sys/kern/tty.c
1477
struct tty *tp = (struct tty *)arg;
sys/kern/tty.c
1486
ttread(struct tty *tp, struct uio *uio, int flag)
sys/kern/tty.c
1664
ttyunblock(struct tty *tp)
sys/kern/tty.c
1692
ttycheckoutq(struct tty *tp, int wait)
sys/kern/tty.c
1718
ttwrite(struct tty *tp, struct uio *uio, int flag)
sys/kern/tty.c
179
ttyopen(dev_t device, struct tty *tp, struct proc *p)
sys/kern/tty.c
1913
ttyrub(int c, struct tty *tp)
sys/kern/tty.c
1992
ttyrubo(struct tty *tp, int cnt)
sys/kern/tty.c
2008
ttyretype(struct tty *tp)
sys/kern/tty.c
201
ttyclose(struct tty *tp)
sys/kern/tty.c
2038
ttyecho(int c, struct tty *tp)
sys/kern/tty.c
2064
ttwakeupwr(struct tty *tp)
sys/kern/tty.c
2080
ttwakeup(struct tty *tp)
sys/kern/tty.c
2110
ttsetwater(struct tty *tp)
sys/kern/tty.c
2150
ttyinfo(struct tty *tp)
sys/kern/tty.c
2288
tputchar(int c, struct tty *tp)
sys/kern/tty.c
2313
ttysleep(struct tty *tp, void *chan, int pri, char *wmesg)
sys/kern/tty.c
2319
ttysleep_nsec(struct tty *tp, void *chan, int pri, char *wmesg, uint64_t nsecs)
sys/kern/tty.c
233
ttyinput(int c, struct tty *tp)
sys/kern/tty.c
2345
struct tty *
sys/kern/tty.c
2348
struct tty *tp;
sys/kern/tty.c
2350
tp = malloc(sizeof(struct tty), M_TTYS, M_WAITOK|M_ZERO);
sys/kern/tty.c
2381
ttyfree(struct tty *tp)
sys/kern/tty.c
2410
struct tty *tp;
sys/kern/tty.c
2486
ttytstamp(struct tty *tp, int octs, int ncts, int odcd, int ndcd)
sys/kern/tty.c
600
ttyoutput(int c, struct tty *tp)
sys/kern/tty.c
70
static int ttnread(struct tty *);
sys/kern/tty.c
71
static void ttyblock(struct tty *);
sys/kern/tty.c
72
void ttyunblock(struct tty *);
sys/kern/tty.c
723
ttioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct proc *p)
sys/kern/tty.c
73
static void ttyecho(int, struct tty *);
sys/kern/tty.c
74
static void ttyrubo(struct tty *, int);
sys/kern/tty.c
81
int ttywait_nsec(struct tty *, uint64_t);
sys/kern/tty_conf.c
120
nullioctl(struct tty *tp, u_long cmd, char *data, int flags, struct proc *p)
sys/kern/tty_conf.c
50
#define ttynodisc ((int (*)(dev_t, struct tty *, struct proc *))enodev)
sys/kern/tty_conf.c
51
#define ttyerrclose ((int (*)(struct tty *, int flags, struct proc *))enodev)
sys/kern/tty_conf.c
52
#define ttyerrio ((int (*)(struct tty *, struct uio *, int))enodev)
sys/kern/tty_conf.c
53
#define ttyerrinput ((int (*)(int c, struct tty *))enodev)
sys/kern/tty_conf.c
54
#define ttyerrstart ((int (*)(struct tty *))enodev)
sys/kern/tty_endrun.c
101
void endrun_scan(struct endrun *, struct tty *);
sys/kern/tty_endrun.c
102
void endrun_decode(struct endrun *, struct tty *, char *fld[], int fldcnt);
sys/kern/tty_endrun.c
119
endrunopen(dev_t dev, struct tty *tp, struct proc *p)
sys/kern/tty_endrun.c
165
endrunclose(struct tty *tp, int flags, struct proc *p)
sys/kern/tty_endrun.c
183
endruninput(int c, struct tty *tp)
sys/kern/tty_endrun.c
249
endrun_scan(struct endrun *np, struct tty *tp)
sys/kern/tty_endrun.c
280
endrun_decode(struct endrun *np, struct tty *tp, char *fld[], int fldcnt)
sys/kern/tty_msts.c
127
mstsclose(struct tty *tp, int flags, struct proc *p)
sys/kern/tty_msts.c
144
mstsinput(int c, struct tty *tp)
sys/kern/tty_msts.c
208
msts_scan(struct msts *np, struct tty *tp)
sys/kern/tty_msts.c
238
msts_decode(struct msts *np, struct tty *tp, char *fld[], int fldcnt)
sys/kern/tty_msts.c
68
void msts_scan(struct msts *, struct tty *);
sys/kern/tty_msts.c
69
void msts_decode(struct msts *, struct tty *, char *fld[], int fldcnt);
sys/kern/tty_msts.c
84
mstsopen(dev_t dev, struct tty *tp, struct proc *p)
sys/kern/tty_nmea.c
166
nmeaclose(struct tty *tp, int flags, struct proc *p)
sys/kern/tty_nmea.c
183
nmeainput(int c, struct tty *tp)
sys/kern/tty_nmea.c
256
nmea_scan(struct nmea *np, struct tty *tp)
sys/kern/tty_nmea.c
337
nmea_gprmc(struct nmea *np, struct tty *tp, char *fld[], int fldcnt)
sys/kern/tty_nmea.c
464
nmea_decode_gga(struct nmea *np, struct tty *tp, char *fld[], int fldcnt)
sys/kern/tty_nmea.c
77
void nmea_scan(struct nmea *, struct tty *);
sys/kern/tty_nmea.c
78
void nmea_gprmc(struct nmea *, struct tty *, char *fld[], int fldcnt);
sys/kern/tty_nmea.c
79
void nmea_decode_gga(struct nmea *, struct tty *, char *fld[], int fldcnt);
sys/kern/tty_nmea.c
99
nmeaopen(dev_t dev, struct tty *tp, struct proc *p)
sys/kern/tty_pty.c
100
void ptcwakeup(struct tty *, int);
sys/kern/tty_pty.c
101
struct tty *ptytty(dev_t);
sys/kern/tty_pty.c
102
void ptsstart(struct tty *);
sys/kern/tty_pty.c
233
struct tty *tp;
sys/kern/tty_pty.c
271
struct tty *tp = pti->pt_tty;
sys/kern/tty_pty.c
286
struct tty *tp = pti->pt_tty;
sys/kern/tty_pty.c
336
struct tty *tp = pti->pt_tty;
sys/kern/tty_pty.c
348
ptsstart(struct tty *tp)
sys/kern/tty_pty.c
362
ptsstop(struct tty *tp, int flush)
sys/kern/tty_pty.c
385
ptcwakeup(struct tty *tp, int flag)
sys/kern/tty_pty.c
405
struct tty *tp;
sys/kern/tty_pty.c
428
struct tty *tp = pti->pt_tty;
sys/kern/tty_pty.c
440
struct tty *tp = pti->pt_tty;
sys/kern/tty_pty.c
507
struct tty *tp = pti->pt_tty;
sys/kern/tty_pty.c
620
struct tty *tp;
sys/kern/tty_pty.c
662
struct tty *tp;
sys/kern/tty_pty.c
696
struct tty *tp;
sys/kern/tty_pty.c
75
struct tty *pt_tty;
sys/kern/tty_pty.c
777
struct tty *
sys/kern/tty_pty.c
781
struct tty *tp = pti->pt_tty;
sys/kern/tty_pty.c
790
struct tty *tp = pti->pt_tty;
sys/net/ppp_tty.c
123
int pppstart_internal(struct tty *tp, int);
sys/net/ppp_tty.c
157
pppopen(dev_t dev, struct tty *tp, struct proc *p)
sys/net/ppp_tty.c
223
pppclose(struct tty *tp, int flag, struct proc *p)
sys/net/ppp_tty.c
234
if (tp == (struct tty *) sc->sc_devp) {
sys/net/ppp_tty.c
272
pppread(struct tty *tp, struct uio *uio, int flag)
sys/net/ppp_tty.c
287
if (tp != (struct tty *) sc->sc_devp || tp->t_line != PPPDISC) {
sys/net/ppp_tty.c
326
pppwrite(struct tty *tp, struct uio *uio, int flag)
sys/net/ppp_tty.c
338
if (sc == NULL || tp != (struct tty *) sc->sc_devp)
sys/net/ppp_tty.c
377
ppptioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct proc *p)
sys/net/ppp_tty.c
382
if (sc == NULL || tp != (struct tty *) sc->sc_devp)
sys/net/ppp_tty.c
489
struct tty *tp = (struct tty *) sc->sc_devp;
sys/net/ppp_tty.c
674
struct tty *tp;
sys/net/ppp_tty.c
680
tp = (struct tty *) sc->sc_devp;
sys/net/ppp_tty.c
693
pppstart_internal(struct tty *tp, int force)
sys/net/ppp_tty.c
711
&& sc != NULL && tp == (struct tty *) sc->sc_devp) {
sys/net/ppp_tty.c
719
pppstart(struct tty *tp)
sys/net/ppp_tty.c
731
struct tty *tp = (struct tty *) sc->sc_devp;
sys/net/ppp_tty.c
789
pppinput(int c, struct tty *tp)
sys/net/ppp_tty.c
796
if (sc == NULL || tp != (struct tty *) sc->sc_devp)
sys/sys/conf.h
141
int (*d_stop)(struct tty *tp, int rw);
sys/sys/conf.h
142
struct tty *
sys/sys/conf.h
157
#define dev_type_stop(n) int n(struct tty *, int)
sys/sys/conf.h
158
#define dev_type_tty(n) struct tty *n(dev_t)
sys/sys/conf.h
165
dev_decl(n,tty); dev_decl(n,mmap); \
sys/sys/conf.h
186
dev_init(c,n,tty), (dev_type_mmap((*))) enodev, \
sys/sys/conf.h
227
dev_init(c,n,tty), (dev_type_mmap((*))) enodev, \
sys/sys/conf.h
325
dev_init(c,n,tty), dev_init(c,n,mmap), \
sys/sys/conf.h
50
struct tty;
sys/sys/conf.h
503
int (*l_open)(dev_t dev, struct tty *tp, struct proc *p);
sys/sys/conf.h
504
int (*l_close)(struct tty *tp, int flags, struct proc *p);
sys/sys/conf.h
505
int (*l_read)(struct tty *tp, struct uio *uio,
sys/sys/conf.h
507
int (*l_write)(struct tty *tp, struct uio *uio,
sys/sys/conf.h
509
int (*l_ioctl)(struct tty *tp, u_long cmd, caddr_t data,
sys/sys/conf.h
511
int (*l_rint)(int c, struct tty *tp);
sys/sys/conf.h
512
int (*l_start)(struct tty *tp);
sys/sys/conf.h
513
int (*l_modem)(struct tty *tp, int flag);
sys/sys/proc.h
69
struct tty *s_ttyp; /* Controlling terminal. */
sys/sys/systm.h
175
struct tty;
sys/sys/systm.h
176
void ttyprintf(struct tty *, const char *, ...)
sys/sys/tty.h
103
TAILQ_ENTRY(tty) tty_link; /* Link in global tty list. */
sys/sys/tty.h
122
void (*t_oproc)(struct tty *);
sys/sys/tty.h
124
int (*t_param)(struct tty *, struct termios *);
sys/sys/tty.h
126
int (*t_hwiflow)(struct tty *tp, int flag);
sys/sys/tty.h
241
TAILQ_HEAD(ttylist_head, tty); /* the ttylist is a TAILQ */
sys/sys/tty.h
266
int nullmodem(struct tty *tp, int flag);
sys/sys/tty.h
267
int tputchar(int c, struct tty *tp);
sys/sys/tty.h
268
int ttioctl(struct tty *tp, u_long com, caddr_t data, int flag,
sys/sys/tty.h
270
int ttread(struct tty *tp, struct uio *uio, int flag);
sys/sys/tty.h
273
void ttsetwater(struct tty *tp);
sys/sys/tty.h
275
int ttstart(struct tty *tp);
sys/sys/tty.h
276
void ttwakeupwr(struct tty *tp);
sys/sys/tty.h
277
void ttwakeup(struct tty *tp);
sys/sys/tty.h
278
int ttwrite(struct tty *tp, struct uio *uio, int flag);
sys/sys/tty.h
279
void ttychars(struct tty *tp);
sys/sys/tty.h
280
int ttycheckoutq(struct tty *tp, int wait);
sys/sys/tty.h
281
int ttyclose(struct tty *tp);
sys/sys/tty.h
282
void ttyflush(struct tty *tp, int rw);
sys/sys/tty.h
283
void ttyinfo(struct tty *tp);
sys/sys/tty.h
284
int ttyinput(int c, struct tty *tp);
sys/sys/tty.h
285
int ttylclose(struct tty *tp, int flag, struct proc *p);
sys/sys/tty.h
286
int ttymodem(struct tty *tp, int flag);
sys/sys/tty.h
287
int ttyopen(dev_t device, struct tty *tp, struct proc *p);
sys/sys/tty.h
288
int ttyoutput(int c, struct tty *tp);
sys/sys/tty.h
289
void ttypend(struct tty *tp);
sys/sys/tty.h
290
int ttyretype(struct tty *tp);
sys/sys/tty.h
291
int ttyrub(int c, struct tty *tp);
sys/sys/tty.h
292
int ttysleep(struct tty *tp, void *chan, int pri, char *wmesg);
sys/sys/tty.h
293
int ttysleep_nsec(struct tty *, void *, int, char *, uint64_t);
sys/sys/tty.h
294
int ttywait(struct tty *tp);
sys/sys/tty.h
295
int ttywflush(struct tty *tp);
sys/sys/tty.h
296
void ttytstamp(struct tty *tp, int octs, int ncts, int odcd, int ndcd);
sys/sys/tty.h
299
struct tty *ttymalloc(int);
sys/sys/tty.h
300
void ttyfree(struct tty *);
sys/sys/tty.h
310
int nullioctl(struct tty *, u_long, caddr_t, int, struct proc *);
sys/sys/tty.h
312
int pppopen(dev_t dev, struct tty *, struct proc *);
sys/sys/tty.h
313
int pppclose(struct tty *, int, struct proc *);
sys/sys/tty.h
314
int ppptioctl(struct tty *, u_long, caddr_t, int, struct proc *);
sys/sys/tty.h
315
int pppinput(int c, struct tty *);
sys/sys/tty.h
316
int pppstart(struct tty *);
sys/sys/tty.h
317
int pppread(struct tty *, struct uio *, int);
sys/sys/tty.h
318
int pppwrite(struct tty *, struct uio *, int);
sys/sys/tty.h
320
int nmeaopen(dev_t, struct tty *, struct proc *);
sys/sys/tty.h
321
int nmeaclose(struct tty *, int, struct proc *);
sys/sys/tty.h
322
int nmeainput(int, struct tty *);
sys/sys/tty.h
324
int mstsopen(dev_t, struct tty *, struct proc *);
sys/sys/tty.h
325
int mstsclose(struct tty *, int, struct proc *);
sys/sys/tty.h
326
int mstsinput(int, struct tty *);
sys/sys/tty.h
328
int endrunopen(dev_t, struct tty *, struct proc *);
sys/sys/tty.h
329
int endrunclose(struct tty *, int, struct proc *);
sys/sys/tty.h
330
int endruninput(int, struct tty *);
sys/sys/types.h
232
struct tty;
usr.bin/finger/finger.h
73
char tty[UT_LINESIZE+1]; /* null terminated tty line */
usr.bin/finger/lprint.c
136
if ((len = strlen(w->tty)) > maxlen)
usr.bin/finger/lprint.c
146
t, tzn, w->tty);
usr.bin/finger/lprint.c
155
(int)(maxlen - strlen(w->tty) + 1), ",");
usr.bin/finger/lprint.c
182
t, t + 20, tzn, w->tty);
usr.bin/finger/lprint.c
185
t, tzn, w->tty);
usr.bin/finger/sprint.c
91
if (*w->tty)
usr.bin/finger/sprint.c
93
w->tty[0] != 't' || w->tty[1] != 't' ||
usr.bin/finger/sprint.c
94
w->tty[2] != 'y' ? w->tty : w->tty + 3);
usr.bin/finger/util.c
219
strncmp(w->tty, ll.ll_line, UT_LINESIZE) == 0)
usr.bin/finger/util.c
225
bcopy(ll.ll_line, w->tty, UT_LINESIZE);
usr.bin/finger/util.c
226
w->tty[UT_LINESIZE] = 0;
usr.bin/finger/util.c
239
bcopy(ut->ut_line, w->tty, UT_LINESIZE);
usr.bin/finger/util.c
240
w->tty[UT_LINESIZE] = 0;
usr.bin/finger/util.c
62
(void)snprintf(tbuf, sizeof(tbuf), "%s%s", _PATH_DEV, w->tty);
usr.bin/last/last.c
337
if (!strncmp(T->tty, bp->ut_line, UT_LINESIZE))
usr.bin/last/last.c
491
memmove(cur->tty, ttyname, UT_LINESIZE);
usr.bin/last/last.c
66
char tty[UT_LINESIZE + 1]; /* terminal name */
usr.bin/less/screen.c
118
(void) tcgetattr(tty, &s);
usr.bin/less/screen.c
161
(void) tcsetattr(tty, TCSASOFT | TCSADRAIN, &s);
usr.bin/less/screen.c
86
extern int tty;
usr.bin/less/ttyin.c
18
int tty;
usr.bin/less/ttyin.c
33
tty = open("/dev/tty", O_RDONLY);
usr.bin/less/ttyin.c
34
if (tty == -1)
usr.bin/less/ttyin.c
35
tty = STDERR_FILENO;
usr.bin/less/ttyin.c
48
result = iread(tty, &c, sizeof (char));
usr.bin/login/failedlogin.c
52
log_failedlogin(uid_t uid, char *host, char *name, char *tty)
usr.bin/login/failedlogin.c
70
strncpy(failedlogin.bl_line, tty, sizeof(failedlogin.bl_line));
usr.bin/login/login.c
132
char term[64], *hostname, *tty;
usr.bin/login/login.c
298
if ((tty = strrchr(ttyn, '/')))
usr.bin/login/login.c
299
++tty;
usr.bin/login/login.c
301
tty = ttyn;
usr.bin/login/login.c
506
if (pwd && rootlogin && !rootterm(tty))
usr.bin/login/login.c
518
if (rootlogin && !rootterm(tty)) {
usr.bin/login/login.c
525
rusername ? "@" : "", hostname, tty);
usr.bin/login/login.c
529
fullname, tty);
usr.bin/login/login.c
537
log_failedlogin(pwd->pw_uid, hostname, rusername, tty);
usr.bin/login/login.c
588
(void)strlcpy(term, stypeof(tty), sizeof(term));
usr.bin/login/login.c
663
(void)strncpy(utmp.ut_line, tty, sizeof(utmp.ut_line));
usr.bin/login/login.c
670
login_fbtab(tty, pwd->pw_uid, pwd->pw_gid);
usr.bin/login/login.c
679
username, tty, rusername ? rusername : "",
usr.bin/login/login.c
682
syslog(LOG_NOTICE, "ROOT LOGIN (%s) ON %s", username, tty);
usr.bin/login/login.c
863
(void)strncpy(ll.ll_line, tty, sizeof(ll.ll_line));
usr.bin/login/login.c
891
failures, failures > 1 ? "S" : "", tty);
usr.bin/login/login.c
894
failures, failures > 1 ? "S" : "", tty, name);
usr.bin/mail/tty.c
102
tty.keys = oldtio.c_cc;
usr.bin/mail/tty.c
104
tty.flags |= TTY_ALTWERASE;
usr.bin/mail/tty.c
110
if (tcsetattr(tty.fdin, TCSADRAIN, &newtio) == -1) {
usr.bin/mail/tty.c
159
if (tcsetattr(tty.fdin, TCSADRAIN, &oldtio) == -1)
usr.bin/mail/tty.c
180
tty.buf = canonb;
usr.bin/mail/tty.c
181
tty.size = sizeof(canonb) - 1;
usr.bin/mail/tty.c
184
tty_insert(&tty, *cp, 1);
usr.bin/mail/tty.c
185
tty_flush(&tty);
usr.bin/mail/tty.c
186
tty_reset(&tty);
usr.bin/mail/tty.c
194
tty_insert(&tty, *cp, 1);
usr.bin/mail/tty.c
195
tty_flush(&tty);
usr.bin/mail/tty.c
208
c = tty_getc(&tty);
usr.bin/mail/tty.c
211
tty_visc(&tty, '\003'); /* output ^C */
usr.bin/mail/tty.c
222
tty_putc(&tty, c);
usr.bin/mail/tty.c
225
done = tty_insert(&tty, c, 0);
usr.bin/mail/tty.c
226
tty_flush(&tty);
usr.bin/mail/tty.c
239
if (tty.flags & TTY_ERR) {
usr.bin/mail/tty.c
292
tty_flush(struct tty *t)
usr.bin/mail/tty.c
322
tty_getc(struct tty *t)
usr.bin/mail/tty.c
343
tty_insert(struct tty *t, int c, int nocntrl)
usr.bin/mail/tty.c
379
tty_putc(struct tty *t, int c)
usr.bin/mail/tty.c
387
tty_reset(struct tty *t)
usr.bin/mail/tty.c
394
tty_visc(struct tty *t, int c)
usr.bin/mail/tty.c
60
static void tty_flush(struct tty *);
usr.bin/mail/tty.c
61
static int tty_getc(struct tty *);
usr.bin/mail/tty.c
62
static int tty_insert(struct tty *, int, int);
usr.bin/mail/tty.c
63
static void tty_putc(struct tty *, int);
usr.bin/mail/tty.c
64
static void tty_reset(struct tty *);
usr.bin/mail/tty.c
65
static void tty_visc(struct tty *, int);
usr.bin/mail/tty.c
67
static struct tty tty;
usr.bin/mail/tty.c
95
memset(&tty, 0, sizeof(tty));
usr.bin/mail/tty.c
96
tty.fdin = fileno(stdin);
usr.bin/mail/tty.c
97
tty.fdout = fileno(stdout);
usr.bin/mail/tty.c
98
if (tcgetattr(tty.fdin, &oldtio) == -1) {
usr.bin/mesg/mesg.c
52
char *tty;
usr.bin/mesg/mesg.c
63
if ((tty = ttyname(STDERR_FILENO)) == NULL)
usr.bin/mesg/mesg.c
66
if (unveil(tty, "rw") == -1)
usr.bin/mesg/mesg.c
67
err(2, "unveil %s", tty);
usr.bin/mesg/mesg.c
71
if (stat(tty, &sb) == -1)
usr.bin/mesg/mesg.c
72
err(2, "%s", tty);
usr.bin/mesg/mesg.c
87
if (chmod(tty, sb.st_mode | S_IWGRP) == -1)
usr.bin/mesg/mesg.c
88
err(2, "%s", tty);
usr.bin/mesg/mesg.c
91
if (chmod(tty, sb.st_mode & ~S_IWGRP) == -1)
usr.bin/mesg/mesg.c
92
err(2, "%s", tty);
usr.bin/mg/tty.c
67
char *tty;
usr.bin/mg/tty.c
71
tty = "pty";
usr.bin/mg/tty.c
73
tty = NULL;
usr.bin/mg/tty.c
75
if (setupterm(tty, STDOUT_FILENO, &errret))
usr.bin/ssh/monitor.c
1434
record_login(s->pid, s->tty, pw->pw_name, pw->pw_uid,
usr.bin/ssh/monitor.c
1444
debug3_f("tty %s ptyfd %d", s->tty, s->ptyfd);
usr.bin/ssh/monitor.c
1466
res = pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty));
usr.bin/ssh/monitor.c
1469
pty_setowner(authctxt->pw, s->tty);
usr.bin/ssh/monitor.c
1472
(r = sshbuf_put_cstring(m, s->tty)) != 0)
usr.bin/ssh/monitor.c
1507
debug3_f("tty %s ptyfd %d", s->tty, s->ttyfd);
usr.bin/ssh/monitor.c
1524
char *tty;
usr.bin/ssh/monitor.c
1529
if ((r = sshbuf_get_cstring(m, &tty, NULL)) != 0)
usr.bin/ssh/monitor.c
1531
if ((s = session_by_tty(tty)) != NULL)
usr.bin/ssh/monitor.c
1534
free(tty);
usr.bin/ssh/monitor_wrap.c
684
if ((r = sshbuf_put_cstring(m, s->tty)) != 0)
usr.bin/ssh/session.c
1457
session_by_tty(char *tty)
usr.bin/ssh/session.c
1462
if (s->used && s->ttyfd != -1 && strcmp(s->tty, tty) == 0) {
usr.bin/ssh/session.c
1463
debug("session_by_tty: session %d tty %s", i, tty);
usr.bin/ssh/session.c
1467
debug("session_by_tty: unknown tty %.100s", tty);
usr.bin/ssh/session.c
1570
if (!mm_pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty))) {
usr.bin/ssh/session.c
1578
debug("session_pty_req: session %d alloc %s", s->self, s->tty);
usr.bin/ssh/session.c
1915
debug_f("session %d release %s", s->self, s->tty);
usr.bin/ssh/session.c
1919
record_logout(s->pid, s->tty);
usr.bin/ssh/session.c
1923
pty_release(s->tty);
usr.bin/ssh/session.c
2183
strlcat(buf, strrchr(s->tty, '/') + 1, sizeof buf);
usr.bin/ssh/session.c
553
pty_make_controlling_tty(&ttyfd, s->tty);
usr.bin/ssh/session.c
597
const char *forced = NULL, *tty = NULL;
usr.bin/ssh/session.c
630
tty = s->tty;
usr.bin/ssh/session.c
631
if (strncmp(tty, "/dev/", 5) == 0)
usr.bin/ssh/session.c
632
tty += 5;
usr.bin/ssh/session.c
637
tty == NULL ? "" : " on ",
usr.bin/ssh/session.c
638
tty == NULL ? "" : tty,
usr.bin/ssh/session.c
905
child_set_env(&env, &envsize, "SSH_TTY", s->tty);
usr.bin/ssh/session.h
44
char tty[TTYSZ];
usr.bin/ssh/sshlogin.c
148
record_login(pid_t pid, const char *tty, const char *user, uid_t uid,
usr.bin/ssh/sshlogin.c
161
strncpy(u.ut_line, tty + 5, sizeof(u.ut_line));
usr.bin/ssh/sshlogin.c
179
strncpy(ll.ll_line, tty + 5, sizeof(ll.ll_line));
usr.bin/ssh/sshlogin.c
193
record_logout(pid_t pid, const char *tty)
usr.bin/ssh/sshlogin.c
195
const char *line = tty + 5; /* /dev/ttyq8 -> ttyq8 */
usr.bin/ssh/sshpty.c
105
fd = open(tty, O_RDWR);
usr.bin/ssh/sshpty.c
107
error("%.100s: %.100s", tty, strerror(errno));
usr.bin/ssh/sshpty.c
137
pty_setowner(struct passwd *pw, const char *tty)
usr.bin/ssh/sshpty.c
156
if (stat(tty, &st) == -1)
usr.bin/ssh/sshpty.c
157
fatal("stat(%.100s) failed: %.100s", tty,
usr.bin/ssh/sshpty.c
161
if (chown(tty, pw->pw_uid, gid) == -1) {
usr.bin/ssh/sshpty.c
165
tty, (u_int)pw->pw_uid, (u_int)gid,
usr.bin/ssh/sshpty.c
169
tty, (u_int)pw->pw_uid, (u_int)gid,
usr.bin/ssh/sshpty.c
175
if (chmod(tty, mode) == -1) {
usr.bin/ssh/sshpty.c
179
tty, (u_int)mode, strerror(errno));
usr.bin/ssh/sshpty.c
182
tty, (u_int)mode, strerror(errno));
usr.bin/ssh/sshpty.c
64
pty_release(const char *tty)
usr.bin/ssh/sshpty.c
66
if (chown(tty, (uid_t) 0, (gid_t) 0) == -1)
usr.bin/ssh/sshpty.c
67
error("chown %.100s 0 0 failed: %.100s", tty, strerror(errno));
usr.bin/ssh/sshpty.c
68
if (chmod(tty, (mode_t) 0666) == -1)
usr.bin/ssh/sshpty.c
69
error("chmod %.100s 0666 failed: %.100s", tty, strerror(errno));
usr.bin/ssh/sshpty.c
75
pty_make_controlling_tty(int *ttyfd, const char *tty)
usr.bin/talk/init_disp.c
104
struct termios tty;
usr.bin/talk/init_disp.c
106
tcgetattr(STDIN_FILENO, &tty);
usr.bin/talk/init_disp.c
107
buf[0] = my_win.cerase = (tty.c_cc[VERASE] == (u_char)_POSIX_VDISABLE)
usr.bin/talk/init_disp.c
108
? CERASE : tty.c_cc[VERASE];
usr.bin/talk/init_disp.c
109
buf[1] = my_win.kill = (tty.c_cc[VKILL] == (u_char)_POSIX_VDISABLE)
usr.bin/talk/init_disp.c
110
? CKILL : tty.c_cc[VKILL];
usr.bin/talk/init_disp.c
111
buf[2] = my_win.werase = (tty.c_cc[VWERASE] == (u_char)_POSIX_VDISABLE)
usr.bin/talk/init_disp.c
112
? CWERASE : tty.c_cc[VWERASE];
usr.bin/tmux/alerts.c
315
tty_putcode(&c->tty, TTYC_BEL);
usr.bin/tmux/cmd-copy-mode.c
97
window_copy_scroll(wp, c->tty.mouse_slider_mpos, event->m.y,
usr.bin/tmux/cmd-display-menu.c
120
if (w > tty->sx || h > tty->sy)
usr.bin/tmux/cmd-display-menu.c
163
"%u", tty->sy - lines + line);
usr.bin/tmux/cmd-display-menu.c
171
tty->sy - lines);
usr.bin/tmux/cmd-display-menu.c
181
n = (long)(tty->sx - 1) / 2 - w / 2;
usr.bin/tmux/cmd-display-menu.c
186
n = (tty->sy - 1) / 2 + h / 2;
usr.bin/tmux/cmd-display-menu.c
187
if (n >= tty->sy)
usr.bin/tmux/cmd-display-menu.c
188
format_add(ft, "popup_centre_y", "%u", tty->sy - h);
usr.bin/tmux/cmd-display-menu.c
200
if (n + h >= tty->sy) {
usr.bin/tmux/cmd-display-menu.c
202
tty->sy - h);
usr.bin/tmux/cmd-display-menu.c
206
if (n >= tty->sy)
usr.bin/tmux/cmd-display-menu.c
207
format_add(ft, "popup_mouse_top", "%u", tty->sy - 1);
usr.bin/tmux/cmd-display-menu.c
218
tty_window_offset(&tc->tty, &ox, &oy, &sx, &sy);
usr.bin/tmux/cmd-display-menu.c
220
if (n >= tty->sy)
usr.bin/tmux/cmd-display-menu.c
221
format_add(ft, "popup_pane_top", "%u", tty->sy - h);
usr.bin/tmux/cmd-display-menu.c
246
if (n + w >= tty->sx)
usr.bin/tmux/cmd-display-menu.c
247
n = tty->sx - w;
usr.bin/tmux/cmd-display-menu.c
272
if (n + h >= tty->sy)
usr.bin/tmux/cmd-display-menu.c
273
n = tty->sy - h;
usr.bin/tmux/cmd-display-menu.c
394
struct tty *tty = &tc->tty;
usr.bin/tmux/cmd-display-menu.c
417
h = tty->sy / 2;
usr.bin/tmux/cmd-display-menu.c
419
h = args_percentage(args, 'h', 1, tty->sy, tty->sy,
usr.bin/tmux/cmd-display-menu.c
427
w = tty->sx / 2;
usr.bin/tmux/cmd-display-menu.c
429
w = args_percentage(args, 'w', 1, tty->sx, tty->sx,
usr.bin/tmux/cmd-display-menu.c
437
if (w > tty->sx)
usr.bin/tmux/cmd-display-menu.c
438
w = tty->sx;
usr.bin/tmux/cmd-display-menu.c
439
if (h > tty->sy)
usr.bin/tmux/cmd-display-menu.c
440
h = tty->sy;
usr.bin/tmux/cmd-display-menu.c
99
struct tty *tty = &tc->tty;
usr.bin/tmux/cmd-display-panes.c
147
tty_attributes(tty, &fgc, &grid_default_cell, NULL, NULL);
usr.bin/tmux/cmd-display-panes.c
150
tty_cursor(tty, xoff + px - len / 2, yoff + py);
usr.bin/tmux/cmd-display-panes.c
151
tty_putn(tty, buf, len, len);
usr.bin/tmux/cmd-display-panes.c
152
tty_putn(tty, " ", 1, 1);
usr.bin/tmux/cmd-display-panes.c
153
tty_putn(tty, lbuf, llen, llen);
usr.bin/tmux/cmd-display-panes.c
155
tty_cursor(tty, xoff + px - len / 2, yoff + py);
usr.bin/tmux/cmd-display-panes.c
156
tty_putn(tty, buf, len, len);
usr.bin/tmux/cmd-display-panes.c
164
tty_attributes(tty, &bgc, &grid_default_cell, NULL, NULL);
usr.bin/tmux/cmd-display-panes.c
172
tty_cursor(tty, xoff + i, yoff + py + j);
usr.bin/tmux/cmd-display-panes.c
174
tty_putc(tty, ' ');
usr.bin/tmux/cmd-display-panes.c
182
tty_attributes(tty, &fgc, &grid_default_cell, NULL, NULL);
usr.bin/tmux/cmd-display-panes.c
184
tty_cursor(tty, xoff + sx - rlen, yoff);
usr.bin/tmux/cmd-display-panes.c
185
tty_putn(tty, rbuf, rlen, rlen);
usr.bin/tmux/cmd-display-panes.c
188
tty_cursor(tty, xoff + sx / 2 + len * 3 - llen - 1,
usr.bin/tmux/cmd-display-panes.c
190
tty_putn(tty, lbuf, llen, llen);
usr.bin/tmux/cmd-display-panes.c
194
tty_cursor(tty, 0, 0);
usr.bin/tmux/cmd-display-panes.c
63
struct tty *tty = &c->tty;
usr.bin/tmux/cmd-find.c
90
if (wp->fd != -1 && strcmp(wp->tty, c->ttyname) == 0)
usr.bin/tmux/cmd-find.c
99
log_debug("%s: got pane %%%u (%s)", __func__, wp->id, wp->tty);
usr.bin/tmux/cmd-load-buffer.c
80
tty_set_selection(&tc->tty, "", copy, bsize);
usr.bin/tmux/cmd-new-session.c
210
dsx = c->tty.sx;
usr.bin/tmux/cmd-new-session.c
226
dsy = c->tty.sy;
usr.bin/tmux/cmd-new-session.c
241
sx = c->tty.sx;
usr.bin/tmux/cmd-new-session.c
242
sy = c->tty.sy;
usr.bin/tmux/cmd-refresh-client.c
127
tty_set_size(&tc->tty, x, y, 0, 0);
usr.bin/tmux/cmd-refresh-client.c
167
cmd_refresh_report(struct tty *tty, const char *value)
usr.bin/tmux/cmd-refresh-client.c
187
tty_keys_colours(tty, split, strlen(split), &size, &wp->control_fg,
usr.bin/tmux/cmd-refresh-client.c
199
struct tty *tty = &tc->tty;
usr.bin/tmux/cmd-refresh-client.c
228
tc->pan_ox = tty->oox;
usr.bin/tmux/cmd-refresh-client.c
229
tc->pan_oy = tty->ooy;
usr.bin/tmux/cmd-refresh-client.c
238
if (tc->pan_ox > w->sx - tty->osx)
usr.bin/tmux/cmd-refresh-client.c
239
tc->pan_ox = w->sx - tty->osx;
usr.bin/tmux/cmd-refresh-client.c
247
if (tc->pan_oy > w->sy - tty->osy)
usr.bin/tmux/cmd-refresh-client.c
248
tc->pan_oy = w->sy - tty->osy;
usr.bin/tmux/cmd-refresh-client.c
257
tty_clipboard_query(&tc->tty);
usr.bin/tmux/cmd-refresh-client.c
266
cmd_refresh_report(tty, args_get(args, 'r'));
usr.bin/tmux/cmd-resize-pane.c
166
c->tty.mouse_drag_update = NULL;
usr.bin/tmux/cmd-resize-pane.c
83
c->tty.mouse_drag_update = cmd_resize_pane_mouse_update;
usr.bin/tmux/cmd-select-pane.c
71
if (c->session->curw->window == w && tty_window_bigger(&c->tty))
usr.bin/tmux/cmd-set-buffer.c
128
tty_set_selection(&tc->tty, "", bufdata, bufsize);
usr.bin/tmux/cmd-show-messages.c
60
if (args_has(args, 't') && tc != NULL && term != tc->tty.term)
usr.bin/tmux/cmd-show-messages.c
67
term->name, term->tty->client->name, term->flags);
usr.bin/tmux/format.c
1286
if (ft->c == NULL || (~ft->c->tty.flags & TTY_STARTED))
usr.bin/tmux/format.c
1309
if (ft->c == NULL || (~ft->c->tty.flags & TTY_STARTED))
usr.bin/tmux/format.c
1437
if (ft->c != NULL && (ft->c->tty.flags & TTY_STARTED))
usr.bin/tmux/format.c
1438
return (format_printf("%u", ft->c->tty.ypixel));
usr.bin/tmux/format.c
1446
if (ft->c != NULL && (ft->c->tty.flags & TTY_STARTED))
usr.bin/tmux/format.c
1447
return (format_printf("%u", ft->c->tty.xpixel));
usr.bin/tmux/format.c
1485
if (ft->c != NULL && (ft->c->tty.flags & TTY_STARTED))
usr.bin/tmux/format.c
1486
return (format_printf("%u", ft->c->tty.sy));
usr.bin/tmux/format.c
1653
return (format_printf("%u", ft->c->tty.sx));
usr.bin/tmux/format.c
1938
if (ft->c != NULL && (ft->c->tty.flags & TTY_STARTED)) {
usr.bin/tmux/format.c
1959
if (ft->c != NULL && (ft->c->tty.flags & TTY_STARTED)) {
usr.bin/tmux/format.c
2374
return (xstrdup(ft->wp->tty));
usr.bin/tmux/format.c
2714
if (tty_window_offset(&ft->c->tty, &ox, &oy, &sx, &sy))
usr.bin/tmux/format.c
2886
if (tty_window_offset(&ft->c->tty, &ox, &oy, &sx, &sy))
usr.bin/tmux/format.c
2900
if (tty_window_offset(&ft->c->tty, &ox, &oy, &sx, &sy))
usr.bin/tmux/format.c
872
cmd = get_proc_name(wp->fd, wp->tty);
usr.bin/tmux/input.c
3205
tty_set_selection(&ictx->c->tty, clip, out, outlen);
usr.bin/tmux/input.c
3373
if (~loop->tty.flags & TTY_STARTED)
usr.bin/tmux/input.c
3392
tty_puts(&c->tty, s);
usr.bin/tmux/input.c
3395
tty_putcode_ss(&c->tty, TTYC_MS, "", "?");
usr.bin/tmux/job.c
118
pid = fdforkpty(ptm_fd, &master, tty, NULL, &ws);
usr.bin/tmux/job.c
210
strlcpy(job->tty, tty, sizeof job->tty);
usr.bin/tmux/job.c
245
job_transfer(struct job *job, pid_t *pid, char *tty, size_t ttylen)
usr.bin/tmux/job.c
253
if (tty != NULL)
usr.bin/tmux/job.c
254
strlcpy(tty, job->tty, ttylen);
usr.bin/tmux/job.c
55
char tty[TTY_NAME_MAX];
usr.bin/tmux/job.c
86
char **argvp, tty[TTY_NAME_MAX], *argv0;
usr.bin/tmux/menu.c
264
struct tty *tty = &c->tty;
usr.bin/tmux/menu.c
285
tty_draw_line(tty, s, 0, i, menu->width + 4, px, py + i,
usr.bin/tmux/menu.c
527
if (nx + w > c->tty.sx) {
usr.bin/tmux/menu.c
528
if (c->tty.sx <= w)
usr.bin/tmux/menu.c
531
nx = c->tty.sx - w;
usr.bin/tmux/menu.c
534
if (ny + h > c->tty.sy) {
usr.bin/tmux/menu.c
535
if (c->tty.sy <= h)
usr.bin/tmux/menu.c
538
ny = c->tty.sy - h;
usr.bin/tmux/menu.c
556
if (c->tty.sx < menu->width + 4 || c->tty.sy < menu->count + 2)
usr.bin/tmux/menu.c
558
if (px + menu->width + 4 > c->tty.sx)
usr.bin/tmux/menu.c
559
px = c->tty.sx - menu->width - 4;
usr.bin/tmux/menu.c
560
if (py + menu->count + 2 > c->tty.sy)
usr.bin/tmux/menu.c
561
py = c->tty.sy - menu->count - 2;
usr.bin/tmux/menu.c
97
max_width = c->tty.sx - 4;
usr.bin/tmux/mode-tree.c
1181
if (c->tty.sx < w || c->tty.sy < h)
usr.bin/tmux/mode-tree.c
1183
px = (c->tty.sx - w) / 2;
usr.bin/tmux/mode-tree.c
1184
py = (c->tty.sy - h) / 2;
usr.bin/tmux/options.c
1215
if (loop->tty.flags & TTY_OPENED)
usr.bin/tmux/options.c
1216
tty_keys_build(&loop->tty);
usr.bin/tmux/popup.c
171
ttyctx->wsx = c->tty.sx;
usr.bin/tmux/popup.c
172
ttyctx->wsy = c->tty.sy;
usr.bin/tmux/popup.c
273
struct tty *tty = &c->tty;
usr.bin/tmux/popup.c
316
tty_draw_line(tty, &s, 0, i, pd->sx, px, py + i, &defaults,
usr.bin/tmux/popup.c
369
struct tty *tty = &c->tty;
usr.bin/tmux/popup.c
377
if (pd->psy > tty->sy)
usr.bin/tmux/popup.c
378
pd->sy = tty->sy;
usr.bin/tmux/popup.c
381
if (pd->psx > tty->sx)
usr.bin/tmux/popup.c
382
pd->sx = tty->sx;
usr.bin/tmux/popup.c
385
if (pd->ppy + pd->sy > tty->sy)
usr.bin/tmux/popup.c
386
pd->py = tty->sy - pd->sy;
usr.bin/tmux/popup.c
389
if (pd->ppx + pd->sx > tty->sx)
usr.bin/tmux/popup.c
390
pd->px = tty->sx - pd->sx;
usr.bin/tmux/popup.c
427
new_wp->fd = job_transfer(pd->job, &new_wp->pid, new_wp->tty,
usr.bin/tmux/popup.c
428
sizeof new_wp->tty);
usr.bin/tmux/popup.c
473
pd->sx = c->tty.sx;
usr.bin/tmux/popup.c
474
pd->sy = c->tty.sy;
usr.bin/tmux/popup.c
480
pd->px = c->tty.sx / 2 - pd->sx / 2;
usr.bin/tmux/popup.c
481
pd->py = c->tty.sy / 2 - pd->sy / 2;
usr.bin/tmux/popup.c
507
else if (m->x - pd->dx + pd->sx > c->tty.sx)
usr.bin/tmux/popup.c
508
px = c->tty.sx - pd->sx;
usr.bin/tmux/popup.c
513
else if (m->y - pd->dy + pd->sy > c->tty.sy)
usr.bin/tmux/popup.c
514
py = c->tty.sy - pd->sy;
usr.bin/tmux/popup.c
757
tty_resize(&c->tty);
usr.bin/tmux/popup.c
796
if (c->tty.sx < sx || c->tty.sy < sy)
usr.bin/tmux/popup.c
959
sx = c->tty.sx * 9 / 10;
usr.bin/tmux/popup.c
960
sy = c->tty.sy * 9 / 10;
usr.bin/tmux/popup.c
961
px = (c->tty.sx / 2) - (sx / 2);
usr.bin/tmux/popup.c
962
py = (c->tty.sy / 2) - (sy / 2);
usr.bin/tmux/procname.c
82
get_proc_name(int fd, char *tty)
usr.bin/tmux/procname.c
94
if (stat(tty, &sb) == -1)
usr.bin/tmux/resize.c
186
cx = loop->tty.sx;
usr.bin/tmux/resize.c
187
cy = loop->tty.sy - status_line_size(loop);
usr.bin/tmux/resize.c
205
if (loop->tty.xpixel > *xpixel && loop->tty.ypixel > *ypixel) {
usr.bin/tmux/resize.c
206
*xpixel = loop->tty.xpixel;
usr.bin/tmux/resize.c
207
*ypixel = loop->tty.ypixel;
usr.bin/tmux/resize.c
292
*sx = c->tty.sx;
usr.bin/tmux/resize.c
293
*sy = c->tty.sy - status_line_size(c);
usr.bin/tmux/resize.c
294
*xpixel = c->tty.xpixel;
usr.bin/tmux/resize.c
295
*ypixel = c->tty.ypixel;
usr.bin/tmux/resize.c
451
if (c->tty.sy <= s->statuslines || (c->flags & CLIENT_CONTROL))
usr.bin/tmux/screen-redraw.c
1003
tty_draw_line(tty, s, rr->px - wp->xoff, j,
usr.bin/tmux/screen-redraw.c
1084
struct tty *tty = &c->tty;
usr.bin/tmux/screen-redraw.c
1121
tty_cursor(tty, px, py);
usr.bin/tmux/screen-redraw.c
1126
tty_cell(tty, &grid_default_cell,
usr.bin/tmux/screen-redraw.c
1133
tty_cell(tty, gcp, &grid_default_cell, NULL,
usr.bin/tmux/screen-redraw.c
521
struct tty *tty = &c->tty;
usr.bin/tmux/screen-redraw.c
570
tty_draw_line(tty, s, i, 0, width, x, yoff - ctx->oy,
usr.bin/tmux/screen-redraw.c
573
tty_cursor(tty, 0, 0);
usr.bin/tmux/screen-redraw.c
639
tty_window_offset(&c->tty, &ctx->ox, &ctx->oy, &ctx->sx, &ctx->sy);
usr.bin/tmux/screen-redraw.c
662
tty_sync_start(&c->tty);
usr.bin/tmux/screen-redraw.c
663
tty_update_mode(&c->tty, c->tty.mode, NULL);
usr.bin/tmux/screen-redraw.c
687
tty_reset(&c->tty);
usr.bin/tmux/screen-redraw.c
701
tty_sync_start(&c->tty);
usr.bin/tmux/screen-redraw.c
702
tty_update_mode(&c->tty, c->tty.mode, NULL);
usr.bin/tmux/screen-redraw.c
710
tty_reset(&c->tty);
usr.bin/tmux/screen-redraw.c
819
struct tty *tty = &c->tty;
usr.bin/tmux/screen-redraw.c
863
tty_term_has(tty->term, TTYC_BIDI))
usr.bin/tmux/screen-redraw.c
869
tty_cursor(tty, i, ctx->statuslines + j);
usr.bin/tmux/screen-redraw.c
871
tty_cursor(tty, i, j);
usr.bin/tmux/screen-redraw.c
873
tty_puts(tty, END_ISOLATE);
usr.bin/tmux/screen-redraw.c
877
tty_cell(tty, &gc, &grid_default_cell, NULL, NULL);
usr.bin/tmux/screen-redraw.c
879
tty_puts(tty, START_ISOLATE);
usr.bin/tmux/screen-redraw.c
897
for (j = 0; j < c->tty.sy - ctx->statuslines; j++) {
usr.bin/tmux/screen-redraw.c
898
for (i = 0; i < c->tty.sx; i++)
usr.bin/tmux/screen-redraw.c
925
struct tty *tty = &c->tty;
usr.bin/tmux/screen-redraw.c
934
y = c->tty.sy - ctx->statuslines;
usr.bin/tmux/screen-redraw.c
936
tty_draw_line(tty, s, 0, i, UINT_MAX, 0, y + i,
usr.bin/tmux/screen-redraw.c
947
struct tty *tty = &c->tty;
usr.bin/tmux/screen-redraw.c
999
r = tty_check_overlay_range(tty, x, y, width);
usr.bin/tmux/screen-write.c
160
ttyctx->bigger = tty_window_offset(&c->tty, &ttyctx->wox, &ttyctx->woy,
usr.bin/tmux/server-client.c
1172
c->tty.mouse_drag_update(c, m);
usr.bin/tmux/server-client.c
121
c->tty.flags |= TTY_FREEZE;
usr.bin/tmux/server-client.c
123
c->tty.flags |= TTY_NOCURSOR;
usr.bin/tmux/server-client.c
149
c->tty.flags &= ~(TTY_FREEZE|TTY_NOCURSOR);
usr.bin/tmux/server-client.c
1714
struct tty *tty = &c->tty;
usr.bin/tmux/server-client.c
1726
flags = (tty->flags & TTY_BLOCK);
usr.bin/tmux/server-client.c
1727
tty->flags &= ~TTY_BLOCK;
usr.bin/tmux/server-client.c
1745
tty_region_off(tty);
usr.bin/tmux/server-client.c
1746
tty_margin_off(tty);
usr.bin/tmux/server-client.c
1755
if (n <= tty->sy)
usr.bin/tmux/server-client.c
1756
cy = tty->sy - n;
usr.bin/tmux/server-client.c
1758
cy = tty->sy - 1;
usr.bin/tmux/server-client.c
1763
tty_window_offset(tty, &ox, &oy, &sx, &sy);
usr.bin/tmux/server-client.c
1778
tty_cursor(tty, cx, cy);
usr.bin/tmux/server-client.c
1804
tty_update_mode(tty, mode, s);
usr.bin/tmux/server-client.c
1805
tty_reset(tty);
usr.bin/tmux/server-client.c
1808
tty_sync_end(tty);
usr.bin/tmux/server-client.c
1809
tty->flags |= flags;
usr.bin/tmux/server-client.c
1935
struct tty *tty = &c->tty;
usr.bin/tmux/server-client.c
1938
int needed, tty_flags, mode = tty->mode;
usr.bin/tmux/server-client.c
1980
if (needed && (left = EVBUFFER_LENGTH(tty->out)) != 0) {
usr.bin/tmux/server-client.c
2021
tty_flags = tty->flags & (TTY_BLOCK|TTY_FREEZE|TTY_NOCURSOR);
usr.bin/tmux/server-client.c
2022
tty->flags = (tty->flags & ~(TTY_BLOCK|TTY_FREEZE))|TTY_NOCURSOR;
usr.bin/tmux/server-client.c
2066
tty->flags = (tty->flags & ~TTY_NOCURSOR)|(tty_flags & TTY_NOCURSOR);
usr.bin/tmux/server-client.c
2067
tty_update_mode(tty, mode, NULL);
usr.bin/tmux/server-client.c
2068
tty->flags = (tty->flags & ~(TTY_BLOCK|TTY_FREEZE|TTY_NOCURSOR))|
usr.bin/tmux/server-client.c
2079
c->redraw = EVBUFFER_LENGTH(tty->out);
usr.bin/tmux/server-client.c
2102
tty_set_title(&c->tty, c->title);
usr.bin/tmux/server-client.c
2125
tty_set_path(&c->tty, c->path);
usr.bin/tmux/server-client.c
2174
tty_resize(&c->tty);
usr.bin/tmux/server-client.c
2175
tty_repeat_requests(&c->tty, 0);
usr.bin/tmux/server-client.c
2190
tty_close(&c->tty);
usr.bin/tmux/server-client.c
2209
tty_start_tty(&c->tty);
usr.bin/tmux/server-client.c
2277
tty_send_requests(&c->tty);
usr.bin/tmux/server-client.c
236
if (strcmp(wp->tty, c->ttyname) == 0)
usr.bin/tmux/server-client.c
2471
if (tty_init(&c->tty, c) != 0) {
usr.bin/tmux/server-client.c
2475
tty_resize(&c->tty);
usr.bin/tmux/server-client.c
2791
tty_repeat_requests(&c->tty, 1);
usr.bin/tmux/server-client.c
313
c->tty.sx = 80;
usr.bin/tmux/server-client.c
314
c->tty.sy = 24;
usr.bin/tmux/server-client.c
363
if (tty_open(&c->tty, cause) != 0)
usr.bin/tmux/server-client.c
469
tty_free(&c->tty);
usr.bin/tmux/server-client.c
554
tty_stop_tty(&c->tty);
usr.bin/tmux/server-client.c
716
m->x, m->y, m->lx, m->ly, c->tty.mouse_drag_flag);
usr.bin/tmux/server-client.c
736
if (c->tty.mouse_drag_flag) {
usr.bin/tmux/server-client.c
861
if (c->tty.mouse_scrolling_flag)
usr.bin/tmux/server-client.c
872
tty_window_offset(&c->tty, &m->ox, &m->oy, &sx, &sy);
usr.bin/tmux/server-client.c
945
c->tty.mouse_drag_flag != 0) {
usr.bin/tmux/server-client.c
946
if (c->tty.mouse_drag_release != NULL)
usr.bin/tmux/server-client.c
947
c->tty.mouse_drag_release(c, m);
usr.bin/tmux/server-client.c
949
c->tty.mouse_drag_update = NULL;
usr.bin/tmux/server-client.c
950
c->tty.mouse_drag_release = NULL;
usr.bin/tmux/server-client.c
951
c->tty.mouse_scrolling_flag = 0;
usr.bin/tmux/server-client.c
958
c->tty.mouse_drag_flag = 0;
usr.bin/tmux/server-client.c
959
c->tty.mouse_slider_mpos = -1;
usr.bin/tmux/server-client.c
974
if (c->tty.mouse_drag_update != NULL)
usr.bin/tmux/server-client.c
983
c->tty.mouse_drag_flag = MOUSE_BUTTONS(b) + 1;
usr.bin/tmux/server-client.c
984
if (c->tty.mouse_scrolling_flag == 0 &&
usr.bin/tmux/server-client.c
986
c->tty.mouse_scrolling_flag = 1;
usr.bin/tmux/server-client.c
988
c->tty.mouse_slider_mpos = sl_mpos +
usr.bin/tmux/server-client.c
991
c->tty.mouse_slider_mpos = sl_mpos;
usr.bin/tmux/server-fn.c
174
tty_stop_tty(&c->tty);
usr.bin/tmux/server-fn.c
175
tty_raw(&c->tty, tty_term_string(c->tty.term, TTYC_SMCUP));
usr.bin/tmux/server-fn.c
176
tty_raw(&c->tty, tty_term_string(c->tty.term, TTYC_CLEAR));
usr.bin/tmux/server-fn.c
177
tty_raw(&c->tty, tty_term_string(c->tty.term, TTYC_E3));
usr.bin/tmux/sort.c
104
result = ca->tty.sx - cb->tty.sx;
usr.bin/tmux/sort.c
106
result = ca->tty.sy - cb->tty.sy;
usr.bin/tmux/spawn.c
384
new_wp->pid = fdforkpty(ptm_fd, &new_wp->fd, new_wp->tty, NULL, &ws);
usr.bin/tmux/status.c
1910
if (c->tty.sy - lines < 3)
usr.bin/tmux/status.c
1919
height = c->tty.sy - lines - 2;
usr.bin/tmux/status.c
1938
py = c->tty.sy - 3 - height;
usr.bin/tmux/status.c
1969
if (c->tty.sy - lines < 3)
usr.bin/tmux/status.c
1976
height = c->tty.sy - lines - 2;
usr.bin/tmux/status.c
2036
py = c->tty.sy - 3 - height;
usr.bin/tmux/status.c
250
return (c->tty.sy - status_line_size(c));
usr.bin/tmux/status.c
301
screen_init(sl->active, c->tty.sx, status_line_size(c), 0);
usr.bin/tmux/status.c
329
screen_init(&sl->screen, c->tty.sx, 1, 0);
usr.bin/tmux/status.c
364
u_int lines, i, n, width = c->tty.sx;
usr.bin/tmux/status.c
379
if (c->tty.sy == 0 || lines == 0)
usr.bin/tmux/status.c
506
c->tty.flags |= TTY_FREEZE;
usr.bin/tmux/status.c
507
c->tty.flags |= TTY_NOCURSOR;
usr.bin/tmux/status.c
522
c->tty.flags &= ~(TTY_NOCURSOR|TTY_FREEZE);
usr.bin/tmux/status.c
552
w = (c->tty.sx * (u_int)sy->width) / 100;
usr.bin/tmux/status.c
556
w = c->tty.sx;
usr.bin/tmux/status.c
557
if (w == 0 || w > c->tty.sx)
usr.bin/tmux/status.c
558
w = c->tty.sx;
usr.bin/tmux/status.c
565
*area_x = (c->tty.sx - w) / 2;
usr.bin/tmux/status.c
568
*area_x = c->tty.sx - w;
usr.bin/tmux/status.c
617
if (c->tty.sx == 0 || c->tty.sy == 0)
usr.bin/tmux/status.c
624
screen_init(sl->active, c->tty.sx, lines, 0);
usr.bin/tmux/status.c
653
screen_write_fast_copy(&ctx, &sl->screen, 0, 0, c->tty.sx, lines);
usr.bin/tmux/status.c
732
c->tty.flags |= TTY_FREEZE;
usr.bin/tmux/status.c
767
c->tty.flags &= ~(TTY_NOCURSOR|TTY_FREEZE);
usr.bin/tmux/status.c
857
if (c->tty.sx == 0 || c->tty.sy == 0)
usr.bin/tmux/status.c
864
screen_init(sl->active, c->tty.sx, lines, 0);
usr.bin/tmux/status.c
906
screen_write_fast_copy(&ctx, &sl->screen, 0, 0, c->tty.sx, lines);
usr.bin/tmux/tmux.h
1242
char tty[TTY_NAME_MAX];
usr.bin/tmux/tmux.h
1572
struct tty *tty;
usr.bin/tmux/tmux.h
1993
struct tty tty;
usr.bin/tmux/tmux.h
2640
void tty_write(void (*)(struct tty *, const struct tty_ctx *),
usr.bin/tmux/tty-acs.c
205
tty_acs_needed(struct tty *tty)
usr.bin/tmux/tty-acs.c
207
if (tty == NULL)
usr.bin/tmux/tty-acs.c
220
if (tty_term_has(tty->term, TTYC_U8) &&
usr.bin/tmux/tty-acs.c
221
tty_term_number(tty->term, TTYC_U8) == 0)
usr.bin/tmux/tty-acs.c
224
if (tty->client->flags & CLIENT_UTF8)
usr.bin/tmux/tty-acs.c
231
tty_acs_get(struct tty *tty, u_char ch)
usr.bin/tmux/tty-acs.c
236
if (tty_acs_needed(tty)) {
usr.bin/tmux/tty-acs.c
237
if (tty->term->acs[ch][0] == '\0')
usr.bin/tmux/tty-acs.c
239
return (&tty->term->acs[ch][0]);
usr.bin/tmux/tty-acs.c
252
tty_acs_reverse_get(__unused struct tty *tty, const char *s, size_t slen)
usr.bin/tmux/tty-draw.c
124
tty_draw_line(struct tty *tty, struct screen *s, u_int px, u_int py, u_int nx,
usr.bin/tmux/tty-draw.c
147
if (atx >= tty->sx)
usr.bin/tmux/tty-draw.c
149
if (atx + nx >= tty->sx)
usr.bin/tmux/tty-draw.c
150
nx = tty->sx - atx;
usr.bin/tmux/tty-draw.c
168
flags = (tty->flags & TTY_NOCURSOR);
usr.bin/tmux/tty-draw.c
169
tty->flags |= TTY_NOCURSOR;
usr.bin/tmux/tty-draw.c
170
tty_update_mode(tty, tty->mode, s);
usr.bin/tmux/tty-draw.c
171
tty_region_off(tty);
usr.bin/tmux/tty-draw.c
172
tty_margin_off(tty);
usr.bin/tmux/tty-draw.c
177
tty_default_attributes(tty, defaults, palette, 8, s->hyperlinks);
usr.bin/tmux/tty-draw.c
207
tty_attributes(tty, &last, defaults, palette, s->hyperlinks);
usr.bin/tmux/tty-draw.c
209
tty_draw_line_clear(tty, atx, aty, cx, defaults, bg, 0);
usr.bin/tmux/tty-draw.c
219
if (py != 0 && atx == 0 && tty->cx >= tty->sx && nx == tty->sx) {
usr.bin/tmux/tty-draw.c
246
gcp = tty_check_codeset(tty, &gc);
usr.bin/tmux/tty-draw.c
290
tty_attributes(tty, &last, defaults, palette,
usr.bin/tmux/tty-draw.c
292
tty_draw_line_clear(tty, atx + last_i, aty,
usr.bin/tmux/tty-draw.c
297
tty_attributes(tty, &last, defaults, palette,
usr.bin/tmux/tty-draw.c
300
tty_cursor(tty, atx + i - width, aty);
usr.bin/tmux/tty-draw.c
302
tty_putn(tty, buf, len, width);
usr.bin/tmux/tty-draw.c
305
tty_putc(tty, buf[j]);
usr.bin/tmux/tty-draw.c
336
tty->flags = (tty->flags & ~TTY_NOCURSOR)|flags;
usr.bin/tmux/tty-draw.c
337
tty_update_mode(tty, tty->mode, s);
usr.bin/tmux/tty-draw.c
48
tty_draw_line_clear(struct tty *tty, u_int px, u_int py, u_int nx,
usr.bin/tmux/tty-draw.c
60
if (tty->client->overlay_check == NULL &&
usr.bin/tmux/tty-draw.c
63
!tty_fake_bce(tty, defaults, bg)) {
usr.bin/tmux/tty-draw.c
65
if (px + nx >= tty->sx && tty_term_has(tty->term, TTYC_EL)) {
usr.bin/tmux/tty-draw.c
66
tty_cursor(tty, px, py);
usr.bin/tmux/tty-draw.c
67
tty_putcode(tty, TTYC_EL);
usr.bin/tmux/tty-draw.c
72
if (px == 0 && tty_term_has(tty->term, TTYC_EL1)) {
usr.bin/tmux/tty-draw.c
73
tty_cursor(tty, px + nx - 1, py);
usr.bin/tmux/tty-draw.c
74
tty_putcode(tty, TTYC_EL1);
usr.bin/tmux/tty-draw.c
79
if (tty_term_has(tty->term, TTYC_ECH)) {
usr.bin/tmux/tty-draw.c
80
tty_cursor(tty, px, py);
usr.bin/tmux/tty-draw.c
81
tty_putcode_i(tty, TTYC_ECH, nx);
usr.bin/tmux/tty-draw.c
87
r = tty_check_overlay_range(tty, px, py, nx);
usr.bin/tmux/tty-draw.c
92
tty_cursor(tty, rr->px, py);
usr.bin/tmux/tty-draw.c
94
tty_putc(tty, ' ');
usr.bin/tmux/tty-draw.c
96
tty_putn(tty, " ", 2, 2);
usr.bin/tmux/tty-draw.c
98
tty_repeat_space(tty, rr->nx);
usr.bin/tmux/tty-keys.c
1013
evbuffer_drain(tty->in, size);
usr.bin/tmux/tty-keys.c
1021
evbuffer_drain(tty->in, size);
usr.bin/tmux/tty-keys.c
1030
struct tty *tty = data;
usr.bin/tmux/tty-keys.c
1032
if (tty->flags & TTY_TIMER) {
usr.bin/tmux/tty-keys.c
1033
while (tty_keys_next(tty))
usr.bin/tmux/tty-keys.c
1044
tty_keys_extended_key(struct tty *tty, const char *buf, size_t len,
usr.bin/tmux/tty-keys.c
1047
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
1098
bspace = tty->tio.c_cc[VERASE];
usr.bin/tmux/tty-keys.c
1165
tty_keys_mouse(struct tty *tty, const char *buf, size_t len, size_t *size,
usr.bin/tmux/tty-keys.c
1168
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
1287
m->lx = tty->mouse_last_x;
usr.bin/tmux/tty-keys.c
1289
m->ly = tty->mouse_last_y;
usr.bin/tmux/tty-keys.c
1291
m->lb = tty->mouse_last_b;
usr.bin/tmux/tty-keys.c
1297
tty->mouse_last_x = x;
usr.bin/tmux/tty-keys.c
1298
tty->mouse_last_y = y;
usr.bin/tmux/tty-keys.c
1299
tty->mouse_last_b = b;
usr.bin/tmux/tty-keys.c
1309
tty_keys_clipboard(struct tty *tty, const char *buf, size_t len, size_t *size)
usr.bin/tmux/tty-keys.c
1311
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
1407
if (tty->flags & TTY_OSC52QUERY) {
usr.bin/tmux/tty-keys.c
1410
evtimer_del(&tty->clipboard_timer);
usr.bin/tmux/tty-keys.c
1411
tty->flags &= ~TTY_OSC52QUERY;
usr.bin/tmux/tty-keys.c
1423
tty_keys_device_attributes(struct tty *tty, const char *buf, size_t len,
usr.bin/tmux/tty-keys.c
1426
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
1432
if (tty->flags & TTY_HAVEDA)
usr.bin/tmux/tty-keys.c
1496
tty_update_features(tty);
usr.bin/tmux/tty-keys.c
1497
tty->flags |= TTY_HAVEDA;
usr.bin/tmux/tty-keys.c
1507
tty_keys_device_attributes2(struct tty *tty, const char *buf, size_t len,
usr.bin/tmux/tty-keys.c
1510
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
1516
if (tty->flags & TTY_HAVEDA2)
usr.bin/tmux/tty-keys.c
1576
tty_update_features(tty);
usr.bin/tmux/tty-keys.c
1577
tty->flags |= TTY_HAVEDA2;
usr.bin/tmux/tty-keys.c
1587
tty_keys_extended_device_attributes(struct tty *tty, const char *buf,
usr.bin/tmux/tty-keys.c
1590
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
1596
if (tty->flags & TTY_HAVEXDA)
usr.bin/tmux/tty-keys.c
1648
tty_update_features(tty);
usr.bin/tmux/tty-keys.c
1649
tty->flags |= TTY_HAVEXDA;
usr.bin/tmux/tty-keys.c
1659
tty_keys_colours(struct tty *tty, const char *buf, size_t len, size_t *size,
usr.bin/tmux/tty-keys.c
1662
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
1719
tty->flags &= ~TTY_WAITFG;
usr.bin/tmux/tty-keys.c
1726
tty->flags &= ~TTY_WAITBG;
usr.bin/tmux/tty-keys.c
1734
tty_keys_palette(struct tty *tty, const char *buf, size_t len, size_t *size)
usr.bin/tmux/tty-keys.c
1736
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
41
static void tty_keys_add(struct tty *, const char *, key_code);
usr.bin/tmux/tty-keys.c
434
tty_keys_add(struct tty *tty, const char *s, key_code key)
usr.bin/tmux/tty-keys.c
441
if ((tk = tty_keys_find(tty, s, strlen(s), &size)) == NULL) {
usr.bin/tmux/tty-keys.c
443
tty_keys_add1(&tty->key_tree, s, key);
usr.bin/tmux/tty-keys.c
45
static struct tty_key *tty_keys_find(struct tty *, const char *, size_t,
usr.bin/tmux/tty-keys.c
47
static int tty_keys_next1(struct tty *, const char *, size_t, key_code *,
usr.bin/tmux/tty-keys.c
490
tty_keys_build(struct tty *tty)
usr.bin/tmux/tty-keys.c
50
static int tty_keys_extended_key(struct tty *, const char *, size_t,
usr.bin/tmux/tty-keys.c
503
if (tty->key_tree != NULL)
usr.bin/tmux/tty-keys.c
504
tty_keys_free(tty);
usr.bin/tmux/tty-keys.c
505
tty->key_tree = NULL;
usr.bin/tmux/tty-keys.c
514
tty_keys_add(tty, copy, key);
usr.bin/tmux/tty-keys.c
52
static int tty_keys_mouse(struct tty *, const char *, size_t, size_t *,
usr.bin/tmux/tty-keys.c
522
tty_keys_add(tty, s, tdkr->key);
usr.bin/tmux/tty-keys.c
527
s = tty_term_string(tty->term, tdkc->code);
usr.bin/tmux/tty-keys.c
529
tty_keys_add(tty, s, tdkc->key);
usr.bin/tmux/tty-keys.c
539
tty_keys_add(tty, ov->string, KEYC_USER + i);
usr.bin/tmux/tty-keys.c
54
static int tty_keys_clipboard(struct tty *, const char *, size_t,
usr.bin/tmux/tty-keys.c
547
tty_keys_free(struct tty *tty)
usr.bin/tmux/tty-keys.c
549
tty_keys_free1(tty->key_tree);
usr.bin/tmux/tty-keys.c
56
static int tty_keys_device_attributes(struct tty *, const char *, size_t,
usr.bin/tmux/tty-keys.c
567
tty_keys_find(struct tty *tty, const char *buf, size_t len, size_t *size)
usr.bin/tmux/tty-keys.c
570
return (tty_keys_find1(tty->key_tree, buf, len, size));
usr.bin/tmux/tty-keys.c
58
static int tty_keys_device_attributes2(struct tty *, const char *, size_t,
usr.bin/tmux/tty-keys.c
60
static int tty_keys_extended_device_attributes(struct tty *, const char *,
usr.bin/tmux/tty-keys.c
610
tty_keys_next1(struct tty *tty, const char *buf, size_t len, key_code *key,
usr.bin/tmux/tty-keys.c
613
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
62
static int tty_keys_palette(struct tty *, const char *, size_t, size_t *);
usr.bin/tmux/tty-keys.c
624
tk = tty_keys_find(tty, buf, len, size);
usr.bin/tmux/tty-keys.c
664
tty_keys_winsz(struct tty *tty, const char *buf, size_t len, size_t *size)
usr.bin/tmux/tty-keys.c
666
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
674
if (!(tty->flags & TTY_WINSIZEQUERY))
usr.bin/tmux/tty-keys.c
709
tty_set_size(tty, sx, sy, tty->xpixel, tty->ypixel);
usr.bin/tmux/tty-keys.c
715
char_x = (xpixel && tty->sx) ? xpixel / tty->sx : 0;
usr.bin/tmux/tty-keys.c
716
char_y = (ypixel && tty->sy) ? ypixel / tty->sy : 0;
usr.bin/tmux/tty-keys.c
717
tty_set_size(tty, tty->sx, tty->sy, char_x, char_y);
usr.bin/tmux/tty-keys.c
718
tty_invalidate(tty);
usr.bin/tmux/tty-keys.c
720
tty->flags &= ~TTY_WINSIZEQUERY;
usr.bin/tmux/tty-keys.c
732
tty_keys_next(struct tty *tty)
usr.bin/tmux/tty-keys.c
734
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
745
buf = EVBUFFER_DATA(tty->in);
usr.bin/tmux/tty-keys.c
746
len = EVBUFFER_LENGTH(tty->in);
usr.bin/tmux/tty-keys.c
752
switch (tty_keys_clipboard(tty, buf, len, &size)) {
usr.bin/tmux/tty-keys.c
763
switch (tty_keys_device_attributes(tty, buf, len, &size)) {
usr.bin/tmux/tty-keys.c
774
switch (tty_keys_device_attributes2(tty, buf, len, &size)) {
usr.bin/tmux/tty-keys.c
785
switch (tty_keys_extended_device_attributes(tty, buf, len, &size)) {
usr.bin/tmux/tty-keys.c
796
switch (tty_keys_colours(tty, buf, len, &size, &tty->fg, &tty->bg)) {
usr.bin/tmux/tty-keys.c
809
switch (tty_keys_palette(tty, buf, len, &size)) {
usr.bin/tmux/tty-keys.c
820
switch (tty_keys_mouse(tty, buf, len, &size, &m)) {
usr.bin/tmux/tty-keys.c
834
switch (tty_keys_extended_key(tty, buf, len, &size, &key)) {
usr.bin/tmux/tty-keys.c
844
switch (tty_keys_winsz(tty, buf, len, &size)) {
usr.bin/tmux/tty-keys.c
856
n = tty_keys_next1(tty, buf, len, &key, &size, expired);
usr.bin/tmux/tty-keys.c
868
n = tty_keys_next1(tty, buf + 1, len - 1, &key, &size, expired);
usr.bin/tmux/tty-keys.c
911
bspace = tty->tio.c_cc[VERASE];
usr.bin/tmux/tty-keys.c
945
if (tty->flags & TTY_TIMER) {
usr.bin/tmux/tty-keys.c
946
if (evtimer_initialized(&tty->key_timer) &&
usr.bin/tmux/tty-keys.c
947
!evtimer_pending(&tty->key_timer, NULL)) {
usr.bin/tmux/tty-keys.c
958
if ((tty->flags & (TTY_WAITFG|TTY_WAITBG) ||
usr.bin/tmux/tty-keys.c
959
(tty->flags & TTY_ALL_REQUEST_FLAGS) != TTY_ALL_REQUEST_FLAGS) ||
usr.bin/tmux/tty-keys.c
969
if (event_initialized(&tty->key_timer))
usr.bin/tmux/tty-keys.c
970
evtimer_del(&tty->key_timer);
usr.bin/tmux/tty-keys.c
971
evtimer_set(&tty->key_timer, tty_keys_callback, tty);
usr.bin/tmux/tty-keys.c
972
evtimer_add(&tty->key_timer, &tv);
usr.bin/tmux/tty-keys.c
974
tty->flags |= TTY_TIMER;
usr.bin/tmux/tty-keys.c
981
if (event_initialized(&tty->key_timer))
usr.bin/tmux/tty-keys.c
982
evtimer_del(&tty->key_timer);
usr.bin/tmux/tty-keys.c
983
tty->flags &= ~TTY_TIMER;
usr.bin/tmux/tty-term.c
521
tty_term_create(struct tty *tty, char *name, char **caps, u_int ncaps,
usr.bin/tmux/tty-term.c
540
term->tty = tty;
usr.bin/tmux/tty-term.c
600
envent = environ_find(tty->client->environ, "COLORTERM");
usr.bin/tmux/tty-term.c
602
log_debug("%s COLORTERM=%s", tty->client->name, envent->value);
usr.bin/tmux/tty.c
100
memset(tty, 0, sizeof *tty);
usr.bin/tmux/tty.c
101
tty->client = c;
usr.bin/tmux/tty.c
103
tty->cstyle = SCREEN_CURSOR_DEFAULT;
usr.bin/tmux/tty.c
1031
c->tty.oflag = tty_window_offset1(&c->tty, &ox, &oy, &sx, &sy);
usr.bin/tmux/tty.c
1032
if (ox == c->tty.oox &&
usr.bin/tmux/tty.c
1033
oy == c->tty.ooy &&
usr.bin/tmux/tty.c
1034
sx == c->tty.osx &&
usr.bin/tmux/tty.c
1035
sy == c->tty.osy)
usr.bin/tmux/tty.c
1039
__func__, c->name, c->tty.oox, c->tty.ooy, c->tty.osx, c->tty.osy,
usr.bin/tmux/tty.c
104
tty->ccolour = -1;
usr.bin/tmux/tty.c
1042
c->tty.oox = ox;
usr.bin/tmux/tty.c
1043
c->tty.ooy = oy;
usr.bin/tmux/tty.c
1044
c->tty.osx = sx;
usr.bin/tmux/tty.c
1045
c->tty.osy = sy;
usr.bin/tmux/tty.c
105
tty->fg = tty->bg = -1;
usr.bin/tmux/tty.c
1056
tty_large_region(__unused struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1066
tty_fake_bce(const struct tty *tty, const struct grid_cell *gc, u_int bg)
usr.bin/tmux/tty.c
1068
if (tty_term_flag(tty->term, TTYC_BCE))
usr.bin/tmux/tty.c
107
if (tcgetattr(c->fd, &tty->tio) != 0)
usr.bin/tmux/tty.c
1081
tty_redraw_region(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1083
struct client *c = tty->client;
usr.bin/tmux/tty.c
1090
if (tty_large_region(tty, ctx)) {
usr.bin/tmux/tty.c
1097
tty_draw_pane(tty, ctx, i);
usr.bin/tmux/tty.c
1102
tty_is_visible(__unused struct tty *tty, const struct tty_ctx *ctx, u_int px,
usr.bin/tmux/tty.c
1118
tty_clamp_line(struct tty *tty, const struct tty_ctx *ctx, u_int px, u_int py,
usr.bin/tmux/tty.c
1123
if (!tty_is_visible(tty, ctx, px, py, nx, 1))
usr.bin/tmux/tty.c
113
tty_resize(struct tty *tty)
usr.bin/tmux/tty.c
115
struct client *c = tty->client;
usr.bin/tmux/tty.c
1156
tty_clear_line(struct tty *tty, const struct grid_cell *defaults, u_int py,
usr.bin/tmux/tty.c
1159
struct client *c = tty->client;
usr.bin/tmux/tty.c
1171
if (c->overlay_check == NULL && !tty_fake_bce(tty, defaults, bg)) {
usr.bin/tmux/tty.c
1173
if (px + nx >= tty->sx && tty_term_has(tty->term, TTYC_EL)) {
usr.bin/tmux/tty.c
1174
tty_cursor(tty, px, py);
usr.bin/tmux/tty.c
1175
tty_putcode(tty, TTYC_EL);
usr.bin/tmux/tty.c
1180
if (px == 0 && tty_term_has(tty->term, TTYC_EL1)) {
usr.bin/tmux/tty.c
1181
tty_cursor(tty, px + nx - 1, py);
usr.bin/tmux/tty.c
1182
tty_putcode(tty, TTYC_EL1);
usr.bin/tmux/tty.c
1187
if (tty_term_has(tty->term, TTYC_ECH)) {
usr.bin/tmux/tty.c
1188
tty_cursor(tty, px, py);
usr.bin/tmux/tty.c
1189
tty_putcode_i(tty, TTYC_ECH, nx);
usr.bin/tmux/tty.c
1198
r = tty_check_overlay_range(tty, px, py, nx);
usr.bin/tmux/tty.c
1202
tty_cursor(tty, rr->px, py);
usr.bin/tmux/tty.c
1203
tty_repeat_space(tty, rr->nx);
usr.bin/tmux/tty.c
1210
tty_clear_pane_line(struct tty *tty, const struct tty_ctx *ctx, u_int py,
usr.bin/tmux/tty.c
1213
struct client *c = tty->client;
usr.bin/tmux/tty.c
1218
if (tty_clamp_line(tty, ctx, px, py, nx, &i, &x, &rx, &ry))
usr.bin/tmux/tty.c
1219
tty_clear_line(tty, &ctx->defaults, ry, x, rx, bg);
usr.bin/tmux/tty.c
1224
tty_clamp_area(struct tty *tty, const struct tty_ctx *ctx, u_int px, u_int py,
usr.bin/tmux/tty.c
1230
if (!tty_is_visible(tty, ctx, px, py, nx, ny))
usr.bin/tmux/tty.c
1286
tty_clear_area(struct tty *tty, const struct grid_cell *defaults, u_int py,
usr.bin/tmux/tty.c
1289
struct client *c = tty->client;
usr.bin/tmux/tty.c
1300
if (c->overlay_check == NULL && !tty_fake_bce(tty, defaults, bg)) {
usr.bin/tmux/tty.c
1303
px + nx >= tty->sx &&
usr.bin/tmux/tty.c
1304
py + ny >= tty->sy &&
usr.bin/tmux/tty.c
1305
tty_term_has(tty->term, TTYC_ED)) {
usr.bin/tmux/tty.c
1306
tty_cursor(tty, 0, py);
usr.bin/tmux/tty.c
1307
tty_putcode(tty, TTYC_ED);
usr.bin/tmux/tty.c
1316
if ((tty->term->flags & TERM_DECFRA) && !COLOUR_DEFAULT(bg)) {
usr.bin/tmux/tty.c
1319
tty_puts(tty, tmp);
usr.bin/tmux/tty.c
1325
px + nx >= tty->sx &&
usr.bin/tmux/tty.c
1327
tty_term_has(tty->term, TTYC_CSR) &&
usr.bin/tmux/tty.c
1328
tty_term_has(tty->term, TTYC_INDN)) {
usr.bin/tmux/tty.c
1329
tty_region(tty, py, py + ny - 1);
usr.bin/tmux/tty.c
1330
tty_margin_off(tty);
usr.bin/tmux/tty.c
1331
tty_putcode_i(tty, TTYC_INDN, ny);
usr.bin/tmux/tty.c
134
tty->out != NULL &&
usr.bin/tmux/tty.c
1341
tty_term_has(tty->term, TTYC_CSR) &&
usr.bin/tmux/tty.c
1342
tty_use_margin(tty) &&
usr.bin/tmux/tty.c
1343
tty_term_has(tty->term, TTYC_INDN)) {
usr.bin/tmux/tty.c
1344
tty_region(tty, py, py + ny - 1);
usr.bin/tmux/tty.c
1345
tty_margin(tty, px, px + nx - 1);
usr.bin/tmux/tty.c
1346
tty_putcode_i(tty, TTYC_INDN, ny);
usr.bin/tmux/tty.c
135
!(tty->flags & TTY_WINSIZEQUERY) &&
usr.bin/tmux/tty.c
1353
tty_clear_line(tty, defaults, yy, px, nx, bg);
usr.bin/tmux/tty.c
1358
tty_clear_pane_area(struct tty *tty, const struct tty_ctx *ctx, u_int py,
usr.bin/tmux/tty.c
136
(tty->term->flags & TERM_VT100LIKE)) {
usr.bin/tmux/tty.c
1363
if (tty_clamp_area(tty, ctx, px, py, nx, ny, &i, &j, &x, &y, &rx, &ry))
usr.bin/tmux/tty.c
1364
tty_clear_area(tty, &ctx->defaults, y, ry, x, rx, bg);
usr.bin/tmux/tty.c
1368
tty_draw_pane(struct tty *tty, const struct tty_ctx *ctx, u_int py)
usr.bin/tmux/tty.c
137
tty_puts(tty, "\033[18t\033[14t");
usr.bin/tmux/tty.c
1375
log_debug("%s: %s %u %d", __func__, tty->client->name, py, ctx->bigger);
usr.bin/tmux/tty.c
1378
r = tty_check_overlay_range(tty, ctx->xoff, ctx->yoff + py, nx);
usr.bin/tmux/tty.c
138
tty->flags |= TTY_WINSIZEQUERY;
usr.bin/tmux/tty.c
1382
tty_draw_line(tty, s, rr->px - ctx->xoff, py,
usr.bin/tmux/tty.c
1389
if (tty_clamp_line(tty, ctx, 0, py, nx, &i, &x, &rx, &ry)) {
usr.bin/tmux/tty.c
1390
r = tty_check_overlay_range(tty, x, ry, rx);
usr.bin/tmux/tty.c
1394
tty_draw_line(tty, s, i + (rr->px - x), py,
usr.bin/tmux/tty.c
1403
tty_check_codeset(struct tty *tty, const struct grid_cell *gc)
usr.bin/tmux/tty.c
1415
if (tty->client->flags & CLIENT_UTF8)
usr.bin/tmux/tty.c
1420
c = tty_acs_reverse_get(tty, gc->data.data, gc->data.size);
usr.bin/tmux/tty.c
1437
tty_check_overlay(struct tty *tty, u_int px, u_int py)
usr.bin/tmux/tty.c
1445
r = tty_check_overlay_range(tty, px, py, 1);
usr.bin/tmux/tty.c
1451
tty_check_overlay_range(struct tty *tty, u_int px, u_int py, u_int nx)
usr.bin/tmux/tty.c
1453
struct client *c = tty->client;
usr.bin/tmux/tty.c
1456
server_client_ensure_ranges(&tty->r, 1);
usr.bin/tmux/tty.c
1457
tty->r.ranges[0].px = px;
usr.bin/tmux/tty.c
1458
tty->r.ranges[0].nx = nx;
usr.bin/tmux/tty.c
1459
tty->r.used = 1;
usr.bin/tmux/tty.c
1460
return (&tty->r);
usr.bin/tmux/tty.c
1466
tty_sync_start(struct tty *tty)
usr.bin/tmux/tty.c
1468
if (tty->flags & TTY_BLOCK)
usr.bin/tmux/tty.c
1470
if (tty->flags & TTY_SYNCING)
usr.bin/tmux/tty.c
1472
tty->flags |= TTY_SYNCING;
usr.bin/tmux/tty.c
1474
if (tty_term_has(tty->term, TTYC_SYNC)) {
usr.bin/tmux/tty.c
1475
log_debug("%s sync start", tty->client->name);
usr.bin/tmux/tty.c
1476
tty_putcode_i(tty, TTYC_SYNC, 1);
usr.bin/tmux/tty.c
148
tty_set_size(tty, sx, sy, xpixel, ypixel);
usr.bin/tmux/tty.c
1481
tty_sync_end(struct tty *tty)
usr.bin/tmux/tty.c
1483
if (tty->flags & TTY_BLOCK)
usr.bin/tmux/tty.c
1485
if (~tty->flags & TTY_SYNCING)
usr.bin/tmux/tty.c
1487
tty->flags &= ~TTY_SYNCING;
usr.bin/tmux/tty.c
1489
if (tty_term_has(tty->term, TTYC_SYNC)) {
usr.bin/tmux/tty.c
149
tty_invalidate(tty);
usr.bin/tmux/tty.c
1490
log_debug("%s sync end", tty->client->name);
usr.bin/tmux/tty.c
1491
tty_putcode_i(tty, TTYC_SYNC, 2);
usr.bin/tmux/tty.c
1498
if (c->session == NULL || c->tty.term == NULL)
usr.bin/tmux/tty.c
1512
if (c->tty.flags & TTY_FREEZE)
usr.bin/tmux/tty.c
1518
tty_write(void (*cmdfn)(struct tty *, const struct tty_ctx *),
usr.bin/tmux/tty.c
153
tty_set_size(struct tty *tty, u_int sx, u_int sy, u_int xpixel, u_int ypixel)
usr.bin/tmux/tty.c
1533
cmdfn(&c->tty, ctx);
usr.bin/tmux/tty.c
1539
tty_cmd_insertcharacter(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1541
struct client *c = tty->client;
usr.bin/tmux/tty.c
1544
!tty_full_width(tty, ctx) ||
usr.bin/tmux/tty.c
1545
tty_fake_bce(tty, &ctx->defaults, ctx->bg) ||
usr.bin/tmux/tty.c
1546
(!tty_term_has(tty->term, TTYC_ICH) &&
usr.bin/tmux/tty.c
1547
!tty_term_has(tty->term, TTYC_ICH1)) ||
usr.bin/tmux/tty.c
1549
tty_draw_pane(tty, ctx, ctx->ocy);
usr.bin/tmux/tty.c
155
tty->sx = sx;
usr.bin/tmux/tty.c
1553
tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
usr.bin/tmux/tty.c
1556
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy);
usr.bin/tmux/tty.c
1558
tty_emulate_repeat(tty, TTYC_ICH, TTYC_ICH1, ctx->num);
usr.bin/tmux/tty.c
156
tty->sy = sy;
usr.bin/tmux/tty.c
1562
tty_cmd_deletecharacter(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1564
struct client *c = tty->client;
usr.bin/tmux/tty.c
1567
!tty_full_width(tty, ctx) ||
usr.bin/tmux/tty.c
1568
tty_fake_bce(tty, &ctx->defaults, ctx->bg) ||
usr.bin/tmux/tty.c
1569
(!tty_term_has(tty->term, TTYC_DCH) &&
usr.bin/tmux/tty.c
157
tty->xpixel = xpixel;
usr.bin/tmux/tty.c
1570
!tty_term_has(tty->term, TTYC_DCH1)) ||
usr.bin/tmux/tty.c
1572
tty_draw_pane(tty, ctx, ctx->ocy);
usr.bin/tmux/tty.c
1576
tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
usr.bin/tmux/tty.c
1579
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy);
usr.bin/tmux/tty.c
158
tty->ypixel = ypixel;
usr.bin/tmux/tty.c
1581
tty_emulate_repeat(tty, TTYC_DCH, TTYC_DCH1, ctx->num);
usr.bin/tmux/tty.c
1585
tty_cmd_clearcharacter(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1587
tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
usr.bin/tmux/tty.c
1590
tty_clear_pane_line(tty, ctx, ctx->ocy, ctx->ocx, ctx->num, ctx->bg);
usr.bin/tmux/tty.c
1594
tty_cmd_insertline(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1596
struct client *c = tty->client;
usr.bin/tmux/tty.c
1599
!tty_full_width(tty, ctx) ||
usr.bin/tmux/tty.c
1600
tty_fake_bce(tty, &ctx->defaults, ctx->bg) ||
usr.bin/tmux/tty.c
1601
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1602
!tty_term_has(tty->term, TTYC_IL1) ||
usr.bin/tmux/tty.c
1606
tty_redraw_region(tty, ctx);
usr.bin/tmux/tty.c
1610
tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
usr.bin/tmux/tty.c
1613
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
usr.bin/tmux/tty.c
1614
tty_margin_off(tty);
usr.bin/tmux/tty.c
1615
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy);
usr.bin/tmux/tty.c
1617
tty_emulate_repeat(tty, TTYC_IL, TTYC_IL1, ctx->num);
usr.bin/tmux/tty.c
1618
tty->cx = tty->cy = UINT_MAX;
usr.bin/tmux/tty.c
1622
tty_cmd_deleteline(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1624
struct client *c = tty->client;
usr.bin/tmux/tty.c
1627
!tty_full_width(tty, ctx) ||
usr.bin/tmux/tty.c
1628
tty_fake_bce(tty, &ctx->defaults, ctx->bg) ||
usr.bin/tmux/tty.c
1629
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1630
!tty_term_has(tty->term, TTYC_DL1) ||
usr.bin/tmux/tty.c
1634
tty_redraw_region(tty, ctx);
usr.bin/tmux/tty.c
1638
tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
usr.bin/tmux/tty.c
164
struct tty *tty = data;
usr.bin/tmux/tty.c
1641
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
usr.bin/tmux/tty.c
1642
tty_margin_off(tty);
usr.bin/tmux/tty.c
1643
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy);
usr.bin/tmux/tty.c
1645
tty_emulate_repeat(tty, TTYC_DL, TTYC_DL1, ctx->num);
usr.bin/tmux/tty.c
1646
tty->cx = tty->cy = UINT_MAX;
usr.bin/tmux/tty.c
165
struct client *c = tty->client;
usr.bin/tmux/tty.c
1650
tty_cmd_clearline(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1652
tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
usr.bin/tmux/tty.c
1655
tty_clear_pane_line(tty, ctx, ctx->ocy, 0, ctx->sx, ctx->bg);
usr.bin/tmux/tty.c
1659
tty_cmd_clearendofline(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1663
tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
usr.bin/tmux/tty.c
1666
tty_clear_pane_line(tty, ctx, ctx->ocy, ctx->ocx, nx, ctx->bg);
usr.bin/tmux/tty.c
167
size_t size = EVBUFFER_LENGTH(tty->in);
usr.bin/tmux/tty.c
1670
tty_cmd_clearstartofline(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1672
tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
usr.bin/tmux/tty.c
1675
tty_clear_pane_line(tty, ctx, ctx->ocy, 0, ctx->ocx + 1, ctx->bg);
usr.bin/tmux/tty.c
1679
tty_cmd_reverseindex(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1681
struct client *c = tty->client;
usr.bin/tmux/tty.c
1687
(!tty_full_width(tty, ctx) && !tty_use_margin(tty)) ||
usr.bin/tmux/tty.c
1688
tty_fake_bce(tty, &ctx->defaults, 8) ||
usr.bin/tmux/tty.c
1689
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1690
(!tty_term_has(tty->term, TTYC_RI) &&
usr.bin/tmux/tty.c
1691
!tty_term_has(tty->term, TTYC_RIN)) ||
usr.bin/tmux/tty.c
1695
tty_redraw_region(tty, ctx);
usr.bin/tmux/tty.c
1699
tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
usr.bin/tmux/tty.c
170
nread = evbuffer_read(tty->in, c->fd, -1);
usr.bin/tmux/tty.c
1702
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
usr.bin/tmux/tty.c
1703
tty_margin_pane(tty, ctx);
usr.bin/tmux/tty.c
1704
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->orupper);
usr.bin/tmux/tty.c
1706
if (tty_term_has(tty->term, TTYC_RI))
usr.bin/tmux/tty.c
1707
tty_putcode(tty, TTYC_RI);
usr.bin/tmux/tty.c
1709
tty_putcode_i(tty, TTYC_RIN, 1);
usr.bin/tmux/tty.c
1713
tty_cmd_linefeed(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1715
struct client *c = tty->client;
usr.bin/tmux/tty.c
1721
(!tty_full_width(tty, ctx) && !tty_use_margin(tty)) ||
usr.bin/tmux/tty.c
1722
tty_fake_bce(tty, &ctx->defaults, 8) ||
usr.bin/tmux/tty.c
1723
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1727
tty_redraw_region(tty, ctx);
usr.bin/tmux/tty.c
1731
tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
usr.bin/tmux/tty.c
1734
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
usr.bin/tmux/tty.c
1735
tty_margin_pane(tty, ctx);
usr.bin/tmux/tty.c
1744
if (ctx->xoff + ctx->ocx > tty->rright) {
usr.bin/tmux/tty.c
1745
if (!tty_use_margin(tty))
usr.bin/tmux/tty.c
1746
tty_cursor(tty, 0, ctx->yoff + ctx->ocy);
usr.bin/tmux/tty.c
1748
tty_cursor(tty, tty->rright, ctx->yoff + ctx->ocy);
usr.bin/tmux/tty.c
1750
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy);
usr.bin/tmux/tty.c
1752
tty_putc(tty, '\n');
usr.bin/tmux/tty.c
1756
tty_cmd_scrollup(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1758
struct client *c = tty->client;
usr.bin/tmux/tty.c
176
event_del(&tty->event_in);
usr.bin/tmux/tty.c
1762
(!tty_full_width(tty, ctx) && !tty_use_margin(tty)) ||
usr.bin/tmux/tty.c
1763
tty_fake_bce(tty, &ctx->defaults, 8) ||
usr.bin/tmux/tty.c
1764
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1768
tty_redraw_region(tty, ctx);
usr.bin/tmux/tty.c
177
server_client_lost(tty->client);
usr.bin/tmux/tty.c
1772
tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
usr.bin/tmux/tty.c
1775
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
usr.bin/tmux/tty.c
1776
tty_margin_pane(tty, ctx);
usr.bin/tmux/tty.c
1778
if (ctx->num == 1 || !tty_term_has(tty->term, TTYC_INDN)) {
usr.bin/tmux/tty.c
1779
if (!tty_use_margin(tty))
usr.bin/tmux/tty.c
1780
tty_cursor(tty, 0, tty->rlower);
usr.bin/tmux/tty.c
1782
tty_cursor(tty, tty->rright, tty->rlower);
usr.bin/tmux/tty.c
1784
tty_putc(tty, '\n');
usr.bin/tmux/tty.c
1786
if (tty->cy == UINT_MAX)
usr.bin/tmux/tty.c
1787
tty_cursor(tty, 0, 0);
usr.bin/tmux/tty.c
1789
tty_cursor(tty, 0, tty->cy);
usr.bin/tmux/tty.c
1790
tty_putcode_i(tty, TTYC_INDN, ctx->num);
usr.bin/tmux/tty.c
1795
tty_cmd_scrolldown(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1798
struct client *c = tty->client;
usr.bin/tmux/tty.c
1801
(!tty_full_width(tty, ctx) && !tty_use_margin(tty)) ||
usr.bin/tmux/tty.c
1802
tty_fake_bce(tty, &ctx->defaults, 8) ||
usr.bin/tmux/tty.c
1803
!tty_term_has(tty->term, TTYC_CSR) ||
usr.bin/tmux/tty.c
1804
(!tty_term_has(tty->term, TTYC_RI) &&
usr.bin/tmux/tty.c
1805
!tty_term_has(tty->term, TTYC_RIN)) ||
usr.bin/tmux/tty.c
1809
tty_redraw_region(tty, ctx);
usr.bin/tmux/tty.c
1813
tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
usr.bin/tmux/tty.c
1816
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
usr.bin/tmux/tty.c
1817
tty_margin_pane(tty, ctx);
usr.bin/tmux/tty.c
1818
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->orupper);
usr.bin/tmux/tty.c
182
while (tty_keys_next(tty))
usr.bin/tmux/tty.c
1820
if (tty_term_has(tty->term, TTYC_RIN))
usr.bin/tmux/tty.c
1821
tty_putcode_i(tty, TTYC_RIN, ctx->num);
usr.bin/tmux/tty.c
1824
tty_putcode(tty, TTYC_RI);
usr.bin/tmux/tty.c
1829
tty_cmd_clearendofscreen(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1833
tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
usr.bin/tmux/tty.c
1836
tty_region_pane(tty, ctx, 0, ctx->sy - 1);
usr.bin/tmux/tty.c
1837
tty_margin_off(tty);
usr.bin/tmux/tty.c
1844
tty_clear_pane_area(tty, ctx, py, ny, px, nx, ctx->bg);
usr.bin/tmux/tty.c
1850
tty_clear_pane_line(tty, ctx, py, px, nx, ctx->bg);
usr.bin/tmux/tty.c
1854
tty_cmd_clearstartofscreen(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1858
tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
usr.bin/tmux/tty.c
1861
tty_region_pane(tty, ctx, 0, ctx->sy - 1);
usr.bin/tmux/tty.c
1862
tty_margin_off(tty);
usr.bin/tmux/tty.c
1869
tty_clear_pane_area(tty, ctx, py, ny, px, nx, ctx->bg);
usr.bin/tmux/tty.c
1875
tty_clear_pane_line(tty, ctx, py, px, nx, ctx->bg);
usr.bin/tmux/tty.c
1879
tty_cmd_clearscreen(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1883
tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
usr.bin/tmux/tty.c
1886
tty_region_pane(tty, ctx, 0, ctx->sy - 1);
usr.bin/tmux/tty.c
1887
tty_margin_off(tty);
usr.bin/tmux/tty.c
189
struct tty *tty = data;
usr.bin/tmux/tty.c
1894
tty_clear_pane_area(tty, ctx, py, ny, px, nx, ctx->bg);
usr.bin/tmux/tty.c
1898
tty_cmd_alignmenttest(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
190
struct client *c = tty->client;
usr.bin/tmux/tty.c
1907
tty_attributes(tty, &grid_default_cell, &ctx->defaults, ctx->palette,
usr.bin/tmux/tty.c
1910
tty_region_pane(tty, ctx, 0, ctx->sy - 1);
usr.bin/tmux/tty.c
1911
tty_margin_off(tty);
usr.bin/tmux/tty.c
1914
tty_cursor_pane(tty, ctx, 0, j);
usr.bin/tmux/tty.c
1916
tty_putc(tty, 'E');
usr.bin/tmux/tty.c
1921
tty_cmd_cell(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
193
log_debug("%s: %zu discarded", c->name, tty->discarded);
usr.bin/tmux/tty.c
1930
if (!tty_is_visible(tty, ctx, ctx->ocx, ctx->ocy, 1, 1) ||
usr.bin/tmux/tty.c
1931
(gcp->data.width == 1 && !tty_check_overlay(tty, px, py)))
usr.bin/tmux/tty.c
1935
tty_draw_line(tty, s, 0, s->cy, screen_size_x(s),
usr.bin/tmux/tty.c
1942
r = tty_check_overlay_range(tty, px, py, gcp->data.width);
usr.bin/tmux/tty.c
1946
tty_draw_line(tty, s, s->cx, s->cy, gcp->data.width,
usr.bin/tmux/tty.c
1952
if (ctx->xoff + ctx->ocx - ctx->wox > tty->sx - 1 &&
usr.bin/tmux/tty.c
1954
tty_full_width(tty, ctx))
usr.bin/tmux/tty.c
1955
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
usr.bin/tmux/tty.c
1957
tty_margin_off(tty);
usr.bin/tmux/tty.c
1958
tty_cursor_pane_unless_wrap(tty, ctx, ctx->ocx, ctx->ocy);
usr.bin/tmux/tty.c
196
c->discarded += tty->discarded;
usr.bin/tmux/tty.c
1960
tty_cell(tty, ctx->cell, &ctx->defaults, ctx->palette,
usr.bin/tmux/tty.c
1964
tty_invalidate(tty);
usr.bin/tmux/tty.c
1968
tty_cmd_cells(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
1975
if (!tty_is_visible(tty, ctx, ctx->ocx, ctx->ocy, ctx->num, 1))
usr.bin/tmux/tty.c
198
if (tty->discarded < TTY_BLOCK_STOP(tty)) {
usr.bin/tmux/tty.c
1982
!tty_full_width(tty, ctx) ||
usr.bin/tmux/tty.c
1983
(tty->term->flags & TERM_NOAM) ||
usr.bin/tmux/tty.c
1985
ctx->yoff + ctx->ocy != tty->cy + 1 ||
usr.bin/tmux/tty.c
1986
tty->cx < tty->sx ||
usr.bin/tmux/tty.c
1987
tty->cy == tty->rlower)
usr.bin/tmux/tty.c
1988
tty_draw_pane(tty, ctx, ctx->ocy);
usr.bin/tmux/tty.c
199
tty->flags &= ~TTY_BLOCK;
usr.bin/tmux/tty.c
1994
tty_margin_off(tty);
usr.bin/tmux/tty.c
1995
tty_cursor_pane_unless_wrap(tty, ctx, ctx->ocx, ctx->ocy);
usr.bin/tmux/tty.c
1996
tty_attributes(tty, ctx->cell, &ctx->defaults, ctx->palette,
usr.bin/tmux/tty.c
200
tty_invalidate(tty);
usr.bin/tmux/tty.c
2003
r = tty_check_overlay_range(tty, px, py, ctx->num);
usr.bin/tmux/tty.c
2008
tty_cursor_pane_unless_wrap(tty, ctx, cx, ctx->ocy);
usr.bin/tmux/tty.c
2009
tty_putn(tty, cp + rr->px - px, rr->nx, rr->nx);
usr.bin/tmux/tty.c
2015
tty_cmd_setselection(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
2017
tty_set_selection(tty, ctx->ptr2, ctx->ptr, ctx->num);
usr.bin/tmux/tty.c
2021
tty_set_selection(struct tty *tty, const char *clip, const char *buf,
usr.bin/tmux/tty.c
2027
if (~tty->flags & TTY_STARTED)
usr.bin/tmux/tty.c
2029
if (!tty_term_has(tty->term, TTYC_MS))
usr.bin/tmux/tty.c
203
tty->discarded = 0;
usr.bin/tmux/tty.c
2036
tty->flags |= TTY_NOBLOCK;
usr.bin/tmux/tty.c
2037
tty_putcode_ss(tty, TTYC_MS, clip, encoded);
usr.bin/tmux/tty.c
204
evtimer_add(&tty->timer, &tv);
usr.bin/tmux/tty.c
2043
tty_cmd_rawstring(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
2045
tty->flags |= TTY_NOBLOCK;
usr.bin/tmux/tty.c
2046
tty_add(tty, ctx->ptr, ctx->num);
usr.bin/tmux/tty.c
2047
tty_invalidate(tty);
usr.bin/tmux/tty.c
2051
tty_cmd_syncstart(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
2058
tty_sync_start(tty);
usr.bin/tmux/tty.c
2064
if (ctx->num || tty->client->overlay_draw != NULL)
usr.bin/tmux/tty.c
2065
tty_sync_start(tty);
usr.bin/tmux/tty.c
2070
tty_cell(struct tty *tty, const struct grid_cell *gc,
usr.bin/tmux/tty.c
2077
if ((tty->term->flags & TERM_NOAM) &&
usr.bin/tmux/tty.c
2078
tty->cy == tty->sy - 1 &&
usr.bin/tmux/tty.c
2079
tty->cx == tty->sx - 1)
usr.bin/tmux/tty.c
208
tty_block_maybe(struct tty *tty)
usr.bin/tmux/tty.c
2087
gcp = tty_check_codeset(tty, gc);
usr.bin/tmux/tty.c
2088
tty_attributes(tty, gcp, defaults, palette, hl);
usr.bin/tmux/tty.c
2094
tty_putc(tty, *gcp->data.data);
usr.bin/tmux/tty.c
2099
tty_putn(tty, gcp->data.data, gcp->data.size, gcp->data.width);
usr.bin/tmux/tty.c
210
struct client *c = tty->client;
usr.bin/tmux/tty.c
2103
tty_reset(struct tty *tty)
usr.bin/tmux/tty.c
2105
struct grid_cell *gc = &tty->cell;
usr.bin/tmux/tty.c
2109
tty_putcode_ss(tty, TTYC_HLS, "", "");
usr.bin/tmux/tty.c
211
size_t size = EVBUFFER_LENGTH(tty->out);
usr.bin/tmux/tty.c
2110
if ((gc->attr & GRID_ATTR_CHARSET) && tty_acs_needed(tty))
usr.bin/tmux/tty.c
2111
tty_putcode(tty, TTYC_RMACS);
usr.bin/tmux/tty.c
2112
tty_putcode(tty, TTYC_SGR0);
usr.bin/tmux/tty.c
2115
memcpy(&tty->last_cell, &grid_default_cell, sizeof tty->last_cell);
usr.bin/tmux/tty.c
2119
tty_invalidate(struct tty *tty)
usr.bin/tmux/tty.c
2121
memcpy(&tty->cell, &grid_default_cell, sizeof tty->cell);
usr.bin/tmux/tty.c
2122
memcpy(&tty->last_cell, &grid_default_cell, sizeof tty->last_cell);
usr.bin/tmux/tty.c
2124
tty->cx = tty->cy = UINT_MAX;
usr.bin/tmux/tty.c
2125
tty->rupper = tty->rleft = UINT_MAX;
usr.bin/tmux/tty.c
2126
tty->rlower = tty->rright = UINT_MAX;
usr.bin/tmux/tty.c
2128
if (tty->flags & TTY_STARTED) {
usr.bin/tmux/tty.c
2129
if (tty_use_margin(tty))
usr.bin/tmux/tty.c
2130
tty_putcode(tty, TTYC_ENMG);
usr.bin/tmux/tty.c
2131
tty_putcode(tty, TTYC_SGR0);
usr.bin/tmux/tty.c
2133
tty->mode = ALL_MODES;
usr.bin/tmux/tty.c
2134
tty_update_mode(tty, MODE_CURSOR, NULL);
usr.bin/tmux/tty.c
2136
tty_cursor(tty, 0, 0);
usr.bin/tmux/tty.c
2137
tty_region_off(tty);
usr.bin/tmux/tty.c
2138
tty_margin_off(tty);
usr.bin/tmux/tty.c
2140
tty->mode = MODE_CURSOR;
usr.bin/tmux/tty.c
2145
tty_region_off(struct tty *tty)
usr.bin/tmux/tty.c
2147
tty_region(tty, 0, tty->sy - 1);
usr.bin/tmux/tty.c
215
tty->flags &= ~TTY_NOBLOCK;
usr.bin/tmux/tty.c
2152
tty_region_pane(struct tty *tty, const struct tty_ctx *ctx, u_int rupper,
usr.bin/tmux/tty.c
2155
tty_region(tty, ctx->yoff + rupper - ctx->woy,
usr.bin/tmux/tty.c
216
else if (tty->flags & TTY_NOBLOCK)
usr.bin/tmux/tty.c
2161
tty_region(struct tty *tty, u_int rupper, u_int rlower)
usr.bin/tmux/tty.c
2163
if (tty->rlower == rlower && tty->rupper == rupper)
usr.bin/tmux/tty.c
2165
if (!tty_term_has(tty->term, TTYC_CSR))
usr.bin/tmux/tty.c
2168
tty->rupper = rupper;
usr.bin/tmux/tty.c
2169
tty->rlower = rlower;
usr.bin/tmux/tty.c
2177
if (tty->cx >= tty->sx) {
usr.bin/tmux/tty.c
2178
if (tty->cy == UINT_MAX)
usr.bin/tmux/tty.c
2179
tty_cursor(tty, 0, 0);
usr.bin/tmux/tty.c
2181
tty_cursor(tty, 0, tty->cy);
usr.bin/tmux/tty.c
2184
tty_putcode_ii(tty, TTYC_CSR, tty->rupper, tty->rlower);
usr.bin/tmux/tty.c
2185
tty->cx = tty->cy = UINT_MAX;
usr.bin/tmux/tty.c
219
if (size < TTY_BLOCK_START(tty))
usr.bin/tmux/tty.c
2190
tty_margin_off(struct tty *tty)
usr.bin/tmux/tty.c
2192
tty_margin(tty, 0, tty->sx - 1);
usr.bin/tmux/tty.c
2197
tty_margin_pane(struct tty *tty, const struct tty_ctx *ctx)
usr.bin/tmux/tty.c
2199
tty_margin(tty, ctx->xoff - ctx->wox,
usr.bin/tmux/tty.c
2205
tty_margin(struct tty *tty, u_int rleft, u_int rright)
usr.bin/tmux/tty.c
2207
if (!tty_use_margin(tty))
usr.bin/tmux/tty.c
2209
if (tty->rleft == rleft && tty->rright == rright)
usr.bin/tmux/tty.c
2212
tty_putcode_ii(tty, TTYC_CSR, tty->rupper, tty->rlower);
usr.bin/tmux/tty.c
2214
tty->rleft = rleft;
usr.bin/tmux/tty.c
2215
tty->rright = rright;
usr.bin/tmux/tty.c
2217
if (rleft == 0 && rright == tty->sx - 1)
usr.bin/tmux/tty.c
2218
tty_putcode(tty, TTYC_CLMG);
usr.bin/tmux/tty.c
222
if (tty->flags & TTY_BLOCK)
usr.bin/tmux/tty.c
2220
tty_putcode_ii(tty, TTYC_CMG, rleft, rright);
usr.bin/tmux/tty.c
2221
tty->cx = tty->cy = UINT_MAX;
usr.bin/tmux/tty.c
2229
tty_cursor_pane_unless_wrap(struct tty *tty, const struct tty_ctx *ctx,
usr.bin/tmux/tty.c
2233
!tty_full_width(tty, ctx) ||
usr.bin/tmux/tty.c
2234
(tty->term->flags & TERM_NOAM) ||
usr.bin/tmux/tty.c
2236
ctx->yoff + cy != tty->cy + 1 ||
usr.bin/tmux/tty.c
2237
tty->cx < tty->sx ||
usr.bin/tmux/tty.c
2238
tty->cy == tty->rlower)
usr.bin/tmux/tty.c
2239
tty_cursor_pane(tty, ctx, cx, cy);
usr.bin/tmux/tty.c
224
tty->flags |= TTY_BLOCK;
usr.bin/tmux/tty.c
2241
log_debug("%s: will wrap at %u,%u", __func__, tty->cx, tty->cy);
usr.bin/tmux/tty.c
2246
tty_cursor_pane(struct tty *tty, const struct tty_ctx *ctx, u_int cx, u_int cy)
usr.bin/tmux/tty.c
2248
tty_cursor(tty, ctx->xoff + cx - ctx->wox, ctx->yoff + cy - ctx->woy);
usr.bin/tmux/tty.c
2253
tty_cursor(struct tty *tty, u_int cx, u_int cy)
usr.bin/tmux/tty.c
2255
struct tty_term *term = tty->term;
usr.bin/tmux/tty.c
2259
if (tty->flags & TTY_BLOCK)
usr.bin/tmux/tty.c
2262
thisx = tty->cx;
usr.bin/tmux/tty.c
2263
thisy = tty->cy;
usr.bin/tmux/tty.c
2269
if (cx == thisx && cy == thisy && cx == tty->sx)
usr.bin/tmux/tty.c
2271
if (cx > tty->sx - 1) {
usr.bin/tmux/tty.c
2272
log_debug("%s: x too big %u > %u", __func__, cx, tty->sx - 1);
usr.bin/tmux/tty.c
2273
cx = tty->sx - 1;
usr.bin/tmux/tty.c
228
evbuffer_drain(tty->out, size);
usr.bin/tmux/tty.c
2281
if (thisx > tty->sx - 1)
usr.bin/tmux/tty.c
2286
tty_putcode(tty, TTYC_HOME);
usr.bin/tmux/tty.c
2291
if (cx == 0 && cy == thisy + 1 && thisy != tty->rlower &&
usr.bin/tmux/tty.c
2292
(!tty_use_margin(tty) || tty->rleft == 0)) {
usr.bin/tmux/tty.c
2293
tty_putc(tty, '\r');
usr.bin/tmux/tty.c
2294
tty_putc(tty, '\n');
usr.bin/tmux/tty.c
2305
if (cx == 0 && (!tty_use_margin(tty) || tty->rleft == 0)) {
usr.bin/tmux/tty.c
2306
tty_putc(tty, '\r');
usr.bin/tmux/tty.c
231
tty->discarded = 0;
usr.bin/tmux/tty.c
2312
tty_putcode(tty, TTYC_CUB1);
usr.bin/tmux/tty.c
2318
tty_putcode(tty, TTYC_CUF1);
usr.bin/tmux/tty.c
232
evtimer_add(&tty->timer, &tv);
usr.bin/tmux/tty.c
2330
tty_putcode_i(tty, TTYC_HPA, cx);
usr.bin/tmux/tty.c
2334
!tty_use_margin(tty)) {
usr.bin/tmux/tty.c
2336
tty_putcode(tty, TTYC_CUB1);
usr.bin/tmux/tty.c
2337
tty_putcode(tty, TTYC_CUB1);
usr.bin/tmux/tty.c
2340
tty_putcode_i(tty, TTYC_CUB, change);
usr.bin/tmux/tty.c
2344
!tty_use_margin(tty)) {
usr.bin/tmux/tty.c
2345
tty_putcode_i(tty, TTYC_CUF, -change);
usr.bin/tmux/tty.c
2354
if (thisy != tty->rupper &&
usr.bin/tmux/tty.c
2356
tty_putcode(tty, TTYC_CUU1);
usr.bin/tmux/tty.c
2361
if (thisy != tty->rlower &&
usr.bin/tmux/tty.c
2363
tty_putcode(tty, TTYC_CUD1);
usr.bin/tmux/tty.c
2375
(change < 0 && cy - change > tty->rlower) ||
usr.bin/tmux/tty.c
2376
(change > 0 && cy - change < tty->rupper)) {
usr.bin/tmux/tty.c
2378
tty_putcode_i(tty, TTYC_VPA, cy);
usr.bin/tmux/tty.c
2382
tty_putcode_i(tty, TTYC_CUU, change);
usr.bin/tmux/tty.c
2385
tty_putcode_i(tty, TTYC_CUD, -change);
usr.bin/tmux/tty.c
239
struct tty *tty = data;
usr.bin/tmux/tty.c
2392
tty_putcode_ii(tty, TTYC_CUP, cy, cx);
usr.bin/tmux/tty.c
2395
tty->cx = cx;
usr.bin/tmux/tty.c
2396
tty->cy = cy;
usr.bin/tmux/tty.c
240
struct client *c = tty->client;
usr.bin/tmux/tty.c
2400
tty_hyperlink(struct tty *tty, const struct grid_cell *gc,
usr.bin/tmux/tty.c
2405
if (gc->link == tty->cell.link)
usr.bin/tmux/tty.c
2407
tty->cell.link = gc->link;
usr.bin/tmux/tty.c
241
size_t size = EVBUFFER_LENGTH(tty->out);
usr.bin/tmux/tty.c
2413
tty_putcode_ss(tty, TTYC_HLS, "", "");
usr.bin/tmux/tty.c
2415
tty_putcode_ss(tty, TTYC_HLS, id, uri);
usr.bin/tmux/tty.c
2419
tty_attributes(struct tty *tty, const struct grid_cell *gc,
usr.bin/tmux/tty.c
2423
struct grid_cell *tc = &tty->cell, gc2;
usr.bin/tmux/tty.c
2436
if (gc2.attr == tty->last_cell.attr &&
usr.bin/tmux/tty.c
2437
gc2.fg == tty->last_cell.fg &&
usr.bin/tmux/tty.c
2438
gc2.bg == tty->last_cell.bg &&
usr.bin/tmux/tty.c
2439
gc2.us == tty->last_cell.us &&
usr.bin/tmux/tty.c
244
nwrite = evbuffer_write(tty->out, c->fd);
usr.bin/tmux/tty.c
2440
gc2.link == tty->last_cell.link)
usr.bin/tmux/tty.c
2448
if (!tty_term_has(tty->term, TTYC_SETAB)) {
usr.bin/tmux/tty.c
2459
tty_check_fg(tty, palette, &gc2);
usr.bin/tmux/tty.c
2460
tty_check_bg(tty, palette, &gc2);
usr.bin/tmux/tty.c
2461
tty_check_us(tty, palette, &gc2);
usr.bin/tmux/tty.c
2468
tty_reset(tty);
usr.bin/tmux/tty.c
2474
tty_colours(tty, &gc2);
usr.bin/tmux/tty.c
2482
tty_putcode(tty, TTYC_BOLD);
usr.bin/tmux/tty.c
2484
tty_putcode(tty, TTYC_DIM);
usr.bin/tmux/tty.c
2486
tty_set_italics(tty);
usr.bin/tmux/tty.c
2489
tty_putcode(tty, TTYC_SMUL);
usr.bin/tmux/tty.c
2491
tty_putcode_i(tty, TTYC_SMULX, 2);
usr.bin/tmux/tty.c
2493
tty_putcode_i(tty, TTYC_SMULX, 3);
usr.bin/tmux/tty.c
2495
tty_putcode_i(tty, TTYC_SMULX, 4);
usr.bin/tmux/tty.c
2497
tty_putcode_i(tty, TTYC_SMULX, 5);
usr.bin/tmux/tty.c
2500
tty_putcode(tty, TTYC_BLINK);
usr.bin/tmux/tty.c
2502
if (tty_term_has(tty->term, TTYC_REV))
usr.bin/tmux/tty.c
2503
tty_putcode(tty, TTYC_REV);
usr.bin/tmux/tty.c
2504
else if (tty_term_has(tty->term, TTYC_SMSO))
usr.bin/tmux/tty.c
2505
tty_putcode(tty, TTYC_SMSO);
usr.bin/tmux/tty.c
2508
tty_putcode(tty, TTYC_INVIS);
usr.bin/tmux/tty.c
2510
tty_putcode(tty, TTYC_SMXX);
usr.bin/tmux/tty.c
2512
tty_putcode(tty, TTYC_SMOL);
usr.bin/tmux/tty.c
2513
if ((changed & GRID_ATTR_CHARSET) && tty_acs_needed(tty))
usr.bin/tmux/tty.c
2514
tty_putcode(tty, TTYC_SMACS);
usr.bin/tmux/tty.c
2517
tty_hyperlink(tty, gc, hl);
usr.bin/tmux/tty.c
2519
memcpy(&tty->last_cell, &gc2, sizeof tty->last_cell);
usr.bin/tmux/tty.c
2523
tty_colours(struct tty *tty, const struct grid_cell *gc)
usr.bin/tmux/tty.c
2525
struct grid_cell *tc = &tty->cell;
usr.bin/tmux/tty.c
2542
if (!tty_term_flag(tty->term, TTYC_AX))
usr.bin/tmux/tty.c
2543
tty_reset(tty);
usr.bin/tmux/tty.c
2546
tty_puts(tty, "\033[39m");
usr.bin/tmux/tty.c
2550
tty_puts(tty, "\033[49m");
usr.bin/tmux/tty.c
2558
tty_colours_fg(tty, gc);
usr.bin/tmux/tty.c
256
} else if (tty_block_maybe(tty))
usr.bin/tmux/tty.c
2565
tty_colours_bg(tty, gc);
usr.bin/tmux/tty.c
2569
tty_colours_us(tty, gc);
usr.bin/tmux/tty.c
2573
tty_check_fg(struct tty *tty, struct colour_palette *palette,
usr.bin/tmux/tty.c
2589
!tty_term_has(tty->term, TTYC_NOBR))
usr.bin/tmux/tty.c
259
if (EVBUFFER_LENGTH(tty->out) != 0)
usr.bin/tmux/tty.c
2598
if (tty->term->flags & TERM_RGBCOLOURS)
usr.bin/tmux/tty.c
260
event_add(&tty->event_out, NULL);
usr.bin/tmux/tty.c
2605
if (tty->term->flags & TERM_256COLOURS)
usr.bin/tmux/tty.c
2608
colours = tty_term_number(tty->term, TTYC_COLORS);
usr.bin/tmux/tty.c
264
tty_open(struct tty *tty, char **cause)
usr.bin/tmux/tty.c
2642
tty_check_bg(struct tty *tty, struct colour_palette *palette,
usr.bin/tmux/tty.c
2658
if (tty->term->flags & TERM_RGBCOLOURS)
usr.bin/tmux/tty.c
266
struct client *c = tty->client;
usr.bin/tmux/tty.c
2665
if (tty->term->flags & TERM_256COLOURS)
usr.bin/tmux/tty.c
2668
colours = tty_term_number(tty->term, TTYC_COLORS);
usr.bin/tmux/tty.c
268
tty->term = tty_term_create(tty, c->term_name, c->term_caps,
usr.bin/tmux/tty.c
2694
tty_check_us(__unused struct tty *tty, struct colour_palette *palette,
usr.bin/tmux/tty.c
270
if (tty->term == NULL) {
usr.bin/tmux/tty.c
2706
if (!tty_term_has(tty->term, TTYC_SETULC1)) {
usr.bin/tmux/tty.c
271
tty_close(tty);
usr.bin/tmux/tty.c
2715
tty_colours_fg(struct tty *tty, const struct grid_cell *gc)
usr.bin/tmux/tty.c
2717
struct grid_cell *tc = &tty->cell;
usr.bin/tmux/tty.c
2724
if (tty->cell.fg >= 90 &&
usr.bin/tmux/tty.c
2725
tty->cell.bg <= 97 &&
usr.bin/tmux/tty.c
2727
tty_reset(tty);
usr.bin/tmux/tty.c
2731
if (tty_try_colour(tty, gc->fg, "38") == 0)
usr.bin/tmux/tty.c
2739
if (tty->term->flags & TERM_256COLOURS) {
usr.bin/tmux/tty.c
274
tty->flags |= TTY_OPENED;
usr.bin/tmux/tty.c
2741
tty_puts(tty, s);
usr.bin/tmux/tty.c
2743
tty_putcode_i(tty, TTYC_SETAF, gc->fg - 90 + 8);
usr.bin/tmux/tty.c
2748
tty_putcode_i(tty, TTYC_SETAF, gc->fg);
usr.bin/tmux/tty.c
2756
tty_colours_bg(struct tty *tty, const struct grid_cell *gc)
usr.bin/tmux/tty.c
2758
struct grid_cell *tc = &tty->cell;
usr.bin/tmux/tty.c
276
tty->flags &= ~(TTY_NOCURSOR|TTY_FREEZE|TTY_BLOCK|TTY_TIMER);
usr.bin/tmux/tty.c
2763
if (tty_try_colour(tty, gc->bg, "48") == 0)
usr.bin/tmux/tty.c
2771
if (tty->term->flags & TERM_256COLOURS) {
usr.bin/tmux/tty.c
2773
tty_puts(tty, s);
usr.bin/tmux/tty.c
2775
tty_putcode_i(tty, TTYC_SETAB, gc->bg - 90 + 8);
usr.bin/tmux/tty.c
278
event_set(&tty->event_in, c->fd, EV_PERSIST|EV_READ,
usr.bin/tmux/tty.c
2780
tty_putcode_i(tty, TTYC_SETAB, gc->bg);
usr.bin/tmux/tty.c
2788
tty_colours_us(struct tty *tty, const struct grid_cell *gc)
usr.bin/tmux/tty.c
279
tty_read_callback, tty);
usr.bin/tmux/tty.c
2790
struct grid_cell *tc = &tty->cell;
usr.bin/tmux/tty.c
2796
tty_putcode(tty, TTYC_OL);
usr.bin/tmux/tty.c
280
tty->in = evbuffer_new();
usr.bin/tmux/tty.c
2808
tty_putcode_i(tty, TTYC_SETULC1, c & ~COLOUR_FLAG_256);
usr.bin/tmux/tty.c
281
if (tty->in == NULL)
usr.bin/tmux/tty.c
2823
if (tty_term_has(tty->term, TTYC_SETULC))
usr.bin/tmux/tty.c
2824
tty_putcode_i(tty, TTYC_SETULC, c);
usr.bin/tmux/tty.c
2825
else if (tty_term_has(tty->term, TTYC_SETAL) &&
usr.bin/tmux/tty.c
2826
tty_term_has(tty->term, TTYC_RGB))
usr.bin/tmux/tty.c
2827
tty_putcode_i(tty, TTYC_SETAL, c);
usr.bin/tmux/tty.c
2835
tty_try_colour(struct tty *tty, int colour, const char *type)
usr.bin/tmux/tty.c
284
event_set(&tty->event_out, c->fd, EV_WRITE, tty_write_callback, tty);
usr.bin/tmux/tty.c
2840
if (*type == '3' && tty_term_has(tty->term, TTYC_SETAF))
usr.bin/tmux/tty.c
2841
tty_putcode_i(tty, TTYC_SETAF, colour & 0xff);
usr.bin/tmux/tty.c
2842
else if (tty_term_has(tty->term, TTYC_SETAB))
usr.bin/tmux/tty.c
2843
tty_putcode_i(tty, TTYC_SETAB, colour & 0xff);
usr.bin/tmux/tty.c
2849
if (*type == '3' && tty_term_has(tty->term, TTYC_SETRGBF))
usr.bin/tmux/tty.c
285
tty->out = evbuffer_new();
usr.bin/tmux/tty.c
2850
tty_putcode_iii(tty, TTYC_SETRGBF, r, g, b);
usr.bin/tmux/tty.c
2851
else if (tty_term_has(tty->term, TTYC_SETRGBB))
usr.bin/tmux/tty.c
2852
tty_putcode_iii(tty, TTYC_SETRGBB, r, g, b);
usr.bin/tmux/tty.c
286
if (tty->out == NULL)
usr.bin/tmux/tty.c
289
evtimer_set(&tty->clipboard_timer, tty_clipboard_query_callback, tty);
usr.bin/tmux/tty.c
290
evtimer_set(&tty->start_timer, tty_start_timer_callback, tty);
usr.bin/tmux/tty.c
2905
tty_default_attributes(struct tty *tty, const struct grid_cell *defaults,
usr.bin/tmux/tty.c
291
evtimer_set(&tty->timer, tty_timer_callback, tty);
usr.bin/tmux/tty.c
2912
tty_attributes(tty, &gc, defaults, palette, hl);
usr.bin/tmux/tty.c
2918
struct tty *tty = data;
usr.bin/tmux/tty.c
2920
tty->flags &= ~TTY_OSC52QUERY;
usr.bin/tmux/tty.c
2924
tty_clipboard_query(struct tty *tty)
usr.bin/tmux/tty.c
2928
if ((tty->flags & TTY_STARTED) && (~tty->flags & TTY_OSC52QUERY)) {
usr.bin/tmux/tty.c
2929
tty_putcode_ss(tty, TTYC_MS, "", "?");
usr.bin/tmux/tty.c
293
tty_start_tty(tty);
usr.bin/tmux/tty.c
2930
tty->flags |= TTY_OSC52QUERY;
usr.bin/tmux/tty.c
2931
evtimer_add(&tty->clipboard_timer, &tv);
usr.bin/tmux/tty.c
294
tty_keys_build(tty);
usr.bin/tmux/tty.c
302
struct tty *tty = data;
usr.bin/tmux/tty.c
303
struct client *c = tty->client;
usr.bin/tmux/tty.c
307
if ((tty->flags & (TTY_HAVEDA|TTY_HAVEDA2|TTY_HAVEXDA)) == 0)
usr.bin/tmux/tty.c
308
tty_update_features(tty);
usr.bin/tmux/tty.c
309
tty->flags |= TTY_ALL_REQUEST_FLAGS;
usr.bin/tmux/tty.c
311
tty->flags &= ~(TTY_WAITBG|TTY_WAITFG);
usr.bin/tmux/tty.c
315
tty_start_start_timer(struct tty *tty)
usr.bin/tmux/tty.c
317
struct client *c = tty->client;
usr.bin/tmux/tty.c
321
evtimer_del(&tty->start_timer);
usr.bin/tmux/tty.c
322
evtimer_add(&tty->start_timer, &tv);
usr.bin/tmux/tty.c
326
tty_start_tty(struct tty *tty)
usr.bin/tmux/tty.c
328
struct client *c = tty->client;
usr.bin/tmux/tty.c
332
event_add(&tty->event_in, NULL);
usr.bin/tmux/tty.c
334
memcpy(&tio, &tty->tio, sizeof tio);
usr.bin/tmux/tty.c
345
tty_putcode(tty, TTYC_SMCUP);
usr.bin/tmux/tty.c
347
tty_putcode(tty, TTYC_SMKX);
usr.bin/tmux/tty.c
348
tty_putcode(tty, TTYC_CLEAR);
usr.bin/tmux/tty.c
350
if (tty_acs_needed(tty)) {
usr.bin/tmux/tty.c
352
tty_putcode(tty, TTYC_ENACS);
usr.bin/tmux/tty.c
356
tty_putcode(tty, TTYC_CNORM);
usr.bin/tmux/tty.c
357
if (tty_term_has(tty->term, TTYC_KMOUS)) {
usr.bin/tmux/tty.c
358
tty_puts(tty, "\033[?1000l\033[?1002l\033[?1003l");
usr.bin/tmux/tty.c
359
tty_puts(tty, "\033[?1006l\033[?1005l");
usr.bin/tmux/tty.c
361
if (tty_term_has(tty->term, TTYC_ENBP))
usr.bin/tmux/tty.c
362
tty_putcode(tty, TTYC_ENBP);
usr.bin/tmux/tty.c
364
if (tty->term->flags & TERM_VT100LIKE) {
usr.bin/tmux/tty.c
366
tty_puts(tty, "\033[?2031h\033[?996n");
usr.bin/tmux/tty.c
369
tty_start_start_timer(tty);
usr.bin/tmux/tty.c
371
tty->flags |= TTY_STARTED;
usr.bin/tmux/tty.c
372
tty_invalidate(tty);
usr.bin/tmux/tty.c
374
if (tty->ccolour != -1)
usr.bin/tmux/tty.c
375
tty_force_cursor_colour(tty, -1);
usr.bin/tmux/tty.c
377
tty->mouse_drag_flag = 0;
usr.bin/tmux/tty.c
378
tty->mouse_drag_update = NULL;
usr.bin/tmux/tty.c
379
tty->mouse_drag_release = NULL;
usr.bin/tmux/tty.c
383
tty_send_requests(struct tty *tty)
usr.bin/tmux/tty.c
385
if (~tty->flags & TTY_STARTED)
usr.bin/tmux/tty.c
388
if (tty->term->flags & TERM_VT100LIKE) {
usr.bin/tmux/tty.c
389
if (~tty->flags & TTY_HAVEDA)
usr.bin/tmux/tty.c
390
tty_puts(tty, "\033[c");
usr.bin/tmux/tty.c
391
if (~tty->flags & TTY_HAVEDA2)
usr.bin/tmux/tty.c
392
tty_puts(tty, "\033[>c");
usr.bin/tmux/tty.c
393
if (~tty->flags & TTY_HAVEXDA)
usr.bin/tmux/tty.c
394
tty_puts(tty, "\033[>q");
usr.bin/tmux/tty.c
395
tty_puts(tty, "\033]10;?\033\\\033]11;?\033\\");
usr.bin/tmux/tty.c
396
tty->flags |= (TTY_WAITBG|TTY_WAITFG);
usr.bin/tmux/tty.c
398
tty->flags |= TTY_ALL_REQUEST_FLAGS;
usr.bin/tmux/tty.c
399
tty->last_requests = time(NULL);
usr.bin/tmux/tty.c
40
static void tty_set_italics(struct tty *);
usr.bin/tmux/tty.c
403
tty_repeat_requests(struct tty *tty, int force)
usr.bin/tmux/tty.c
405
struct client *c = tty->client;
usr.bin/tmux/tty.c
407
u_int n = t - tty->last_requests;
usr.bin/tmux/tty.c
409
if (~tty->flags & TTY_STARTED)
usr.bin/tmux/tty.c
41
static int tty_try_colour(struct tty *, int, const char *);
usr.bin/tmux/tty.c
419
tty->last_requests = t;
usr.bin/tmux/tty.c
42
static void tty_force_cursor_colour(struct tty *, int);
usr.bin/tmux/tty.c
421
if (tty->term->flags & TERM_VT100LIKE) {
usr.bin/tmux/tty.c
422
tty_puts(tty, "\033]10;?\033\\\033]11;?\033\\");
usr.bin/tmux/tty.c
423
tty->flags |= (TTY_WAITBG|TTY_WAITFG);
usr.bin/tmux/tty.c
425
tty_start_start_timer(tty);
usr.bin/tmux/tty.c
429
tty_stop_tty(struct tty *tty)
usr.bin/tmux/tty.c
43
static void tty_cursor_pane(struct tty *, const struct tty_ctx *, u_int,
usr.bin/tmux/tty.c
431
struct client *c = tty->client;
usr.bin/tmux/tty.c
434
if (!(tty->flags & TTY_STARTED))
usr.bin/tmux/tty.c
436
tty->flags &= ~TTY_STARTED;
usr.bin/tmux/tty.c
438
evtimer_del(&tty->start_timer);
usr.bin/tmux/tty.c
439
evtimer_del(&tty->clipboard_timer);
usr.bin/tmux/tty.c
441
event_del(&tty->timer);
usr.bin/tmux/tty.c
442
tty->flags &= ~TTY_BLOCK;
usr.bin/tmux/tty.c
444
event_del(&tty->event_in);
usr.bin/tmux/tty.c
445
event_del(&tty->event_out);
usr.bin/tmux/tty.c
45
static void tty_cursor_pane_unless_wrap(struct tty *,
usr.bin/tmux/tty.c
454
if (tcsetattr(c->fd, TCSANOW, &tty->tio) == -1)
usr.bin/tmux/tty.c
457
tty_raw(tty, tty_term_string_ii(tty->term, TTYC_CSR, 0, ws.ws_row - 1));
usr.bin/tmux/tty.c
458
if (tty_acs_needed(tty))
usr.bin/tmux/tty.c
459
tty_raw(tty, tty_term_string(tty->term, TTYC_RMACS));
usr.bin/tmux/tty.c
460
tty_raw(tty, tty_term_string(tty->term, TTYC_SGR0));
usr.bin/tmux/tty.c
461
tty_raw(tty, tty_term_string(tty->term, TTYC_RMKX));
usr.bin/tmux/tty.c
462
tty_raw(tty, tty_term_string(tty->term, TTYC_CLEAR));
usr.bin/tmux/tty.c
463
if (tty->cstyle != SCREEN_CURSOR_DEFAULT) {
usr.bin/tmux/tty.c
464
if (tty_term_has(tty->term, TTYC_SE))
usr.bin/tmux/tty.c
465
tty_raw(tty, tty_term_string(tty->term, TTYC_SE));
usr.bin/tmux/tty.c
466
else if (tty_term_has(tty->term, TTYC_SS))
usr.bin/tmux/tty.c
467
tty_raw(tty, tty_term_string_i(tty->term, TTYC_SS, 0));
usr.bin/tmux/tty.c
469
if (tty->ccolour != -1)
usr.bin/tmux/tty.c
47
static void tty_colours(struct tty *, const struct grid_cell *);
usr.bin/tmux/tty.c
470
tty_raw(tty, tty_term_string(tty->term, TTYC_CR));
usr.bin/tmux/tty.c
472
tty_raw(tty, tty_term_string(tty->term, TTYC_CNORM));
usr.bin/tmux/tty.c
473
if (tty_term_has(tty->term, TTYC_KMOUS)) {
usr.bin/tmux/tty.c
474
tty_raw(tty, "\033[?1000l\033[?1002l\033[?1003l");
usr.bin/tmux/tty.c
475
tty_raw(tty, "\033[?1006l\033[?1005l");
usr.bin/tmux/tty.c
477
if (tty_term_has(tty->term, TTYC_DSBP))
usr.bin/tmux/tty.c
478
tty_raw(tty, tty_term_string(tty->term, TTYC_DSBP));
usr.bin/tmux/tty.c
48
static void tty_check_fg(struct tty *, struct colour_palette *,
usr.bin/tmux/tty.c
480
if (tty->term->flags & TERM_VT100LIKE)
usr.bin/tmux/tty.c
481
tty_raw(tty, "\033[?7727l");
usr.bin/tmux/tty.c
482
tty_raw(tty, tty_term_string(tty->term, TTYC_DSFCS));
usr.bin/tmux/tty.c
483
tty_raw(tty, tty_term_string(tty->term, TTYC_DSEKS));
usr.bin/tmux/tty.c
485
if (tty_use_margin(tty))
usr.bin/tmux/tty.c
486
tty_raw(tty, tty_term_string(tty->term, TTYC_DSMG));
usr.bin/tmux/tty.c
487
tty_raw(tty, tty_term_string(tty->term, TTYC_RMCUP));
usr.bin/tmux/tty.c
489
if (tty->term->flags & TERM_VT100LIKE)
usr.bin/tmux/tty.c
490
tty_raw(tty, "\033[?2031l");
usr.bin/tmux/tty.c
496
tty_close(struct tty *tty)
usr.bin/tmux/tty.c
498
if (event_initialized(&tty->key_timer))
usr.bin/tmux/tty.c
499
evtimer_del(&tty->key_timer);
usr.bin/tmux/tty.c
50
static void tty_check_bg(struct tty *, struct colour_palette *,
usr.bin/tmux/tty.c
500
tty_stop_tty(tty);
usr.bin/tmux/tty.c
502
if (tty->flags & TTY_OPENED) {
usr.bin/tmux/tty.c
503
evbuffer_free(tty->in);
usr.bin/tmux/tty.c
504
event_del(&tty->event_in);
usr.bin/tmux/tty.c
505
evbuffer_free(tty->out);
usr.bin/tmux/tty.c
506
event_del(&tty->event_out);
usr.bin/tmux/tty.c
508
tty_term_free(tty->term);
usr.bin/tmux/tty.c
509
tty_keys_free(tty);
usr.bin/tmux/tty.c
511
tty->flags &= ~TTY_OPENED;
usr.bin/tmux/tty.c
516
tty_free(struct tty *tty)
usr.bin/tmux/tty.c
518
tty_close(tty);
usr.bin/tmux/tty.c
52
static void tty_check_us(struct tty *, struct colour_palette *,
usr.bin/tmux/tty.c
520
free(tty->r.ranges);
usr.bin/tmux/tty.c
524
tty_update_features(struct tty *tty)
usr.bin/tmux/tty.c
526
struct client *c = tty->client;
usr.bin/tmux/tty.c
528
if (tty_apply_features(tty->term, c->term_features))
usr.bin/tmux/tty.c
529
tty_term_apply_overrides(tty->term);
usr.bin/tmux/tty.c
531
if (tty_use_margin(tty))
usr.bin/tmux/tty.c
532
tty_putcode(tty, TTYC_ENMG);
usr.bin/tmux/tty.c
534
tty_puts(tty, tty_term_string(tty->term, TTYC_ENEKS));
usr.bin/tmux/tty.c
536
tty_puts(tty, tty_term_string(tty->term, TTYC_ENFCS));
usr.bin/tmux/tty.c
537
if (tty->term->flags & TERM_VT100LIKE)
usr.bin/tmux/tty.c
538
tty_puts(tty, "\033[?7727h");
usr.bin/tmux/tty.c
54
static void tty_colours_fg(struct tty *, const struct grid_cell *);
usr.bin/tmux/tty.c
546
tty_invalidate(tty);
usr.bin/tmux/tty.c
55
static void tty_colours_bg(struct tty *, const struct grid_cell *);
usr.bin/tmux/tty.c
550
tty_raw(struct tty *tty, const char *s)
usr.bin/tmux/tty.c
552
struct client *c = tty->client;
usr.bin/tmux/tty.c
56
static void tty_colours_us(struct tty *, const struct grid_cell *);
usr.bin/tmux/tty.c
571
tty_putcode(struct tty *tty, enum tty_code_code code)
usr.bin/tmux/tty.c
573
tty_puts(tty, tty_term_string(tty->term, code));
usr.bin/tmux/tty.c
577
tty_putcode_i(struct tty *tty, enum tty_code_code code, int a)
usr.bin/tmux/tty.c
58
static void tty_region_pane(struct tty *, const struct tty_ctx *, u_int,
usr.bin/tmux/tty.c
581
tty_puts(tty, tty_term_string_i(tty->term, code, a));
usr.bin/tmux/tty.c
585
tty_putcode_ii(struct tty *tty, enum tty_code_code code, int a, int b)
usr.bin/tmux/tty.c
589
tty_puts(tty, tty_term_string_ii(tty->term, code, a, b));
usr.bin/tmux/tty.c
593
tty_putcode_iii(struct tty *tty, enum tty_code_code code, int a, int b, int c)
usr.bin/tmux/tty.c
597
tty_puts(tty, tty_term_string_iii(tty->term, code, a, b, c));
usr.bin/tmux/tty.c
60
static void tty_region(struct tty *, u_int, u_int);
usr.bin/tmux/tty.c
601
tty_putcode_s(struct tty *tty, enum tty_code_code code, const char *a)
usr.bin/tmux/tty.c
604
tty_puts(tty, tty_term_string_s(tty->term, code, a));
usr.bin/tmux/tty.c
608
tty_putcode_ss(struct tty *tty, enum tty_code_code code, const char *a,
usr.bin/tmux/tty.c
61
static void tty_margin_pane(struct tty *, const struct tty_ctx *);
usr.bin/tmux/tty.c
612
tty_puts(tty, tty_term_string_ss(tty->term, code, a, b));
usr.bin/tmux/tty.c
616
tty_add(struct tty *tty, const char *buf, size_t len)
usr.bin/tmux/tty.c
618
struct client *c = tty->client;
usr.bin/tmux/tty.c
62
static void tty_margin(struct tty *, u_int, u_int);
usr.bin/tmux/tty.c
620
if (tty->flags & TTY_BLOCK) {
usr.bin/tmux/tty.c
621
tty->discarded += len;
usr.bin/tmux/tty.c
625
evbuffer_add(tty->out, buf, len);
usr.bin/tmux/tty.c
63
static int tty_large_region(struct tty *, const struct tty_ctx *);
usr.bin/tmux/tty.c
631
if ((tty->flags & TTY_STARTED) &&
usr.bin/tmux/tty.c
632
!event_pending(&tty->event_out, EV_WRITE, NULL))
usr.bin/tmux/tty.c
633
event_add(&tty->event_out, NULL);
usr.bin/tmux/tty.c
637
tty_puts(struct tty *tty, const char *s)
usr.bin/tmux/tty.c
64
static void tty_redraw_region(struct tty *, const struct tty_ctx *);
usr.bin/tmux/tty.c
640
tty_add(tty, s, strlen(s));
usr.bin/tmux/tty.c
644
tty_putc(struct tty *tty, u_char ch)
usr.bin/tmux/tty.c
648
if ((tty->term->flags & TERM_NOAM) &&
usr.bin/tmux/tty.c
65
static void tty_emulate_repeat(struct tty *, enum tty_code_code,
usr.bin/tmux/tty.c
650
tty->cy == tty->sy - 1 &&
usr.bin/tmux/tty.c
651
tty->cx + 1 >= tty->sx)
usr.bin/tmux/tty.c
654
if (tty->cell.attr & GRID_ATTR_CHARSET) {
usr.bin/tmux/tty.c
655
acs = tty_acs_get(tty, ch);
usr.bin/tmux/tty.c
657
tty_add(tty, acs, strlen(acs));
usr.bin/tmux/tty.c
659
tty_add(tty, &ch, 1);
usr.bin/tmux/tty.c
661
tty_add(tty, &ch, 1);
usr.bin/tmux/tty.c
664
if (tty->cx >= tty->sx) {
usr.bin/tmux/tty.c
665
tty->cx = 1;
usr.bin/tmux/tty.c
666
if (tty->cy != tty->rlower)
usr.bin/tmux/tty.c
667
tty->cy++;
usr.bin/tmux/tty.c
67
static void tty_draw_pane(struct tty *, const struct tty_ctx *, u_int);
usr.bin/tmux/tty.c
674
if (tty->term->flags & TERM_NOAM)
usr.bin/tmux/tty.c
675
tty_putcode_ii(tty, TTYC_CUP, tty->cy, tty->cx);
usr.bin/tmux/tty.c
677
tty->cx++;
usr.bin/tmux/tty.c
68
static int tty_check_overlay(struct tty *, u_int, u_int);
usr.bin/tmux/tty.c
682
tty_putn(struct tty *tty, const void *buf, size_t len, u_int width)
usr.bin/tmux/tty.c
684
if ((tty->term->flags & TERM_NOAM) &&
usr.bin/tmux/tty.c
685
tty->cy == tty->sy - 1 &&
usr.bin/tmux/tty.c
686
tty->cx + len >= tty->sx)
usr.bin/tmux/tty.c
687
len = tty->sx - tty->cx - 1;
usr.bin/tmux/tty.c
689
tty_add(tty, buf, len);
usr.bin/tmux/tty.c
690
if (tty->cx + width > tty->sx) {
usr.bin/tmux/tty.c
691
tty->cx = (tty->cx + width) - tty->sx;
usr.bin/tmux/tty.c
692
if (tty->cx <= tty->sx)
usr.bin/tmux/tty.c
693
tty->cy++;
usr.bin/tmux/tty.c
695
tty->cx = tty->cy = UINT_MAX;
usr.bin/tmux/tty.c
697
tty->cx += width;
usr.bin/tmux/tty.c
70
#define tty_use_margin(tty) \
usr.bin/tmux/tty.c
701
tty_set_italics(struct tty *tty)
usr.bin/tmux/tty.c
705
if (tty_term_has(tty->term, TTYC_SITM)) {
usr.bin/tmux/tty.c
708
tty_putcode(tty, TTYC_SITM);
usr.bin/tmux/tty.c
71
(tty->term->flags & TERM_DECSLRM)
usr.bin/tmux/tty.c
712
tty_putcode(tty, TTYC_SMSO);
usr.bin/tmux/tty.c
716
tty_set_title(struct tty *tty, const char *title)
usr.bin/tmux/tty.c
718
if (!tty_term_has(tty->term, TTYC_TSL) ||
usr.bin/tmux/tty.c
719
!tty_term_has(tty->term, TTYC_FSL))
usr.bin/tmux/tty.c
72
#define tty_full_width(tty, ctx) \
usr.bin/tmux/tty.c
722
tty_putcode(tty, TTYC_TSL);
usr.bin/tmux/tty.c
723
tty_puts(tty, title);
usr.bin/tmux/tty.c
724
tty_putcode(tty, TTYC_FSL);
usr.bin/tmux/tty.c
728
tty_set_path(struct tty *tty, const char *title)
usr.bin/tmux/tty.c
73
((ctx)->xoff == 0 && (ctx)->sx >= (tty)->sx)
usr.bin/tmux/tty.c
730
if (!tty_term_has(tty->term, TTYC_SWD) ||
usr.bin/tmux/tty.c
731
!tty_term_has(tty->term, TTYC_FSL))
usr.bin/tmux/tty.c
734
tty_putcode(tty, TTYC_SWD);
usr.bin/tmux/tty.c
735
tty_puts(tty, title);
usr.bin/tmux/tty.c
736
tty_putcode(tty, TTYC_FSL);
usr.bin/tmux/tty.c
740
tty_force_cursor_colour(struct tty *tty, int c)
usr.bin/tmux/tty.c
747
if (c == tty->ccolour)
usr.bin/tmux/tty.c
750
tty_putcode(tty, TTYC_CR);
usr.bin/tmux/tty.c
754
tty_putcode_s(tty, TTYC_CS, s);
usr.bin/tmux/tty.c
756
tty->ccolour = c;
usr.bin/tmux/tty.c
76
#define TTY_BLOCK_START(tty) (1 + ((tty)->sx * (tty)->sy) * 8)
usr.bin/tmux/tty.c
760
tty_update_cursor(struct tty *tty, int mode, struct screen *s)
usr.bin/tmux/tty.c
77
#define TTY_BLOCK_STOP(tty) (1 + ((tty)->sx * (tty)->sy) / 8)
usr.bin/tmux/tty.c
770
tty_force_cursor_colour(tty, ccolour);
usr.bin/tmux/tty.c
775
if (tty->mode & MODE_CURSOR)
usr.bin/tmux/tty.c
776
tty_putcode(tty, TTYC_CIVIS);
usr.bin/tmux/tty.c
782
cstyle = tty->cstyle;
usr.bin/tmux/tty.c
797
changed = cmode ^ tty->mode;
usr.bin/tmux/tty.c
798
if ((changed & CURSOR_MODES) == 0 && cstyle == tty->cstyle)
usr.bin/tmux/tty.c
808
tty_putcode(tty, TTYC_CNORM);
usr.bin/tmux/tty.c
811
if (tty->cstyle != SCREEN_CURSOR_DEFAULT) {
usr.bin/tmux/tty.c
812
if (tty_term_has(tty->term, TTYC_SE))
usr.bin/tmux/tty.c
813
tty_putcode(tty, TTYC_SE);
usr.bin/tmux/tty.c
815
tty_putcode_i(tty, TTYC_SS, 0);
usr.bin/tmux/tty.c
818
tty_putcode(tty, TTYC_CVVIS);
usr.bin/tmux/tty.c
821
if (tty_term_has(tty->term, TTYC_SS)) {
usr.bin/tmux/tty.c
823
tty_putcode_i(tty, TTYC_SS, 1);
usr.bin/tmux/tty.c
825
tty_putcode_i(tty, TTYC_SS, 2);
usr.bin/tmux/tty.c
827
tty_putcode(tty, TTYC_CVVIS);
usr.bin/tmux/tty.c
830
if (tty_term_has(tty->term, TTYC_SS)) {
usr.bin/tmux/tty.c
832
tty_putcode_i(tty, TTYC_SS, 3);
usr.bin/tmux/tty.c
834
tty_putcode_i(tty, TTYC_SS, 4);
usr.bin/tmux/tty.c
836
tty_putcode(tty, TTYC_CVVIS);
usr.bin/tmux/tty.c
839
if (tty_term_has(tty->term, TTYC_SS)) {
usr.bin/tmux/tty.c
841
tty_putcode_i(tty, TTYC_SS, 5);
usr.bin/tmux/tty.c
843
tty_putcode_i(tty, TTYC_SS, 6);
usr.bin/tmux/tty.c
845
tty_putcode(tty, TTYC_CVVIS);
usr.bin/tmux/tty.c
848
tty->cstyle = cstyle;
usr.bin/tmux/tty.c
853
tty_update_mode(struct tty *tty, int mode, struct screen *s)
usr.bin/tmux/tty.c
855
struct tty_term *term = tty->term;
usr.bin/tmux/tty.c
856
struct client *c = tty->client;
usr.bin/tmux/tty.c
859
if (tty->flags & TTY_NOCURSOR)
usr.bin/tmux/tty.c
862
if (tty_update_cursor(tty, mode, s) & MODE_CURSOR_BLINKING)
usr.bin/tmux/tty.c
867
changed = mode ^ tty->mode;
usr.bin/tmux/tty.c
870
screen_mode_to_string(tty->mode));
usr.bin/tmux/tty.c
881
tty_puts(tty, "\033[?1006l\033[?1000l\033[?1002l\033[?1003l");
usr.bin/tmux/tty.c
883
tty_puts(tty, "\033[?1006h");
usr.bin/tmux/tty.c
885
tty_puts(tty, "\033[?1000h\033[?1002h\033[?1003h");
usr.bin/tmux/tty.c
887
tty_puts(tty, "\033[?1000h\033[?1002h");
usr.bin/tmux/tty.c
889
tty_puts(tty, "\033[?1000h");
usr.bin/tmux/tty.c
891
tty->mode = mode;
usr.bin/tmux/tty.c
895
tty_emulate_repeat(struct tty *tty, enum tty_code_code code,
usr.bin/tmux/tty.c
898
if (tty_term_has(tty->term, code))
usr.bin/tmux/tty.c
899
tty_putcode_i(tty, code, n);
usr.bin/tmux/tty.c
902
tty_putcode(tty, code1);
usr.bin/tmux/tty.c
907
tty_repeat_space(struct tty *tty, u_int n)
usr.bin/tmux/tty.c
915
tty_putn(tty, s, sizeof s, sizeof s);
usr.bin/tmux/tty.c
919
tty_putn(tty, s, n, n);
usr.bin/tmux/tty.c
924
tty_window_bigger(struct tty *tty)
usr.bin/tmux/tty.c
926
struct client *c = tty->client;
usr.bin/tmux/tty.c
929
return (tty->sx < w->sx || tty->sy - status_line_size(c) < w->sy);
usr.bin/tmux/tty.c
934
tty_window_offset(struct tty *tty, u_int *ox, u_int *oy, u_int *sx, u_int *sy)
usr.bin/tmux/tty.c
936
*ox = tty->oox;
usr.bin/tmux/tty.c
937
*oy = tty->ooy;
usr.bin/tmux/tty.c
938
*sx = tty->osx;
usr.bin/tmux/tty.c
939
*sy = tty->osy;
usr.bin/tmux/tty.c
941
return (tty->oflag);
usr.bin/tmux/tty.c
946
tty_window_offset1(struct tty *tty, u_int *ox, u_int *oy, u_int *sx, u_int *sy)
usr.bin/tmux/tty.c
948
struct client *c = tty->client;
usr.bin/tmux/tty.c
95
tty_init(struct tty *tty, struct client *c)
usr.bin/tmux/tty.c
955
if (tty->sx >= w->sx && tty->sy - lines >= w->sy) {
usr.bin/tmux/tty.c
965
*sx = tty->sx;
usr.bin/tmux/tty.c
966
*sy = tty->sy - lines;
usr.bin/tmux/window-copy.c
1509
window_copy_scroll(wp, c->tty.mouse_slider_mpos, m->y, scroll_exit);
usr.bin/tmux/window-copy.c
6035
c->tty.mouse_drag_update = window_copy_drag_update;
usr.bin/tmux/window-copy.c
6036
c->tty.mouse_drag_release = window_copy_drag_release;
usr.bin/tmux/window-tree.c
747
cmd = get_proc_name(wp->fd, wp->tty);
usr.bin/tmux/window.c
1847
if (loop->tty.bg == -1)
usr.bin/tmux/window.c
1849
return (loop->tty.bg);
usr.bin/tmux/window.c
1888
if (loop->tty.fg == -1)
usr.bin/tmux/window.c
1890
return (loop->tty.fg);
usr.bin/vi/cl/cl_term.c
255
char *tty;
usr.bin/vi/cl/cl_term.c
258
if ((tty = ttyname(STDERR_FILENO)) == NULL) {
usr.bin/vi/cl/cl_term.c
263
if (stat(tty, &sb) < 0) {
usr.bin/vi/cl/cl_term.c
265
msgq(sp, M_SYSERR, "%s", tty);
usr.bin/vi/cl/cl_term.c
276
if (chmod(tty, sb.st_mode | S_IWGRP) < 0) {
usr.bin/vi/cl/cl_term.c
279
"messages not turned on: %s", tty);
usr.bin/vi/cl/cl_term.c
283
if (chmod(tty, sb.st_mode & ~S_IWGRP) < 0) {
usr.bin/vi/cl/cl_term.c
286
"messages not turned off: %s", tty);
usr.bin/wall/wall.c
156
un->tty = strndup(line, sizeof(utmp.ut_line));
usr.bin/wall/wall.c
157
if (un->tty == NULL)
usr.bin/wall/wall.c
167
if ((p = ttymsg(&iov, 1, un->tty, 60*5)) != NULL)
usr.bin/wall/wall.c
63
char *tty;
usr.bin/write/write.c
122
utmp_chk(char *user, char *tty)
usr.bin/write/write.c
132
strncmp(tty, u.ut_line, sizeof(u.ut_line)) == 0) {
usr.bin/write/write.c
153
search_utmp(char *user, char *tty, int ttyl, char *mytty, uid_t myuid)
usr.bin/write/write.c
182
(void)strlcpy(tty, atty, ttyl);
usr.bin/write/write.c
191
(void)strlcpy(tty, mytty, ttyl);
usr.bin/write/write.c
197
user, tty);
usr.bin/write/write.c
205
term_chk(char *tty, int *msgsokP, time_t *atimeP, int showerror)
usr.bin/write/write.c
210
(void)snprintf(path, sizeof(path), "%s%s", _PATH_DEV, tty);
usr.bin/write/write.c
225
do_write(char *tty, char *mytty, uid_t myuid)
usr.bin/write/write.c
238
(void)snprintf(path, sizeof(path), "%s%s", _PATH_DEV, tty);
usr.bin/write/write.c
63
char tty[PATH_MAX], *mytty, *cp;
usr.bin/write/write.c
91
search_utmp(argv[1], tty, sizeof tty, mytty, myuid);
usr.bin/write/write.c
92
do_write(tty, mytty, myuid);
usr.sbin/pppd/auth.c
719
char *tty;
usr.sbin/pppd/auth.c
729
tty = devnam;
usr.sbin/pppd/auth.c
730
if (strncmp(tty, "/dev/", 5) == 0)
usr.sbin/pppd/auth.c
731
tty += 5;
usr.sbin/pppd/auth.c
732
logwtmp(tty, user, remote_name); /* Add wtmp login entry */
usr.sbin/pppd/auth.c
742
(void)strncpy(ll.ll_line, tty, sizeof(ll.ll_line));
usr.sbin/pppd/auth.c
763
char *tty;
usr.sbin/pppd/auth.c
765
tty = devnam;
usr.sbin/pppd/auth.c
766
if (strncmp(tty, "/dev/", 5) == 0)
usr.sbin/pppd/auth.c
767
tty += 5;
usr.sbin/pppd/auth.c
768
logwtmp(tty, "", ""); /* Wipe out utmp logout entry */
usr.sbin/pstat/pstat.c
136
void tty2itty(struct tty *tp, struct itty *itp);
usr.sbin/pstat/pstat.c
899
tty2itty(struct tty *tp, struct itty *itp)
usr.sbin/pstat/pstat.c
919
struct tty *tp, tty;
usr.sbin/pstat/pstat.c
934
tp = TAILQ_NEXT(&tty, tty_link)) {
usr.sbin/pstat/pstat.c
935
KGET2(tp, &tty, sizeof tty, "tty struct");
usr.sbin/pstat/pstat.c
936
tty2itty(&tty, &itty);
usr.sbin/syslogd/privsep.c
533
check_tty_name(char *tty, size_t ttysize)
usr.sbin/syslogd/privsep.c
539
for (p = tty; p + 1 < tty + ttysize && *p; p++)
usr.sbin/syslogd/privsep.c
543
if (strcmp(_PATH_CONSOLE, tty) && strncmp(tty, ttypre, strlen(ttypre)))
usr.sbin/syslogd/privsep.c
549
"check_tty_name", tty);
usr.sbin/syslogd/privsep.c
550
strlcpy(tty, "/dev/null", ttysize);
usr.sbin/syslogd/privsep.c
612
priv_open_tty(const char *tty)
usr.sbin/syslogd/privsep.c
621
if (strlcpy(path, tty, sizeof path) >= sizeof(path))
usr.sbin/vmctl/vmctl.c
698
char *tty;
usr.sbin/vmctl/vmctl.c
746
tty = "-";
usr.sbin/vmctl/vmctl.c
748
else if ((tty = strrchr(vir->vir_ttyname,
usr.sbin/vmctl/vmctl.c
749
'/')) == NULL || *++tty == '\0')
usr.sbin/vmctl/vmctl.c
750
tty = list[i].vir_ttyname;
usr.sbin/vmctl/vmctl.c
758
tty, user, vm_state(vir->vir_state),
usr.sbin/wsmoused/mouse_protocols.c
189
struct termios tty;
usr.sbin/wsmoused/mouse_protocols.c
192
if (tcgetattr(mouse.mfd, &tty) == -1) {
usr.sbin/wsmoused/mouse_protocols.c
197
tty.c_iflag = IGNBRK | IGNPAR;
usr.sbin/wsmoused/mouse_protocols.c
198
tty.c_oflag = 0;
usr.sbin/wsmoused/mouse_protocols.c
199
tty.c_lflag = 0;
usr.sbin/wsmoused/mouse_protocols.c
200
tty.c_cflag = (tcflag_t) cflag;
usr.sbin/wsmoused/mouse_protocols.c
201
tty.c_cc[VTIME] = 0;
usr.sbin/wsmoused/mouse_protocols.c
202
tty.c_cc[VMIN] = 1;
usr.sbin/wsmoused/mouse_protocols.c
206
cfsetispeed(&tty, B9600);
usr.sbin/wsmoused/mouse_protocols.c
207
cfsetospeed(&tty, B9600);
usr.sbin/wsmoused/mouse_protocols.c
210
cfsetispeed(&tty, B4800);
usr.sbin/wsmoused/mouse_protocols.c
211
cfsetospeed(&tty, B4800);
usr.sbin/wsmoused/mouse_protocols.c
214
cfsetispeed(&tty, B2400);
usr.sbin/wsmoused/mouse_protocols.c
215
cfsetospeed(&tty, B2400);
usr.sbin/wsmoused/mouse_protocols.c
219
cfsetispeed(&tty, B1200);
usr.sbin/wsmoused/mouse_protocols.c
220
cfsetospeed(&tty, B1200);
usr.sbin/wsmoused/mouse_protocols.c
223
if (tcsetattr(mouse.mfd, TCSADRAIN, &tty) == -1)
usr.sbin/wsmoused/mouse_protocols.c
227
cfsetispeed(&tty, B1200);
usr.sbin/wsmoused/mouse_protocols.c
228
cfsetospeed(&tty, B1200);
usr.sbin/wsmoused/mouse_protocols.c
236
if (tcsetattr(mouse.mfd, TCSADRAIN, &tty) == -1)