### TL;DR * any known working alternate to the path for terminal: `cmd.exe /Q /C "%c"` ? * ... on geany 1.38 on windows 10 20H2 * bash via msys2 is available too
+ 'was thinking about mintty (via msys2) but obviously, other terminals are welcome too + terminals with easy theming support are preferred
_will hide this comment myself as duplicate_
----
[[_TOC_]]
### Summary * Can't figure out what commands to specify on using a new path for terminal tool * Was trying to switch to some terminal which satisfies my requirements:
### Questions:
* Is the command for making it run on some other terminal known? * What is the helper file on linux? thinking about: maybe it's easier to call bash on mintty than cmd on mintty
### Details #### Thanks * I quite like the "F5 to run" option in geany, \ how it abstracts the running procedure for stuff with that `geany-run-helper.bat` file[^helperfile], it's nice * and even more so the super awesome "Build Menu"[^build] including predefined rules, as well as "make with custom targets". thanks a lot for such efficient and flexible implementation 😊
[^build]: `C:/Program Files/Geany/` `share/doc/geany/html/index.html#build-menu` [^helperfile]: `C:\Program Files\Geany` `libexec\geany\geany-run-helper.bat`
#### Problem * for "f5 to run", as the command `cmd.exe /Q /C %c` [^termpath][^cmdflags] shows already, it runs with `cmd` <-- as also suggested by extension `.bat` i guess * and `cmd` runs by default with `conhost` , which is not easily themeable. That's why I want to change it.
[^termpath]: Edit : Preferences (alt ^p) > tools > tools path : terminal [^cmdflags]: `/Q` echo off; `\C` carryout the string as command and terminate <-- `cmd /?` <-- [edu4java]
<!--- inkscape/inkscape-docs/manuals45 --->
[edu4java]: http://edu4java.com/en/concepts/ms-dos-commands-modifiers-parameters.html
#### Tries & Attempts * I tried theming conhost with colortool[^ct] but, suffice to say, it didn't work * To change to mintty (installed via Msys), I thought directly putting `mintty -e` as in: `mintty -e cmd.exe /Q /C %c` or `mintty -e cmd.exe /Q /C "%c"` but it didn't work
[^ct]: [src/tools/ColorTool] <-- [README.md#11] <-- [MS devblogs] <-- ddgo search : [light theme for conhost]
[src/tools/ColorTool]: https://github.com/microsoft/terminal/tree/main/src/tools/ColorTool [MS devblogs]: https://devblogs.microsoft.com/commandline/introducing-the-windows-console-c... [light theme for conhost]: https://duckduckgo.com/?q=light+theme+for+conhost&ia=web [README.md#11]: https://github.com/microsoft/terminal/blob/e1e6e662f9d00d55770c2c947066d7de1...
#### Teminal's requirements
| requirements | mintty | conhost | others? | --- | --- | --- | ---- | customisable font | v | v | | the font size corresponds one-to-one | v | **XX** | | default window size can be easily specified | v | v | | easily themeable | v | **XX** |
### Environment * OS: Windows 10 20H2 * Geany: 1.38 "Sulamar" (built on or after Oct 9 2021) * Mintty: mintty 3.6.1 (x86_64-pc-msys)
The `preferences->tools->terminal` command is the one used to run programs (`build->execute`) in a terminal emulator application (ie one that shows a window on the screen) so any messages are visible. As its a terminal `bash` is not applicable, for eg the default on Linux is `xterm`.
The script `geany-run-helper.bat` is what is passed as the command (ie the %c in `tools->terminal`) with arguments specifying the directory to run in, if the terminal should autoclose when the program exits or keep the terminal open so the user can read error messages, and the command to run. So any replacement for `cmd.exe` must interpret `.bat` scripts or `geany-run-helper.bat` needs to be re-written to an alternate interpreter. This is left as an exercise for the reader.
For hysterical (sorry that should read historical) reasons on Linux a new temporary "sh" run script is written every execute so there is no Linux equivalent of `geany-run-helper.bat`.
Macos is a whole 'nother world, we won't talk about it.
As [the requirement?] its a terminal `bash` is not applicable
* if you are talking about the requirement being of a terminal like xterm, * then, `cmd` is not a terminal either. it's a kind of shell in windows. * the terminal on windows in `conhost`. * you can verify this by running both these commands in other terminals, `cmd` will start this shell in that terminal, while `conhost` will launch a new window for this terminal.
a new temporary "sh" run script is written every execute
can u share that itself?
This is left as an exercise for the reader.
what? the "re-writing of the script" or "the replacement for the whole command: `cmd.exe /Q /C %c` "?
i have unhid my earlier comment - in case you missed that earlier....
cmd is not a terminal either.
IIUC `cmd` uses Windows Console to display output and get user input from a window if it is not already in one, so it is in fact a combination of terminal and shell. IIUC Geany is a GUI program, so it doesn't have a console, so when it spawns `cmd` a new console is opened. Launching `cmd` in an existing console obviously uses that console.
a new temporary "sh" run script is written every execute
can u share that itself?
https://github.com/geany/geany/blob/b9891f2912a7e7374e3121f74b587af1e7b3901d...
what? the "re-writing of the script" or "the replacement for the whole command: cmd.exe /Q /C %c "?
all of the above
all of the above
well 😅 , the whole point of this issue was asking if somebody knows the replacement for the command. i know that users have to do this on their own, but i was asking it as a community help sort of thing.
on a hindsight, yes, this is better suited as a "discussion" - sorry to file it as an issue. can u move it to discussions?
it is in fact a combination of terminal and shell
I think it's more like a combo of a starter script and a shell, but yeah, i get what u want to say
@elextr converted this issue into discussion #3303.
github-comments@lists.geany.org