Discussion:
n00b question re: Terminate Application, WinEdt 6
Hubert Lam
2010-10-05 23:18:27 UTC
Permalink
Hi all

Sorry to be abrupt, but despite having used WinEdt for 5+ years now I'm
still a n00b :(

Has anyone managed to figure out the shortcut key to Terminate
Application running in the in-built console? It's quite annoying to
click on the "X" button all the time.

Many thanks

Hubert Lam
Sydney
Nicolas Vaughan
2010-10-05 23:30:08 UTC
Permalink
Ditto.
Cheers,
Nicolas
Post by Hubert Lam
Hi all
Sorry to be abrupt, but despite having used WinEdt for 5+ years now I'm
still a n00b :(
Has anyone managed to figure out the shortcut key to Terminate
Application running in the in-built console? It's quite annoying to
click on the "X" button all the time.
Many thanks
Hubert Lam
Sydney
WinEdt Team
2010-10-06 20:19:48 UTC
Permalink
Post by Nicolas Vaughan
Ditto.
Cheers,
Nicolas
I am afraid I don't speak n00bish but it is good to see that the
language is alive and well:-)
Post by Nicolas Vaughan
Post by Hubert Lam
Hi all
Sorry to be abrupt, but despite having used WinEdt for 5+ years now I'm
still a n00b :(
Has anyone managed to figure out the shortcut key to Terminate
Application running in the in-built console? It's quite annoying to
click on the "X" button all the time.
I don't really know what exactly you want to terminate or even what
console you are referring to. If you have a habit of terminating
applications by clicking X (closing their console while they are
running) I probably don't want to know either!

Assuming that you are trying to hide WinEdt's console (docked at
the bottom of WinEdt Window) try Shift+Ctrl+C (see Accessories
Menu -- but then again, perhaps you should not have a look at the
menu: you might accidentally learn something and you would loose a
claim to a self-bestowed n00b title:-). By default, this one will
toggle the visibility of WinEdt's Console (of course this can be
changed but we probably shouldn't go there just yet).

You could also make it disappear automatically after the
compilation by changing the options in the Execution Modes dialog.

If you really want to terminate/ brutally kill running applications
perhaps you should explain what exactly is going on (before you are
introduced to a secret handshake that may very well be required
here:-)

Best regards,

alex
Nicolas Vaughan
2010-10-06 20:42:09 UTC
Permalink
Hi alex,
Thanks for your reply. The thing is as follows: when you compile a TeX
document, chances are that you've got syntax errors. So the usual thing to
do in WinEdt is to click the "X" (Terminate Application) button and start
debugging. What I and presumably) Hubert were seeking is for a WinEdt
keyboard shortcut to break the process. You know: Ctrl F9 to compile...
craps!... and something else to break the process and debug.
As you see, there's nothing terribly high at stake here, just a few centi-
or milliseconds to spare by not grabbing the mouse.

Cheers,

Nicolas
Post by Nicolas Vaughan
Ditto.
Post by Nicolas Vaughan
Cheers,
Nicolas
I am afraid I don't speak n00bish but it is good to see that the
language is alive and well:-)
Post by Nicolas Vaughan
Post by Hubert Lam
Hi all
Sorry to be abrupt, but despite having used WinEdt for 5+ years now I'm
still a n00b :(
Has anyone managed to figure out the shortcut key to Terminate
Application running in the in-built console? It's quite annoying to
click on the "X" button all the time.
I don't really know what exactly you want to terminate or even what
console you are referring to. If you have a habit of terminating
applications by clicking X (closing their console while they are
running) I probably don't want to know either!
Assuming that you are trying to hide WinEdt's console (docked at
the bottom of WinEdt Window) try Shift+Ctrl+C (see Accessories
Menu -- but then again, perhaps you should not have a look at the
menu: you might accidentally learn something and you would loose a
claim to a self-bestowed n00b title:-). By default, this one will
toggle the visibility of WinEdt's Console (of course this can be
changed but we probably shouldn't go there just yet).
You could also make it disappear automatically after the
compilation by changing the options in the Execution Modes dialog.
If you really want to terminate/ brutally kill running applications
perhaps you should explain what exactly is going on (before you are
introduced to a secret handshake that may very well be required
here:-)
Best regards,
alex
Antonio Fortin
2010-10-06 22:51:16 UTC
Permalink
Hi Nicolas,
Try typing X Enter in WinEdt's console.

Best,
Antonio
Post by Nicolas Vaughan
Hi alex,
Thanks for your reply. The thing is as follows: when you compile a
TeX document, chances are that you've got syntax errors. So the
usual thing to do in WinEdt is to click the "X" (Terminate
Application) button and start debugging. What I and presumably)
Hubert were seeking is for a WinEdt keyboard shortcut to break the
process. You know: Ctrl F9 to compile... craps!... and something
else to break the process and debug.
As you see, there's nothing terribly high at stake here, just a few
centi- or milliseconds to spare by not grabbing the mouse.
Cheers,
Nicolas
Ditto.
Cheers,
Nicolas
I am afraid I don't speak n00bish but it is good to see that the
language is alive and well:-)
Post by Hubert Lam
Hi all
Sorry to be abrupt, but despite having used WinEdt for 5+ years now I'm
still a n00b :(
Has anyone managed to figure out the shortcut key to Terminate
Application running in the in-built console? It's quite annoying to
click on the "X" button all the time.
I don't really know what exactly you want to terminate or even what
console you are referring to. If you have a habit of terminating
applications by clicking X (closing their console while they are
running) I probably don't want to know either!
Assuming that you are trying to hide WinEdt's console (docked at
the bottom of WinEdt Window) try Shift+Ctrl+C (see Accessories
Menu -- but then again, perhaps you should not have a look at the
menu: you might accidentally learn something and you would loose a
claim to a self-bestowed n00b title:-). By default, this one will
toggle the visibility of WinEdt's Console (of course this can be
changed but we probably shouldn't go there just yet).
You could also make it disappear automatically after the
compilation by changing the options in the Execution Modes dialog.
If you really want to terminate/ brutally kill running applications
perhaps you should explain what exactly is going on (before you are
introduced to a secret handshake that may very well be required
here:-)
Best regards,
alex
--
Antonio Fortin
mailto:***@gmail.com
Nicolas Vaughan
2010-10-06 23:03:14 UTC
Permalink
Hi Antonio,
Thanks. That's the TeX way of sorting this out. There should also be a
WinEdt way, though.
Cheers,
Nicolas
Post by Antonio Fortin
Hi Nicolas,
Try typing X Enter in WinEdt's console.
Best,
Antonio
Post by Nicolas Vaughan
Hi alex,
Thanks for your reply. The thing is as follows: when you compile a
TeX document, chances are that you've got syntax errors. So the
usual thing to do in WinEdt is to click the "X" (Terminate
Application) button and start debugging. What I and presumably)
Hubert were seeking is for a WinEdt keyboard shortcut to break the
process. You know: Ctrl F9 to compile... craps!... and something
else to break the process and debug.
As you see, there's nothing terribly high at stake here, just a few
centi- or milliseconds to spare by not grabbing the mouse.
Cheers,
Nicolas
Ditto.
Cheers,
Nicolas
I am afraid I don't speak n00bish but it is good to see that the
language is alive and well:-)
Post by Hubert Lam
Hi all
Sorry to be abrupt, but despite having used WinEdt for 5+ years now I'm
still a n00b :(
Has anyone managed to figure out the shortcut key to Terminate
Application running in the in-built console? It's quite annoying to
click on the "X" button all the time.
I don't really know what exactly you want to terminate or even what
console you are referring to. If you have a habit of terminating
applications by clicking X (closing their console while they are
running) I probably don't want to know either!
Assuming that you are trying to hide WinEdt's console (docked at
the bottom of WinEdt Window) try Shift+Ctrl+C (see Accessories
Menu -- but then again, perhaps you should not have a look at the
menu: you might accidentally learn something and you would loose a
claim to a self-bestowed n00b title:-). By default, this one will
toggle the visibility of WinEdt's Console (of course this can be
changed but we probably shouldn't go there just yet).
You could also make it disappear automatically after the
compilation by changing the options in the Execution Modes dialog.
If you really want to terminate/ brutally kill running applications
perhaps you should explain what exactly is going on (before you are
introduced to a secret handshake that may very well be required
here:-)
Best regards,
alex
--
Antonio Fortin
Helmut Haberzettl
2010-10-07 01:27:56 UTC
Permalink
Alex,

I think you might have misunderstood Hubert's question. I have the same
question. I've puzzled over it for a while, but couldn't find anything
in the documentation.

We don't want to hide the application console, but we'd like to know
which command we need to terminate the application in the console, i.e.,
the same thing that happens when one mouse-clicks on the red X in the
top toolbar of the console frame (the button that produces the balloon
message "Terminate Application" when the cursor hovers over it).
Specifically, my questions are:
(1) Is there a shortcut for "Terminate Application"?
(2) Is there a macro function (similar to clicking the red X) that does
terminate the application, which one can use in customized macros?

Thanks,
--Helmut
Post by WinEdt Team
Post by Nicolas Vaughan
Ditto.
Cheers,
Nicolas
I am afraid I don't speak n00bish but it is good to see that the
language is alive and well:-)
Post by Nicolas Vaughan
Post by Hubert Lam
Hi all
Sorry to be abrupt, but despite having used WinEdt for 5+ years now
I'm
Post by Hubert Lam
still a n00b :(
Has anyone managed to figure out the shortcut key to Terminate
Application running in the in-built console? It's quite annoying to
click on the "X" button all the time.
I don't really know what exactly you want to terminate or even what
console you are referring to. If you have a habit of terminating
applications by clicking X (closing their console while they are
running) I probably don't want to know either!
Assuming that you are trying to hide WinEdt's console (docked at
the bottom of WinEdt Window) try Shift+Ctrl+C (see Accessories
Menu -- but then again, perhaps you should not have a look at the
menu: you might accidentally learn something and you would loose a
claim to a self-bestowed n00b title:-). By default, this one will
toggle the visibility of WinEdt's Console (of course this can be
changed but we probably shouldn't go there just yet).
You could also make it disappear automatically after the
compilation by changing the options in the Execution Modes dialog.
If you really want to terminate/ brutally kill running applications
perhaps you should explain what exactly is going on (before you are
introduced to a secret handshake that may very well be required
here:-)
Best regards,
alex
Hubert Lam
2010-10-07 08:43:14 UTC
Permalink
Helmut is understanding myself perfectly here.

Hubert

On Wed, 06 Oct 2010 21:27 -0400, "Helmut Haberzettl"
Post by Helmut Haberzettl
Alex,
I think you might have misunderstood Hubert's question. I have the same
question. I've puzzled over it for a while, but couldn't find anything
in the documentation.
WinEdt Team
2010-10-07 22:22:47 UTC
Permalink
Post by Helmut Haberzettl
I think you might have misunderstood Hubert's question. I have the same
question. I've puzzled over it for a while, but couldn't find anything
in the documentation.
We don't want to hide the application console, but we'd like to know
which command we need to terminate the application in the console, i.e.,
the same thing that happens when one mouse-clicks on the red X in the
top toolbar of the console frame (the button that produces the balloon
message "Terminate Application" when the cursor hovers over it).
(1) Is there a shortcut for "Terminate Application"?
(2) Is there a macro function (similar to clicking the red X) that does
terminate the application, which one can use in customized macros?
There is a macro TerminateProcess; that can be put in the menu and
assigned a shortcut of your choice. Defaults do (and will) NOT
provide a shortcut because this macro should not be used unless
something went badly wrong and the application refuses to respond
(it is pretty much the same as killing the process from Windows
Task Manager [or using the infamous "kill -9" command on UNIX]).
Clicking on the "red X" (or Alt+F4) in Windows Console is just as
bad and unsafe...

If a process is killed in this manner you will occasionally:

1. Experience "locked" output files next time you try to run the
compiler (you will have to restart WinEdt or Windows to release
them)

2. Some resources will be wasted each time you terminate process in
this fashion (restarting WinEdt or Windows will be required to
release them).

3. You can get Access Violation (if the application was terminated
in a particularly delicate state) and WinEdt can sometimes be
terminated as well since the call originated from within it.

4. Output files will be corrupted. This may not look like a concern
(since you are about to fix the error and recompile). However,
should latex start reporting "run away arguments" because the
contents of aux files (which will be loaded next time) was not
flushed when the process was killed in a previous run and the files
are in unpredictable state: do not panic. I receive a few "urgent"
reports like this every month (and that is a few too many!). You
will have to find and erase the problematic aux files (and possibly
other corrupted files created during "killed" compilation). Some
users rename the source file or move it to another folder (after
they try to reinstall MiKTeX and WinEdt a few times -- to no avail,
of course:-).

Knowing and understanding this (and no, it is not a bug in WinEdt)
I don't use this method of killing a process on a regular basis
(even if the odds for above problems to occur are pretty low and
resource leaks on a powerful enough machine may be undetectable).
Thus I don't need a shortcut for it...

However, if that's what you want to do: WinEdt's Cancel Shortcut
(by default Shift+ESC) will kill the process in the console. And
you can use TerminateProcess; macro and assign a shortcut of your
choice to this action. Note that you must first shift focus from
console (by default ESC key) before the shortcuts in the menu
become effective.

Responding by "x" (or "e" or "q" etc...) when prompted by TeX (as
suggested by Antonio) is not the same as killing TeX from outside.
This IS a "proper (very different) way" of terminating TeX (giving
it a chance to release and cleanup whatever needs to be done before
exiting)...

This being said, whatever works for you is fine with me (as long as
I don't have to deal with the consequences). Happy TeXing:-)

Best regards,

alex
Nicolas Vaughan
2010-10-07 22:41:28 UTC
Permalink
Shift ESC, thanks alex! That was the one!
Cheers,
Nicolas
Post by Helmut Haberzettl
I think you might have misunderstood Hubert's question. I have the same
Post by Helmut Haberzettl
question. I've puzzled over it for a while, but couldn't find anything
in the documentation.
We don't want to hide the application console, but we'd like to know
which command we need to terminate the application in the console, i.e.,
the same thing that happens when one mouse-clicks on the red X in the
top toolbar of the console frame (the button that produces the balloon
message "Terminate Application" when the cursor hovers over it).
(1) Is there a shortcut for "Terminate Application"?
(2) Is there a macro function (similar to clicking the red X) that does
terminate the application, which one can use in customized macros?
There is a macro TerminateProcess; that can be put in the menu and
assigned a shortcut of your choice. Defaults do (and will) NOT
provide a shortcut because this macro should not be used unless
something went badly wrong and the application refuses to respond
(it is pretty much the same as killing the process from Windows
Task Manager [or using the infamous "kill -9" command on UNIX]).
Clicking on the "red X" (or Alt+F4) in Windows Console is just as
bad and unsafe...
1. Experience "locked" output files next time you try to run the
compiler (you will have to restart WinEdt or Windows to release
them)
2. Some resources will be wasted each time you terminate process in
this fashion (restarting WinEdt or Windows will be required to
release them).
3. You can get Access Violation (if the application was terminated
in a particularly delicate state) and WinEdt can sometimes be
terminated as well since the call originated from within it.
4. Output files will be corrupted. This may not look like a concern
(since you are about to fix the error and recompile). However,
should latex start reporting "run away arguments" because the
contents of aux files (which will be loaded next time) was not
flushed when the process was killed in a previous run and the files
are in unpredictable state: do not panic. I receive a few "urgent"
reports like this every month (and that is a few too many!). You
will have to find and erase the problematic aux files (and possibly
other corrupted files created during "killed" compilation). Some
users rename the source file or move it to another folder (after
they try to reinstall MiKTeX and WinEdt a few times -- to no avail,
of course:-).
Knowing and understanding this (and no, it is not a bug in WinEdt)
I don't use this method of killing a process on a regular basis
(even if the odds for above problems to occur are pretty low and
resource leaks on a powerful enough machine may be undetectable).
Thus I don't need a shortcut for it...
However, if that's what you want to do: WinEdt's Cancel Shortcut
(by default Shift+ESC) will kill the process in the console. And
you can use TerminateProcess; macro and assign a shortcut of your
choice to this action. Note that you must first shift focus from
console (by default ESC key) before the shortcuts in the menu
become effective.
Responding by "x" (or "e" or "q" etc...) when prompted by TeX (as
suggested by Antonio) is not the same as killing TeX from outside.
This IS a "proper (very different) way" of terminating TeX (giving
it a chance to release and cleanup whatever needs to be done before
exiting)...
This being said, whatever works for you is fine with me (as long as
I don't have to deal with the consequences). Happy TeXing:-)
Best regards,
alex
Helmut Haberzettl
2010-10-07 22:45:07 UTC
Permalink
Thank you very much, Alex, for your very thorough answer which answers
all my questions and then some. Much appreciated.

The only instance when I want to use this is when LaTeX stops with an
error message and waits for user input with a "?" prompt. I've tried using
SetConsoleText("x%\",1,1);
to send an "x" and a CRLF to the console, hoping that this would be
equivalent to actually typing "x" into the console window and then
pressing ENTER (which would, as you point out, terminate LaTeX
gracefully). Well, it is not -- much to my surprise. The "x" does get
printed into the console, the CRLF gets executed, but the process
actually only stops when I go to the console with the cursor and then
press ENTER. -- Isn't "%\" the same as if I pressed ENTER?

Best regards,
--Helmut
Post by WinEdt Team
Post by Helmut Haberzettl
I think you might have misunderstood Hubert's question. I have the same
question. I've puzzled over it for a while, but couldn't find anything
in the documentation.
We don't want to hide the application console, but we'd like to know
which command we need to terminate the application in the console, i.e.,
the same thing that happens when one mouse-clicks on the red X in the
top toolbar of the console frame (the button that produces the balloon
message "Terminate Application" when the cursor hovers over it).
(1) Is there a shortcut for "Terminate Application"?
(2) Is there a macro function (similar to clicking the red X) that does
terminate the application, which one can use in customized macros?
There is a macro TerminateProcess; that can be put in the menu and
assigned a shortcut of your choice. Defaults do (and will) NOT
provide a shortcut because this macro should not be used unless
something went badly wrong and the application refuses to respond
(it is pretty much the same as killing the process from Windows
Task Manager [or using the infamous "kill -9" command on UNIX]).
Clicking on the "red X" (or Alt+F4) in Windows Console is just as
bad and unsafe...
1. Experience "locked" output files next time you try to run the
compiler (you will have to restart WinEdt or Windows to release
them)
2. Some resources will be wasted each time you terminate process in
this fashion (restarting WinEdt or Windows will be required to
release them).
3. You can get Access Violation (if the application was terminated
in a particularly delicate state) and WinEdt can sometimes be
terminated as well since the call originated from within it.
4. Output files will be corrupted. This may not look like a concern
(since you are about to fix the error and recompile). However,
should latex start reporting "run away arguments" because the
contents of aux files (which will be loaded next time) was not
flushed when the process was killed in a previous run and the files
are in unpredictable state: do not panic. I receive a few "urgent"
reports like this every month (and that is a few too many!). You
will have to find and erase the problematic aux files (and possibly
other corrupted files created during "killed" compilation). Some
users rename the source file or move it to another folder (after
they try to reinstall MiKTeX and WinEdt a few times -- to no avail,
of course:-).
Knowing and understanding this (and no, it is not a bug in WinEdt)
I don't use this method of killing a process on a regular basis
(even if the odds for above problems to occur are pretty low and
resource leaks on a powerful enough machine may be undetectable).
Thus I don't need a shortcut for it...
However, if that's what you want to do: WinEdt's Cancel Shortcut
(by default Shift+ESC) will kill the process in the console. And
you can use TerminateProcess; macro and assign a shortcut of your
choice to this action. Note that you must first shift focus from
console (by default ESC key) before the shortcuts in the menu
become effective.
Responding by "x" (or "e" or "q" etc...) when prompted by TeX (as
suggested by Antonio) is not the same as killing TeX from outside.
This IS a "proper (very different) way" of terminating TeX (giving
it a chance to release and cleanup whatever needs to be done before
exiting)...
This being said, whatever works for you is fine with me (as long as
I don't have to deal with the consequences). Happy TeXing:-)
Best regards,
alex
Pell
2014-05-02 14:40:53 UTC
Permalink
I had to read a lot simply for shift-esc, thanks though

Loading...