mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Fairly major hackery to get SSH going on the Mac. Half the support
functions are only dummy stubs, but it's still minimally usable. At least, as long as you don't want to do anything complex like logging out. [originally from svn r2500]
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Id: macterm.c,v 1.35 2003/01/05 11:31:51 ben Exp $ */
|
||||
/* $Id: macterm.c,v 1.36 2003/01/08 22:46:12 ben Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1999 Simon Tatham
|
||||
* Copyright (c) 1999, 2002 Ben Harris
|
||||
@ -223,6 +223,10 @@ void mac_startsession(Session *s)
|
||||
sprintf(msg, "Elapsed ticks: %d\015\012", TickCount() - starttime);
|
||||
inbuf_putstr(s, msg);
|
||||
term_out(s->term);
|
||||
s->next = sesslist;
|
||||
s->prev = s->next->prev;
|
||||
s->next->prev = &s->next;
|
||||
sesslist = s;
|
||||
}
|
||||
|
||||
static UnicodeToTextFallbackUPP uni_to_font_fallback_upp;
|
||||
@ -300,6 +304,18 @@ static pascal OSStatus uni_to_font_fallback(UniChar *ucp,
|
||||
return noErr;
|
||||
}
|
||||
|
||||
/*
|
||||
* Called every time round the event loop.
|
||||
*/
|
||||
void mac_pollterm(void)
|
||||
{
|
||||
Session *s;
|
||||
|
||||
for (s = sesslist; s != NULL; s = s->next) {
|
||||
term_out(s->term);
|
||||
term_update(s->term);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* To be called whenever the window size changes.
|
||||
|
Reference in New Issue
Block a user