VanDyke Software Forums

VanDyke Software Forums (
-   SecureCRT on the Mac (
-   -   Unwanted character appends on passing commands to exe using SecureCRT (

Azim 05-13-2019 06:05 AM

Unwanted character appends on passing commands to exe using SecureCRT
I am using SecureCRT Version 8.5.3 (x64 build 1867) for one of my project. I have created console application which can take command as argument.

On the basis on command passed, the application will perform certain operation. But some time even I am passing correct command to application, the SecureCRT appends some unwanted character to the command due to that application not able to identify the command.
ftp> MyApplication.exe –Test
output: -Test[4~[C[C[C[C[4~[C[C[C[CHFGHFJGH

The above ‘–Test’ command now having unwanted symbols, it can be vary every time.

bgagnon 05-13-2019 09:07 AM

Hi Azim,

I do not understand SecureCRT's role in your project.

Are you connecting a local shell session in SecureCRT?

If so, since the Local Shell inherits from the Default session, you will need to make changes to the Default session:
  1. Set Terminal emulation to Xterm (Terminal > Emulation category; this is the default for 8.1 and newer versions)
  2. Enable ANSI Color option (Terminal > Emulation category; this is on by default in 8.3 and newer verions)
  3. Character encoding should be set to UTF-8 (Terminal > Appearance category)
  4. Font should be set to Menlo (Terminal > Appearance category)
  5. Add the following lines to the end of your .bash_profile (e.g. from within native Terminal, run: vi ~/.bash_profile, then add the two lines to the bottom of the file and save it.)
    export LC_ALL=en_US.UTF-8
    export LANG=en_US.UTF-8

  6. Map the following keystrokes so that they send character codes that are expected for Mac bash shell (Terminal > Emulation > Mapped Keys category)
    Option/Alt+Left --> \033b
    Option/Alt+Right --> \033f
    Home --> \033[H
    End --> \033[F

All times are GMT -6. The time now is 02:24 AM.