X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/8a00b869aea81186ce7b2b1014176708d59e073e..f6b14226f4e832f6cb2a523ebd843f72bb9862cc:/mac/macterm.c diff --git a/mac/macterm.c b/mac/macterm.c index 2b0c0fe8..e2e33dec 100644 --- a/mac/macterm.c +++ b/mac/macterm.c @@ -1,4 +1,4 @@ -/* $Id: macterm.c,v 1.5 2002/11/20 00:33:44 ben Exp $ */ +/* $Id: macterm.c,v 1.8 2002/11/23 19:01:01 ben Exp $ */ /* * Copyright (c) 1999 Simon Tatham * Copyright (c) 1999, 2002 Ben Harris @@ -152,7 +152,7 @@ void mac_newsession(void) { s->window = GetNewWindow(wTerminal, NULL, (WindowPtr)-1); SetWRefCon(s->window, (long)s); s->scrollbar = GetNewControl(cVScroll, s->window); - s->term = term_init(s); + s->term = term_init(&s->cfg, s); s->logctx = log_init(s); term_provide_logctx(s->term, s->logctx); @@ -554,7 +554,11 @@ void mac_keyterm(WindowPtr window, EventRecord *event) { s = (Session *)GetWRefCon(window); len = mac_keytrans(s, event, buf); - s->back->send(s, (char *)buf, len); + ldisc_send(s->ldisc, (char *)buf, len, 1); + ObscureCursor(); + term_seen_key_event(s->term); + term_out(s->term); + term_update(s->term); } static int mac_keytrans(Session *s, EventRecord *event, @@ -1203,8 +1207,6 @@ static void real_palette_set(Session *s, int n, int r, int g, int b) col.red = r * 0x0101; col.green = g * 0x0101; col.blue = b * 0x0101; - fprintf(stderr, "p%d <- (0x%x, 0x%x, 0x%x)\n", n, col.red, col.green, - col.blue); SetEntryColor(s->palette, n, &col); }