1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-16 10:37:38 -05:00

Rethink the whole line discipline architecture. Instead of having

multiple switchable line disciplines, we now have a single unified
one which changes its behaviour based on option settings. Each
option setting can be suggested by the back end and/or the terminal
handler, and can be forcibly overridden by the configuration. Local
echo and local line editing are separate, independently switchable,
options.

[originally from svn r895]
This commit is contained in:
Simon Tatham
2001-01-24 14:08:20 +00:00
parent 89505459e3
commit 7a79df8fe6
12 changed files with 329 additions and 217 deletions

12
raw.c
View File

@ -70,11 +70,6 @@ static char *raw_init (char *host, int port, char **realhost) {
sk_addr_free(addr);
/*
* We have no pre-session phase.
*/
begin_session();
return NULL;
}
@ -109,6 +104,12 @@ static Socket raw_socket(void) { return s; }
static int raw_sendok(void) { return 1; }
static int raw_ldisc(int option) {
if (option == LD_EDIT || option == LD_ECHO)
return 1;
return 0;
}
Backend raw_backend = {
raw_init,
raw_send,
@ -116,5 +117,6 @@ Backend raw_backend = {
raw_special,
raw_socket,
raw_sendok,
raw_ldisc,
1
};