From: Wei Liu Subject: Re: [chg req] console: provide a way to send escape char Date: Fri, 6 Nov 2015 10:37:59 +0000 Message-ID: <20151106103759.GA3978@zion.uk.xensource.com> References: <201511061031.tA6AVMdf009519@server.CornerstoneService.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <201511061031.tA6AVMdf009519@server.CornerstoneService.ca> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: John Nemeth Cc: wei.liu2@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, Nov 06, 2015 at 02:31:22AM -0800, John Nemeth wrote: > I would like to request that there be a way in the xen console > to send the escape char. The problem I faced was that I did: > > xl console > domU> telnet As a workaround, you can try telnet -e escapechar ? > ... > > At some point, I realised that I wanted to send Ctrl-], which is > the standard telnet escape char to the telnet command. But, of > course, the xen console ate it and exited. A Google search and > asking a developer that was hanging out in a private chat where I > often hangout didn't produce any answers. So, then I looked at > tools/console/client/main.c in Xen 4.5.1, which is the latest that > I had at hand, along with master in your gitweb, I found the > following code: > > 212 if (FD_ISSET(STDIN_FILENO, &fds)) { > 213 ssize_t len; > 214 char msg[60]; > 215 > 216 len = read(STDIN_FILENO, msg, sizeof(msg)); > 217 if (len == 1 && msg[0] == ESCAPE_CHARACTER) { > 218 return 0; > 219 } > > Thus it would appear that there is currently no way to send the > escape char to the domU. I would provide a patch, but I'm not sure > what would be the best way to make the change. > Maybe we can do the same thing as telnet to provide an option to specify escape character. Wei. > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel