
Hi, I'm trying to understand how to use the escape character '^]' with the below command: virt-install --name=try06 --graphic none --pxe --network bridge=virbr0 --console pty,target_type=serial "Starting install... Connected to domain try06 Escape character is ^]" When I try to do '^]', it does not escape. The '--console' option makes no difference. In other words, what is the best way to get back to the host from a broken guest installation. I'm remotely connected to this server using SSH and doing '~.' quits the SSH connection. Any help is appriciated. -- John Doe

On a Friday in 2020, john doe wrote:
Hi,
I'm trying to understand how to use the escape character '^]' with the below command:
virt-install --name=try06 --graphic none --pxe --network bridge=virbr0 --console pty,target_type=serial
"Starting install... Connected to domain try06 Escape character is ^]"
When I try to do '^]', it does not escape.
This is not a character sequence, '^]' is a way of saying: Ctrl + ] Jano
The '--console' option makes no difference.
In other words, what is the best way to get back to the host from a broken guest installation.
I'm remotely connected to this server using SSH and doing '~.' quits the SSH connection.
Any help is appriciated.
-- John Doe

On 3/27/2020 1:45 PM, Ján Tomko wrote:
On a Friday in 2020, john doe wrote:
Hi,
I'm trying to understand how to use the escape character '^]' with the below command:
virt-install --name=try06 --graphic none --pxe --network bridge=virbr0 --console pty,target_type=serial
"Starting install... Connected to domain try06 Escape character is ^]"
When I try to do '^]', it does not escape.
This is not a character sequence, '^]' is a way of saying: Ctrl + ]
Thank you, learned one more thing! :) https://en.wikipedia.org/wiki/Caret_notation -- John Doe

On Fri, Mar 27, 2020 at 01:45:21PM +0100, Ján Tomko wrote:
On a Friday in 2020, john doe wrote:
Hi,
I'm trying to understand how to use the escape character '^]' with the below command:
virt-install --name=try06 --graphic none --pxe --network bridge=virbr0 --console pty,target_type=serial
"Starting install... Connected to domain try06 Escape character is ^]"
When I try to do '^]', it does not escape.
This is not a character sequence, '^]' is a way of saying: Ctrl + ]
Stop me if i'm being too adventurous here, but perhaps we should change the text to say.... Escape character is Ctrl + ] Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

On Fri, Mar 27, 2020 at 01:48:58PM +0000, Daniel P. Berrangé wrote:
On Fri, Mar 27, 2020 at 01:45:21PM +0100, Ján Tomko wrote:
On a Friday in 2020, john doe wrote:
Hi,
I'm trying to understand how to use the escape character '^]' with the below command:
virt-install --name=try06 --graphic none --pxe --network bridge=virbr0 --console pty,target_type=serial
"Starting install... Connected to domain try06 Escape character is ^]"
When I try to do '^]', it does not escape.
This is not a character sequence, '^]' is a way of saying: Ctrl + ]
Stop me if i'm being too adventurous here, but perhaps we should change the text to say....
Escape character is Ctrl + ]
Well, as we can clearly see, not everyone is familiar with the caret notation. So, I definitely support such a change. -- Erik Skultety

On a Friday in 2020, Erik Skultety wrote:
On Fri, Mar 27, 2020 at 01:48:58PM +0000, Daniel P. Berrangé wrote:
On Fri, Mar 27, 2020 at 01:45:21PM +0100, Ján Tomko wrote:
On a Friday in 2020, john doe wrote:
Hi,
I'm trying to understand how to use the escape character '^]' with the below command:
virt-install --name=try06 --graphic none --pxe --network bridge=virbr0 --console pty,target_type=serial
"Starting install... Connected to domain try06 Escape character is ^]"
When I try to do '^]', it does not escape.
This is not a character sequence, '^]' is a way of saying: Ctrl + ]
Stop me if i'm being too adventurous here, but perhaps we should change the text to say....
My short adventure to virsh source code lead me to find out that the escape character is configurable, so it's more than just changing a text.
Escape character is Ctrl + ]
Well, as we can clearly see, not everyone is familiar with the caret notation.
We could teach the caret notation (at the expense of minimalism): Escape character is ^] (Ctrl + ])
So, I definitely support such a change.
The best way to show your support is by sending a patch ;) Jano

On Fri, Mar 27, 2020 at 03:27:56PM +0100, Ján Tomko wrote:
On a Friday in 2020, Erik Skultety wrote:
On Fri, Mar 27, 2020 at 01:48:58PM +0000, Daniel P. Berrangé wrote:
On Fri, Mar 27, 2020 at 01:45:21PM +0100, Ján Tomko wrote:
On a Friday in 2020, john doe wrote:
Hi,
I'm trying to understand how to use the escape character '^]' with the below command:
virt-install --name=try06 --graphic none --pxe --network bridge=virbr0 --console pty,target_type=serial
"Starting install... Connected to domain try06 Escape character is ^]"
When I try to do '^]', it does not escape.
This is not a character sequence, '^]' is a way of saying: Ctrl + ]
Stop me if i'm being too adventurous here, but perhaps we should change the text to say....
My short adventure to virsh source code lead me to find out that the escape character is configurable, so it's more than just changing a text.
Oh yes, I forgot we did that.
Escape character is Ctrl + ]
Well, as we can clearly see, not everyone is familiar with the caret notation.
We could teach the caret notation (at the expense of minimalism): Escape character is ^] (Ctrl + ])
So, I definitely support such a change.
The best way to show your support is by sending a patch ;)
I'll have a go at writing a patch Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

On 2020-03-27 10:27, Ján Tomko wrote:
On a Friday in 2020, Erik Skultety wrote:
On Fri, Mar 27, 2020 at 01:48:58PM +0000, Daniel P. Berrangé wrote:
On Fri, Mar 27, 2020 at 01:45:21PM +0100, Ján Tomko wrote:
We could teach the caret notation (at the expense of minimalism): Escape character is ^] (Ctrl + ])
So, I definitely support such a change.
The best way to show your support is by sending a patch ;)
If you change it there, change it in telnet, too, SVP. :-) Nothing like consistency... (Indeed, I'm so used to seeing that verbiage *from* telnet I didn't know it existed elsewhere.) $.02, -Ken

On 3/27/2020 2:48 PM, Daniel P. Berrangé wrote:
On Fri, Mar 27, 2020 at 01:45:21PM +0100, Ján Tomko wrote:
On a Friday in 2020, john doe wrote:
Hi,
I'm trying to understand how to use the escape character '^]' with the below command:
virt-install --name=try06 --graphic none --pxe --network bridge=virbr0 --console pty,target_type=serial
"Starting install... Connected to domain try06 Escape character is ^]"
When I try to do '^]', it does not escape.
This is not a character sequence, '^]' is a way of saying: Ctrl + ]
Stop me if i'm being too adventurous here, but perhaps we should change the text to say....
Escape character is Ctrl + ]
I would suggest, the following: 'Where the escape character ^] is referenced, it is equivalent to doing 'CTRL + ]' or in plain English, pressing at the same time the control key and the right bracket key.' -- John Doe
participants (5)
-
Daniel P. Berrangé
-
Erik Skultety
-
john doe
-
Ján Tomko
-
Ken D'Ambrosio