"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libedit/tty.h" between
tnftp-20151004.tar.gz and tnftp-20200705.tar.gz

About: tnftp is an enhanced ftp client (prior name "lukemftp").

tty.h  (tnftp-20151004):tty.h  (tnftp-20200705)
/* $NetBSD: tty.h,v 1.3 2005/06/01 11:42:24 lukem Exp $ */ /* $NetBSD: tty.h,v 1.6 2020/07/04 13:43:21 lukem Exp $ */
/* from NetBSD: tty.h,v 1.10 2003/08/07 16:44:34 agc Exp */ /* from NetBSD: tty.h,v 1.23 2018/12/02 16:58:13 christos Exp */
/*- /*-
* Copyright (c) 1992, 1993 * Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved. * The Regents of the University of California. All rights reserved.
* *
* This code is derived from software contributed to Berkeley by * This code is derived from software contributed to Berkeley by
* Christos Zoulas of Cornell University. * Christos Zoulas of Cornell University.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
skipping to change at line 44 skipping to change at line 44
* *
* @(#)tty.h 8.1 (Berkeley) 6/4/93 * @(#)tty.h 8.1 (Berkeley) 6/4/93
*/ */
/* /*
* el.tty.h: Local terminal header * el.tty.h: Local terminal header
*/ */
#ifndef _h_el_tty #ifndef _h_el_tty
#define _h_el_tty #define _h_el_tty
#include "histedit.h" #if 0 /* tnftp */
#include <termios.h> #include <termios.h>
#include <unistd.h> #include <unistd.h>
#endif /* tnftp */
/* Define our own since everyone gets it wrong! */ /* Define our own since everyone gets it wrong! */
#define CONTROL(A) ((A) & 037) #define CONTROL(A) ((A) & 037)
/* /*
* Aix compatible names * Aix compatible names
*/ */
# if defined(VWERSE) && !defined(VWERASE) # if defined(VWERSE) && !defined(VWERASE)
# define VWERASE VWERSE # define VWERASE VWERSE
# endif /* VWERSE && !VWERASE */ # endif /* VWERSE && !VWERASE */
skipping to change at line 433 skipping to change at line 434
#define C_DISCARD 16 #define C_DISCARD 16
#define C_LNEXT 17 #define C_LNEXT 17
#define C_STATUS 18 #define C_STATUS 18
#define C_PAGE 19 #define C_PAGE 19
#define C_PGOFF 20 #define C_PGOFF 20
#define C_KILL2 21 #define C_KILL2 21
#define C_BRK 22 #define C_BRK 22
#define C_MIN 23 #define C_MIN 23
#define C_TIME 24 #define C_TIME 24
#define C_NCC 25 #define C_NCC 25
#define C_SH(A) (1 << (A)) #define C_SH(A) ((unsigned int)(1 << (A)))
/* /*
* Terminal dependend data structures * Terminal dependend data structures
*/ */
#define EX_IO 0 /* while we are executing */ #define EX_IO 0 /* while we are executing */
#define ED_IO 1 /* while we are editing */ #define ED_IO 1 /* while we are editing */
#define TS_IO 2 /* new mode from terminal */ #define TS_IO 2 /* new mode from terminal */
#define QU_IO 2 /* used only for quoted chars */ #define QU_IO 2 /* used only for quoted chars */
#define NN_IO 3 /* The number of entries */ #define NN_IO 3 /* The number of entries */
/* Don't re-order */
#define MD_INP 0 #define MD_INP 0
#define MD_OUT 1 #define MD_OUT 1
#define MD_CTL 2 #define MD_CTL 2
#define MD_LIN 3 #define MD_LIN 3
#define MD_CHAR 4 #define MD_CHAR 4
#define MD_NN 5 #define MD_NN 5
typedef struct { typedef struct {
const char *t_name; const char *t_name;
unsigned int t_setmask; unsigned int t_setmask;
unsigned int t_clrmask; unsigned int t_clrmask;
} ttyperm_t[NN_IO][MD_NN]; } ttyperm_t[NN_IO][MD_NN];
typedef unsigned char ttychar_t[NN_IO][C_NCC]; typedef unsigned char ttychar_t[NN_IO][C_NCC];
protected int tty_init(EditLine *); libedit_private int tty_init(EditLine *);
protected void tty_end(EditLine *); libedit_private void tty_end(EditLine *, int);
protected int tty_stty(EditLine *, int, const char **); libedit_private int tty_stty(EditLine *, int, const wchar_t **);
protected int tty_rawmode(EditLine *); libedit_private int tty_rawmode(EditLine *);
protected int tty_cookedmode(EditLine *); libedit_private int tty_cookedmode(EditLine *);
protected int tty_quotemode(EditLine *); libedit_private int tty_quotemode(EditLine *);
protected int tty_noquotemode(EditLine *); libedit_private int tty_noquotemode(EditLine *);
protected void tty_bind_char(EditLine *, int); libedit_private void tty_bind_char(EditLine *, int);
libedit_private int tty_get_signal_character(EditLine *, int);
typedef struct { typedef struct {
ttyperm_t t_t; ttyperm_t t_t;
ttychar_t t_c; ttychar_t t_c;
struct termios t_ex, t_ed, t_ts; struct termios t_or, t_ex, t_ed, t_ts;
int t_tabs; int t_tabs;
int t_eight; int t_eight;
speed_t t_speed; speed_t t_speed;
int t_mode; unsigned char t_mode;
unsigned char t_vdisable; unsigned char t_vdisable;
unsigned char t_initialized;
} el_tty_t; } el_tty_t;
#endif /* _h_el_tty */ #endif /* _h_el_tty */
 End of changes. 9 change blocks. 
14 lines changed or deleted 18 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)