Kalle Olavi Niemitalo
2437d35904
Merge commit 'pasky.or.cz/elinks-0.12' into elinks-0.13
...
There were conflicts in src/document/css/ because 0.12.GIT switched
to LIST_OF(struct css_selector) and 0.13.GIT switched to struct
css_selector_set. Resolved by using LIST_OF(struct css_selector)
inside struct css_selector_set.
2007-07-28 03:22:29 +03:00
Kalle Olavi Niemitalo
4231b9d8d8
Doxygen: minor fixes in handle_trm
2007-07-28 02:34:20 +03:00
Kalle Olavi Niemitalo
8cfe7e026f
Doxygenate src/terminal/
2007-07-27 18:33:33 +03:00
Kalle Olavi Niemitalo
96176a8c77
Declare element types of lists.
2007-07-26 22:47:23 +03:00
Kalle Olavi Niemitalo
d3d2bb26c5
New macro LIST_OF for better Doxygen support.
2007-07-26 22:45:51 +03:00
Kalle Olavi Niemitalo
ab9e0821d6
Merge commit 'pasky.or.cz/elinks-0.12' into elinks-0.13
2007-07-22 18:48:45 +03:00
Kalle Olavi Niemitalo
b9b0088a86
Added TODO comments about TERM_EXEC_NEWWIN.
2007-07-18 18:42:54 +03:00
Kalle Olavi Niemitalo
8097929290
Merge with #elinks-0.12
2007-07-16 00:18:17 +03:00
Kalle Olavi Niemitalo
6117f8a164
Name the exec_on_terminal() fg values.
2007-07-15 23:46:18 +03:00
Kalle Olavi Niemitalo
eccc8c23f0
Merge with http://elinks.cz/elinks.git#elinks-0.12
2007-07-09 16:03:06 +03:00
Kalle Olavi Niemitalo
f6f5eeceb7
Compare screen_driver.name with strcmp, not memcmp.
...
screen_driver_change_hook was comparing only strlen(name) characters
and ignoring the '\0'. To reproduce the bug in ELinks 0.11.3 and
ELinks 0.12.GIT:
- Run TERM=screen elinks.
- In another terminal, run TERM=scr elinks. Quit this slave ELinks.
- Open the terminal options dialog and set 16 colors.
- Open the option manager and change the terminal.scr.colors option to
1 and back to 0.
- Note that ELinks no longer displays colors.
That bug could be fixed just by using len+1 instead of len. However,
there is also another bug: memcmp may compare the specified number of
bytes, even if some of the earlier ones differ; thus, it could in
principle read past the end of the malloc block and thereby crash
ELinks. Using strcmp may be a little slower but I do not believe it
could become a bottleneck.
2007-05-26 21:14:50 +03:00
Kalle Olavi Niemitalo
b904464e76
Document terminal._template_.m11_hack more and add comments.
2007-05-20 16:10:27 +03:00
Kalle Olavi Niemitalo
45d1750d03
Bug 914: Don't let UTF-8 I/O affect internal representations.
...
Use it for the actual I/O only. Previously, defining CONFIG_UTF8 and
enabling UTF-8 used to force many strings to the UTF-8 charset
regardless of the terminal charset option. Now, those strings always
follow the terminal charset. This fixes bug 914 which was caused
because _() returned strings in the terminal charset and functions
then assumed they were in UTF-8. This reduction in the effects of
UTF-8 I/O may also simplify future testing.
2007-05-20 15:31:02 +03:00
Kalle Olavi Niemitalo
36287949a0
Bug 914: Add terminal.utf8_cp, not yet read.
2007-05-20 13:50:47 +03:00
Kalle Olavi Niemitalo
61a901969f
Bug 914: Add screen_driver_opt.utf8_cp, not yet read.
2007-05-20 13:39:02 +03:00
Kalle Olavi Niemitalo
103ece2127
UTF-8, add_char_data: data can be UCS_NO_CHAR after all.
2007-05-20 10:54:02 +03:00
Kalle Olavi Niemitalo
7b701a5268
Whitespace and comments.
2007-05-19 23:45:38 +03:00
Kalle Olavi Niemitalo
2ef4c9776b
UTF-8, set_screen_driver_opt: Never use frame_seqs with UTF-8 I/O.
2007-05-19 23:40:38 +03:00
Kalle Olavi Niemitalo
094096bfdc
UTF-8: frame_freebsd isn't in CP437 so use a separate table for UTF-8 I/O.
2007-05-19 23:37:34 +03:00
Kalle Olavi Niemitalo
9f9ed498dd
UTF-8: Comment about frame_freebsd[].
2007-05-19 23:32:36 +03:00
Kalle Olavi Niemitalo
ff5fb6b707
UTF-8: Use frame_vt100_u even #ifdef CONFIG_UTF8.
...
Should perhaps have been part of the previous commit.
2007-05-19 23:26:10 +03:00
Kalle Olavi Niemitalo
1fbdc0fe37
UTF-8: Make UTF-8 I/O affect frame characters even #ifdef CONFIG_UTF8.
2007-05-19 14:50:22 +03:00
Kalle Olavi Niemitalo
5b3ec40a3b
UTF-8, add_char_data: Comment about UCS_NO_CHAR.
2007-05-19 14:49:39 +03:00
Kalle Olavi Niemitalo
84b7bc3db7
UTF-8: Remove screen_driver_opt.utf8, which is no longer used.
2007-05-19 14:49:19 +03:00
Kalle Olavi Niemitalo
fc8f0f1623
UTF-8, use_utf8_io: Test driver->opt.charsets[0] even #ifdef CONFIG_UTF8.
...
driver->opt.utf8 is no longer read and will soon be removed.
2007-05-19 14:48:59 +03:00
Kalle Olavi Niemitalo
1eaab825c7
UTF-8: Define and set screen_driver_opt.charsets even #ifdef CONFIG_UTF8.
...
However, the stored values are not yet read in this commit.
2007-05-19 14:48:30 +03:00
Kalle Olavi Niemitalo
ca60a69b57
UTF-8, set_screen_driver_opt: Don't test driver->opt.utf8 after utf8_io.
...
They have the same value so one test will suffice.
2007-05-19 14:48:10 +03:00
Kalle Olavi Niemitalo
8369e9bd66
UTF-8, set_screen_driver_opt: Shrink #ifdef CONFIG_UTF8 regions.
2007-05-19 14:46:41 +03:00
Kalle Olavi Niemitalo
ac74e2db60
UTF-8, set_screen_driver_opt: Duplicate CONFIG_UTF8 code.
2007-05-19 14:46:19 +03:00
Kalle Olavi Niemitalo
e7eecbfa70
UTF-8: Change type of constants to struct screen_driver_opt.
...
We don't need a full struct screen_driver here.
2007-05-19 14:31:24 +03:00
Kalle Olavi Niemitalo
ce8096e5ec
UTF-8: Leave driver->opt initialization to set_screen_driver_opt.
...
Don't bother to initialize driver->opt with memcpy in add_screen_driver.
2007-05-19 14:25:34 +03:00
Kalle Olavi Niemitalo
62ef1e8684
UTF-8: Rename update_screen_driver to set_screen_driver_opt.
2007-05-19 14:24:41 +03:00
Kalle Olavi Niemitalo
93974d653e
UTF-8, update_screen_driver: Restore all original options.
2007-05-19 14:24:23 +03:00
Kalle Olavi Niemitalo
883920ba68
UTF-8: New struct screen_driver_opt engulfs most of struct screen_driver.
...
No behaviour changes yet, although padding may differ.
2007-05-19 14:24:00 +03:00
Kalle Olavi Niemitalo
609b4f652e
UTF-8, update_screen_driver: First read the "charset" option.
2007-05-19 14:23:16 +03:00
Kalle Olavi Niemitalo
7a1304677a
UTF-8, update_screen_driver: A small rearrangement.
...
This does not change the behaviour but will help later changes.
2007-05-19 14:23:00 +03:00
Laurent MONIN
3ae299c3ca
Prevent internal errors when terminal width or height are very small
...
(1x1 was fatal).
2007-04-27 17:55:12 +02:00
Kalle Olavi Niemitalo
443db69980
Don't mark undisplayed names of modules for translation.
...
Exclude unneeded header files. This partially reverts commit
90980a944e
, with permission.
2007-03-23 00:51:56 +02:00
Laurent MONIN
90980a944e
Mark all module names for translation and include needed header files.
2007-03-21 11:01:06 +01:00
Kalle Olavi Niemitalo
44adb76799
Use add_string_to_string where applicable.
2007-03-18 20:29:08 +02:00
Kalle Olavi Niemitalo
801d520ddd
Fix compiler errors without HAVE_VARIADIC_MACROS.
2007-03-11 12:22:02 +02:00
Kalle Olavi Niemitalo
2b7788614f
Type-check button arguments of msg_box.
...
Don't cast function pointers; calling functions via pointers of
incorrect types is not guaranteed to work. Instead, define the
functions with the desired types, and make them cast the incoming
parameters. Or define wrapper functions if the return types don't
match.
really_exit_prog wasn't being used outside src/dialogs/menu.c,
and I had to change its parameter type, so it's now static.
2007-03-10 23:50:56 +02:00
Laurent MONIN
f2916d8646
unblock_itrm(),block_itrm(): drop unused parameter fd.
2007-03-05 22:54:24 +01:00
Kalle Olavi Niemitalo
3602899e3e
palette.inc: Comment fixes.
2007-03-03 09:46:51 +02:00
Kalle Olavi Niemitalo
0bd0dd160e
palette256: Comment about "web-safe" colors.
2007-02-27 10:31:18 +02:00
Kalle Olavi Niemitalo
76be98030a
Bug 890, palette256: Change colors 0-15 to match xterm defaults.
2007-02-27 03:56:43 +02:00
Witold Filipczyk
b81bcd8307
Removed the buggy code.
2007-01-28 17:45:24 +02:00
Kalle Olavi Niemitalo
f4709c3794
Bug 882: Replace C1 controls with spaces in UTF-8 to the terminal.
2007-01-27 11:12:22 +02:00
Kalle Olavi Niemitalo
564a6b9602
Bug 882, add_char_data: Document the charsets being used.
2007-01-27 10:25:51 +02:00
Kalle Olavi Niemitalo
5882ec0ce7
Make color256_seqs and color_true_seqs const.
2007-01-25 01:04:19 +02:00