kingToolbox / WindTerm

A professional cross-platform SSH/Sftp/Shell/Telnet/Serial terminal.
https://kingtoolbox.github.io
23k stars 1.78k forks source link

How to open WindTerm in a chosen location ? #1960

Open utilisateuralpha opened 11 months ago

utilisateuralpha commented 11 months ago

Hi How to open WindTerm in a chosen location ?

The command 'WindTerm path' always opens the console in the $HOME directory

kingToolbox commented 10 months ago

WindTerm currently does not support being launched via the command line. Subsequent versions will support it. But if you want to change the working path of the built-in shell sessions, you can modify Session Settings Dialog - Shell - Shell - Process - Working directory to the path you desire.

utilisateuralpha commented 6 months ago

The support for running WindTerm via the command line is still not implemented! Is there a date scheduled?

kingToolbox commented 6 months ago

You reminded me that due to the upcoming upgrade to version Qt 6.7, this will result in WindTerm 2.7.0 being the last version that supports low version operating systems like Windows 7, Windows 8.1, macOS 10.13, macOS 10.14, macOS 10.15, Ubuntu 18.04 and etc. So let's go with this version.

Can you describe all the command line options you would like, and I will try my best to implement them.

utilisateuralpha commented 6 months ago

Here is an example of the options that can be implemented for command line mode. What interests me is the flag --directory Thank you very much for your help

-h, --help 
display help text for a command line

--directory=xxx
open a shell in a directory

--window
open a new window

--session
open a new session

--command=xxx
run a command in the terminal

--profile=xxx
pen a tab with specified profile

-v, --verbose
give a much informations of diagnostic

--version
give the version of the soft windterm
kingToolbox commented 6 months ago

Okay, no problem. Most of the options are feasible. Let's make a version like this first. If you have any additional requirements, you can add them after trying it out.

internelp commented 1 month ago

Opening a new connection from the command line is also useful.

-newwin [protocol://][user[:password]@]host[:port]
-newwin $SESSION_PATH$
Creates a new connection in the new window

-newtab [protocol://][user[:password]@]host[:port]
-newtab $SESSION_PATH$
Creates a new connection in the new tab

-URL [protocol://][user[:password]@]host[:port] 
Start a connection with URL. 
Example: WindTerm.exe -url ssh://user1:password@192.168.1.17:22

-i $private_key
Use putlic key authentication.
Example: WindTerm.exe -url ssh://user1@192.168.1.17:22 -i my_private_key