From 5996c3824c52425c2d4f3d7cb69f0c9fa81a33b8 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sat, 23 Mar 2013 23:16:06 +0800 Subject: Add ~. and ~^Z handling to exit/suspend dbclient --- channel.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'channel.h') diff --git a/channel.h b/channel.h index 950d4b3..7146697 100644 --- a/channel.h +++ b/channel.h @@ -83,8 +83,10 @@ struct Channel { int flushing; - const struct ChanType* type; + /* Used by client chansession to handle ~ escaping, NULL ignored otherwise */ + void (*read_mangler)(struct Channel*, unsigned char* bytes, int *len); + const struct ChanType* type; }; struct ChanType { -- cgit v1.2.3