1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-06 23:44:43 -04:00
elinks/src/terminal
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
..
color.c Doxygenate src/terminal/ 2007-07-27 18:33:33 +03:00
color.h Doxygenate src/terminal/ 2007-07-27 18:33:33 +03:00
draw.c Prevent internal errors when terminal width or height are very small 2007-09-14 11:49:03 +02:00
draw.h Trim trailing whitespaces. 2007-09-14 15:14:34 +02:00
event.c bug 1054: Don't abort downloads when closing a terminal. 2008-10-15 23:29:25 +03:00
event.h Bug 867: Request and recognize bracketed paste. 2008-01-14 23:53:56 +02:00
hardio.c Doxygenate src/terminal/ 2007-07-27 18:33:33 +03:00
hardio.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
itrm.h Merge branch 'elinks-0.12' into elinks-0.13 2008-02-03 22:30:46 +02:00
kbd.c Merge branch 'elinks-0.12' into elinks-0.13 2008-06-08 20:47:36 +03:00
kbd.h Bug 867: More comments. 2008-01-19 18:12:18 +02:00
key.inc Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
Makefile path_to_top -> top_builddir 2005-10-20 04:00:35 +02:00
mouse.c Doxygenate src/terminal/ 2007-07-27 18:33:33 +03:00
mouse.h terminal: Define separate structs for events passed via the interlink socket. 2006-08-06 20:02:39 +00:00
palette.inc Doxygen: Begin commands with @ not \. 2007-07-31 13:47:12 +03:00
screen.c Bug 824: Disable combining characters unless --enable-combining. 2008-01-19 20:58:22 +02:00
screen.h Doxygenate src/terminal/ 2007-07-27 18:33:33 +03:00
tab.c Check session- and domain-specific settings for many options 2007-08-30 21:11:51 +00:00
tab.h Move delayed_open to src/terminal/tab.c 2006-01-16 19:28:03 +00:00
terminal.c bug 1054: Don't abort downloads when closing a terminal. 2008-10-15 23:29:25 +03:00
terminal.h bug 1054: Don't abort downloads when closing a terminal. 2008-10-15 23:29:25 +03:00
TODO Initial commit of the HEAD branch of the ELinks CVS repository, as of 2005-09-15 15:58:31 +02:00
window.c Drop EVENT_TEXTAREA, use EVENT_RESIZE instead 2007-09-01 12:46:02 +00:00
window.h More doc comments about coordinates. 2007-08-29 09:57:18 +03:00