summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-09-09 22:16:37 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-09-09 22:16:37 +0000
commit19a2c87f049155439427e40d0cc78041da4d0b99 (patch)
tree03d67440bb693b3257850a54007f9b03027d1bdc /client.c
parent1e145a639be109f53381c64bd83483d32ffc8524 (diff)
Initial UTF-8 support.
Diffstat (limited to 'client.c')
-rw-r--r--client.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/client.c b/client.c
index a55b8e22..4ae5fc1a 100644
--- a/client.c
+++ b/client.c
@@ -1,4 +1,4 @@
-/* $Id: client.c,v 1.34 2008-07-01 19:47:02 nicm Exp $ */
+/* $Id: client.c,v 1.35 2008-09-09 22:16:36 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -34,7 +34,8 @@
void client_handle_winch(struct client_ctx *);
int
-client_init(const char *path, struct client_ctx *cctx, int start_server)
+client_init(
+ const char *path, struct client_ctx *cctx, int start_server, int flags)
{
struct sockaddr_un sa;
struct stat sb;
@@ -94,6 +95,7 @@ retry:
if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) == -1)
fatal("ioctl(TIOCGWINSZ)");
data.version = PROTOCOL_VERSION;
+ data.flags = flags;
data.sx = ws.ws_col;
data.sy = ws.ws_row;
*data.tty = '\0';