Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Reply
 
Thread Tools Display Modes
  #1  
Old 03-11-2020, 04:47 AM
Mike01's Avatar
Mike01 Mike01 is offline
Registered User
 
Join Date: Mar 2020
Posts: 4
Escape Sequence

Hello,
How can i send a escape sequnece (Ctrl+5+c) as a Button (Send String)?
Reply With Quote
  #2  
Old 03-11-2020, 08:28 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,219
Hi Mike01,

Is it really an escape sequence? Or is it a control sequence?

How do you use it? (ie: Are you pressing Ctrl+5, then c? Or you really hold all three keys at the same time?)

What does this combo do?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 03-11-2020, 09:38 AM
Mike01's Avatar
Mike01 Mike01 is offline
Registered User
 
Join Date: Mar 2020
Posts: 4
Quote:
Originally Posted by bgagnon View Post
Hi Mike01,

Is it really an escape sequence? Or is it a control sequence?

How do you use it? (ie: Are you pressing Ctrl+5, then c? Or you really hold all three keys at the same time?)

What does this combo do?
Hello, Brenda,

Yes, i press "Ctrl" and "5" and then "C". Closed a Telnet session
Reply With Quote
  #4  
Old 03-11-2020, 10:53 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,219
Hi Mike01,

You should be able to map the button to send this string: \135c. You can use \135c\r if an ENTER is also required to close the connection.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730

Last edited by bgagnon; 03-11-2020 at 11:11 AM. Reason: I think escape sequence is the term the telnet server used so removed that line
Reply With Quote
  #5  
Old 03-11-2020, 12:11 PM
Mike01's Avatar
Mike01 Mike01 is offline
Registered User
 
Join Date: Mar 2020
Posts: 4
Hello Brenda,
unfortunately, that didn't work out.
Here's a picture of us on line four, where we're in the "root..."
from here I connect with "telnet localhost 21001" to the console. I want to close the console again to connect to another port.

In secureCRT using the keys Ctrl and Plus (/035) pressed = output Telnet, now C and Return.
Attached Images
File Type: jpg Putty_ex.jpg (34.6 KB, 30 views)

Last edited by Mike01; 03-11-2020 at 12:54 PM. Reason: Embedded graphic into post for efficient viewing
Reply With Quote
  #6  
Old 03-11-2020, 01:16 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,219
Hi Mike01,

Sorry, I didn't mean to misinform you.

The ^] character is actually \035. You can see this in the Configuring the Keyboard / ASCII Control Codes topic in SecureCRT's Help file. There's a chart there with all the control codes.

So try \035c\r, or if you need to introduce a pause between \035\pc\r.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #7  
Old 03-11-2020, 02:07 PM
Mike01's Avatar
Mike01 Mike01 is offline
Registered User
 
Join Date: Mar 2020
Posts: 4
Thumbs up

Hello, Brenda,

thanks for the support, the 2nd code worked.
(\035\pc\r)

Thanks
Reply With Quote
  #8  
Old 03-12-2020, 08:15 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,219
Hi Mike01,

Thanks for posting an update!
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 06:32 PM.