1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00
elinks/src/scripting
Kalle Olavi Niemitalo 84e19d0e4e bug 1054: Don't abort downloads when closing a terminal.
Except if they have external handlers.

When ELinks receives an event from a terminal, move that terminal to
the beginning of the global "terminals" list, so that the terminals
are always sorted according to the time of the most recent use.  Note,
this affects the numbering of bookmark folders in session snapshots.

Add get_default_terminal(), which returns the most recently used
terminal that is still open.  Use that in various places that
previously used terminals.prev or terminals.next.  Four functions
fetch the size of the terminal for User-Agent headers, and
get_default_terminal() is not really right, but neither was the
original code; add TODO comments in those functions.

When the user chooses "Background and Notify", associate the download
with the terminal where the dialog box is.  So any later messages will
then appear in that terminal, if it is still open.  However, don't
change the terminal if the download has an external handler.

When a download gets some data, don't immediately check the associated
terminal.  Instead, wait for the download to end.  Then, if the
terminal of the download has been closed, use get_default_terminal()
instead.  If there is no default terminal either, just skip any
message boxes.
2008-10-15 23:29:25 +03:00
..
guile Mark all module names for translation and include needed header files. 2007-03-21 11:01:06 +01:00
lua Name the exec_on_terminal() fg values. 2007-07-15 23:46:18 +03:00
perl Let Perl scripts dynamically load libraries. 2008-09-27 21:58:08 +03:00
python Bug 1015: Define and use Py_ssize_t. 2008-06-09 23:18:03 +03:00
ruby bug 1054: Don't abort downloads when closing a terminal. 2008-10-15 23:29:25 +03:00
smjs 1031: JS_SetErrorReporter only once per JSRuntime. 2008-09-07 20:17:25 +03:00
Makefile Cosmetic change. 2006-01-12 18:44:26 +01:00
scripting.c bug 1054: Don't abort downloads when closing a terminal. 2008-10-15 23:29:25 +03:00
scripting.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
TODO Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00