mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-06 22:12:47 -05:00
First attempt at a Unix port of Plink. Seems to basically work;
doesn't yet use the SSH agent, no way to specify arbitrary config options, no manpage yet, couple of other fiddly things need doing, but it makes SSH connections and doesn't fall over horribly so I say it's a good start. Now to run it under valgrind... [originally from svn r2165]
This commit is contained in:
14
unix/pterm.c
14
unix/pterm.c
@ -16,10 +16,11 @@
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
#include <gdk/gdkx.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
|
||||
#define PUTTY_DO_GLOBALS /* actually _define_ globals */
|
||||
#include "putty.h"
|
||||
@ -68,6 +69,13 @@ struct draw_ctx {
|
||||
|
||||
static int send_raw_mouse;
|
||||
|
||||
static char *app_name = "pterm";
|
||||
|
||||
char *x_get_default(char *key)
|
||||
{
|
||||
return XGetDefault(GDK_DISPLAY(), app_name, key);
|
||||
}
|
||||
|
||||
void ldisc_update(void *frontend, int echo, int edit)
|
||||
{
|
||||
/*
|
||||
@ -1726,8 +1734,6 @@ char *get_x_display(void *frontend)
|
||||
return gdk_get_display();
|
||||
}
|
||||
|
||||
char *app_name = "pterm";
|
||||
|
||||
static void help(FILE *fp) {
|
||||
if(fprintf(fp,
|
||||
"pterm option summary:\n"
|
||||
|
Reference in New Issue
Block a user