diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-09-09 22:16:37 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-09-09 22:16:37 +0000 |
commit | 19a2c87f049155439427e40d0cc78041da4d0b99 (patch) | |
tree | 03d67440bb693b3257850a54007f9b03027d1bdc /client.c | |
parent | 1e145a639be109f53381c64bd83483d32ffc8524 (diff) |
Initial UTF-8 support.
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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'; |