# HG changeset patch # User Markus Mützel # Date 1701243675 -3600 # Wed Nov 29 08:41:15 2023 +0100 # Branch stable # Node ID 62d698f4dbdff5fdbbdf9082827a274b286b98bf # Parent 38318e51f27f78d760e4741cc2829cb8c51a0fdd Show warning for incompatible terminal on each startup on Windows (bug #62791). * scripts/startup/site-rcfile: Display warning on startup for incompatible terminal setting on Windows. diff -r 38318e51f27f -r 62d698f4dbdf scripts/startup/site-rcfile --- a/scripts/startup/site-rcfile Tue Nov 28 22:02:33 2023 -0800 +++ b/scripts/startup/site-rcfile Wed Nov 29 08:41:15 2023 +0100 @@ -5,3 +5,13 @@ ## ## This file contains commands that should be executed each time Octave starts ## for every user at this site. + +if ispc () && isguirunning () ... + && ~strcmp (winqueryreg ("HKEY_CURRENT_USER", 'Console\%%Startup', "DelegationConsole"), ... + "{B23D10C0-E52E-411E-9D5B-C09FDF709C7D}") + warning ("octave:terminal-app", ... + ["WARNING: Microsoft's new Terminal App is not compatible with Octave.\n", ... + "Please follow the instructions on the following page and set the ", ... + "default terminal to \"Windows Console Host\":\n", ... + "https://devblogs.microsoft.com/commandline/windows-terminal-as-your-default-command-line-experience/"]); +endif