mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-15 01:57:40 -05:00
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! [originally from svn r3020]
This commit is contained in:
27
unix/ptermm.c
Normal file
27
unix/ptermm.c
Normal file
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* pterm main program.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "putty.h"
|
||||
|
||||
Backend *select_backend(Config *cfg)
|
||||
{
|
||||
return &pty_backend;
|
||||
}
|
||||
|
||||
int cfgbox(Config *cfg)
|
||||
{
|
||||
return 1; /* no-op in pterm */
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
extern int pt_main(int argc, char **argv);
|
||||
extern void pty_pre_init(void); /* declared in pty.c */
|
||||
|
||||
pty_pre_init();
|
||||
|
||||
return pt_main(argc, argv);
|
||||
}
|
Reference in New Issue
Block a user