mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Initial UTF-8 support.
This commit is contained in:
6
client.c
6
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';
|
||||
|
Reference in New Issue
Block a user