projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deglobalise the Unicode module. Despite all my grand plans, I've
[u/mdw/putty]
/
mac
/
macterm.c
diff --git
a/mac/macterm.c
b/mac/macterm.c
index
59bca7f
..
cdabbad
100644
(file)
--- a/
mac/macterm.c
+++ b/
mac/macterm.c
@@
-1,4
+1,4
@@
-/* $Id: macterm.c,v 1.4
3 2003/01/12 14:44:12
ben Exp $ */
+/* $Id: macterm.c,v 1.4
6 2003/01/14 15:24:51
ben Exp $ */
/*
* Copyright (c) 1999 Simon Tatham
* Copyright (c) 1999, 2002 Ben Harris
/*
* Copyright (c) 1999 Simon Tatham
* Copyright (c) 1999, 2002 Ben Harris
@@
-169,14
+169,15
@@
void mac_startsession(Session *s)
ActivatePalette(s->window);
}
ActivatePalette(s->window);
}
- s->logctx = log_init(s);
+ s->logctx = log_init(s
, &s->cfg
);
term_provide_logctx(s->term, s->logctx);
term_provide_logctx(s->term, s->logctx);
- errmsg = s->back->init(s->term, &s->backhandle,
s->cfg.host, s->cfg.por
t,
- &s->realhost, s->cfg.tcp_nodelay);
+ errmsg = s->back->init(s->term, &s->backhandle,
&s->cfg, s->cfg.hos
t,
+
s->cfg.port,
&s->realhost, s->cfg.tcp_nodelay);
if (errmsg != NULL)
fatalbox("%s", errmsg);
s->back->provide_logctx(s->backhandle, s->logctx);
if (errmsg != NULL)
fatalbox("%s", errmsg);
s->back->provide_logctx(s->backhandle, s->logctx);
+ set_title(s, s->realhost);
term_provide_resize_fn(s->term, s->back->size, s->backhandle);
term_provide_resize_fn(s->term, s->back->size, s->backhandle);
@@
-1255,8
+1256,7
@@
void set_raw_mouse_mode(void *frontend, int activate)
void request_resize(void *frontend, int w, int h) {
Session *s = frontend;
void request_resize(void *frontend, int w, int h) {
Session *s = frontend;
- s->term->cols = w;
- s->term->rows = h;
+ term_size(s->term, h, w, s->cfg.savelines);
mac_initfont(s);
}
mac_initfont(s);
}