Differences From Artifact [18c2534c9e]:
- File unix/pty.c — part of check-in [c069c8a0c8] at 2003-03-29 13:52:50 on branch trunk — Having created and used uxsel, it actually turns out to be practically trivial to put all the pieces together and create a working prototype of Unix PuTTY! It's missing a lot of things - notably GUI request boxes for host keys and logfiles and so forth, the Event Log, mid-session reconfiguration, session loading and saving, sensible population of the character sets drop-down list and probably other fiddly little things too - but it will put up a config box and then create a GUI window containing an SSH connection to the host you specified, so it's _basically_ there. Woo! (user: simon size: 18516)
To Artifact [999b1bbfdc]:
- File unix/pty.c — part of check-in [53746610b8] at 2003-04-04 14:21:05 on branch trunk — Turned the old `Telnet Command' System-submenu into a more general `Special Command' menu, in which any backend can place its own list of magical things the user might want to ask the backend to do. In particular I've implemented the recently proposed "break" extension in SSH2 using this mechanism. NB this checkin slightly breaks the Mac build, since it needs to provide at least a stub form of update_specials_menu(). (user: simon size: 18944)
| ︙ | |||
699 700 701 702 703 704 705 706 707 708 709 710 711 712 | 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 | + + + + + + + + + + + + + + + |
* Send special codes.
*/
static void pty_special(void *handle, Telnet_Special code)
{
/* Do nothing! */
return;
}
/*
* Return a list of the special codes that make sense in this
* protocol.
*/
static const struct telnet_special *pty_get_specials(void *handle)
{
/*
* Hmm. When I get round to having this actually usable, it
* might be quite nice to have the ability to deliver a few
* well chosen signals to the child process - SIGINT, SIGTERM,
* SIGKILL at least.
*/
return NULL;
}
static Socket pty_socket(void *handle)
{
return NULL; /* shouldn't ever be needed */
}
static int pty_sendok(void *handle)
|
| ︙ | |||
746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 | 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 | + |
pty_init,
pty_free,
pty_reconfig,
pty_send,
pty_sendbuffer,
pty_size,
pty_special,
pty_get_specials,
pty_socket,
pty_exitcode,
pty_sendok,
pty_ldisc,
pty_provide_ldisc,
pty_provide_logctx,
pty_unthrottle,
1
};
|