ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvt.h
(Generate patch)

Comparing rxvt-unicode/src/rxvt.h (file contents):
Revision 1.553 by root, Tue Jun 25 03:35:01 2019 UTC vs.
Revision 1.568 by root, Sun Nov 21 23:34:23 2021 UTC

23#if HAVE_WCHAR_H 23#if HAVE_WCHAR_H
24# include <wchar.h> 24# include <wchar.h>
25#else 25#else
26// stdlib.h might provide it 26// stdlib.h might provide it
27#endif 27#endif
28
29#include <libptytty.h>
28 30
29// we assume that Xlib.h defines XPointer, and it does since at least 1994... 31// we assume that Xlib.h defines XPointer, and it does since at least 1994...
30 32
31extern "C" { 33extern "C" {
32#include <X11/Xlib.h> 34#include <X11/Xlib.h>
88#include "rxvtfont.h" 90#include "rxvtfont.h"
89#include "rxvttoolkit.h" 91#include "rxvttoolkit.h"
90#include "rxvtimg.h" 92#include "rxvtimg.h"
91#include "scrollbar.h" 93#include "scrollbar.h"
92#include "ev_cpp.h" 94#include "ev_cpp.h"
93#include "libptytty.h"
94 95
95#include "rxvtperl.h" 96#include "rxvtperl.h"
96 97
97// try to avoid some macros to decrease code size, on some systems 98// try to avoid some macros to decrease code size, on some systems
98#if ENABLE_MINIMAL 99#if ENABLE_MINIMAL
123#endif 124#endif
124 125
125/****************************************************************************/ 126/****************************************************************************/
126 127
127// exception thrown on fatal (per-instance) errors 128// exception thrown on fatal (per-instance) errors
128class rxvt_failure_exception { }; 129class rxvt_failure_exception : public std::exception
130{
131public:
132 const char *
133 what () const noexcept override
134 {
135 return "";
136 }
137};
129 138
130// exception thrown when the command parser runs out of input data 139// exception thrown when the command parser runs out of input data
131class out_of_input { }; 140class out_of_input { };
132 141
133/* 142/*
135 * PROTOTYPES 144 * PROTOTYPES
136 ***************************************************************************** 145 *****************************************************************************
137 */ 146 */
138// main.C 147// main.C
139#define SET_LOCALE(locale) rxvt_set_locale (locale) 148#define SET_LOCALE(locale) rxvt_set_locale (locale)
140extern bool rxvt_set_locale (const char *locale) NOTHROW; 149extern bool rxvt_set_locale (const char *locale) noexcept;
141extern void rxvt_push_locale (const char *locale) NOTHROW; 150extern void rxvt_push_locale (const char *locale) noexcept;
142extern void rxvt_pop_locale () NOTHROW; 151extern void rxvt_pop_locale () noexcept;
143void rxvt_init (); 152void rxvt_init ();
144 153
145// misc.C 154// misc.C
146char * rxvt_wcstombs (const wchar_t *str, int len = -1); 155char * rxvt_wcstombs (const wchar_t *str, int len = -1);
147wchar_t * rxvt_mbstowcs (const char *str, int len = -1); 156wchar_t * rxvt_mbstowcs (const char *str, int len = -1);
148char * rxvt_wcstoutf8 (const wchar_t *str, int len = -1); 157char * rxvt_wcstoutf8 (const wchar_t *str, int len = -1);
149wchar_t * rxvt_utf8towcs (const char *str, int len = -1); 158wchar_t * rxvt_utf8towcs (const char *str, int len = -1);
150 159
151const char * rxvt_basename (const char *str) NOTHROW; 160const char * rxvt_basename (const char *str) noexcept;
152void rxvt_vlog (const char *fmt, va_list arg_ptr) NOTHROW; 161void rxvt_vlog (const char *fmt, va_list arg_ptr) noexcept;
153void rxvt_log (const char *fmt,...) NOTHROW; 162void rxvt_log (const char *fmt,...) noexcept;
154void rxvt_warn (const char *fmt,...) NOTHROW; 163void rxvt_warn (const char *fmt,...) noexcept;
155ecb_noreturn ecb_cold 164ecb_noreturn ecb_cold
156void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)); 165void rxvt_fatal (const char *fmt, ...);
157ecb_noreturn ecb_cold 166ecb_noreturn ecb_cold
158void rxvt_exit_failure () THROW ((class rxvt_failure_exception)); 167void rxvt_exit_failure ();
159 168
160void * rxvt_malloc (size_t size); 169void * rxvt_malloc (size_t size);
161void * rxvt_calloc (size_t number, size_t size); 170void * rxvt_calloc (size_t number, size_t size);
162void * rxvt_realloc (void *ptr, size_t size); 171void * rxvt_realloc (void *ptr, size_t size);
163 172
164char * rxvt_strtrim (char *str) NOTHROW; 173char * rxvt_strtrim (char *str) noexcept;
165char ** rxvt_strsplit (char delim, const char *str) NOTHROW; 174char ** rxvt_strsplit (char delim, const char *str) noexcept;
166 175
167static inline void 176static inline void
168rxvt_free_strsplit (char **ptr) NOTHROW 177rxvt_free_strsplit (char **ptr) noexcept
169{ 178{
170 free (ptr[0]); 179 free (ptr[0]);
171 free (ptr); 180 free (ptr);
172} 181}
173 182
441 URxvt_boldItalicFont = 713, 450 URxvt_boldItalicFont = 713,
442 451
443 URxvt_view_up = 720, 452 URxvt_view_up = 720,
444 URxvt_view_down = 721, 453 URxvt_view_down = 721,
445 454
455 URxvt_cellinfo = 776, // returns font cell width, height etc.
446 URxvt_perl = 777, // for use by perl extensions, starts with "extension-name;" 456 URxvt_perl = 777, // for use by perl extensions, starts with "extension-name;"
447}; 457};
448 458
449/* Words starting with `Color_' are colours. Others are counts */ 459/* Words starting with `Color_' are colours. Others are counts */
450/* 460/*
572#define PrivMode_vt52 (1UL<<18) 582#define PrivMode_vt52 (1UL<<18)
573#define PrivMode_LFNL (1UL<<19) 583#define PrivMode_LFNL (1UL<<19)
574#define PrivMode_MouseBtnEvent (1UL<<20) 584#define PrivMode_MouseBtnEvent (1UL<<20)
575#define PrivMode_MouseAnyEvent (1UL<<21) 585#define PrivMode_MouseAnyEvent (1UL<<21)
576#define PrivMode_BracketPaste (1UL<<22) 586#define PrivMode_BracketPaste (1UL<<22)
577#define PrivMode_ExtModeMouse (1UL<<23) // xterm pseudo-utf-8 hack 587#define PrivMode_ExtMouseUTF8 (1UL<<23) // xterm pseudo-utf-8 hack
578#define PrivMode_ExtMouseRight (1UL<<24) // xterm pseudo-utf-8, but works in non-utf-8-locales 588#define PrivMode_ExtMouseUrxvt (1UL<<24) // xterm pseudo-utf-8, but works in non-utf-8-locales
579#define PrivMode_BlinkingCursor (1UL<<25) 589#define PrivMode_BlinkingCursor (1UL<<25)
580#define PrivMode_FocusEvent (1UL<<26) 590#define PrivMode_FocusEvent (1UL<<26)
591#define PrivMode_ExtMouseSGR (1UL<<27)
581 592
582#define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11|PrivMode_MouseBtnEvent|PrivMode_MouseAnyEvent) 593#define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11|PrivMode_MouseBtnEvent|PrivMode_MouseAnyEvent)
583 594
584#ifdef ALLOW_132_MODE 595#ifdef ALLOW_132_MODE
585# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) 596# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK)
768/****************************************************************************/ 779/****************************************************************************/
769 780
770#define UNICODE_MASK 0x1fffffUL 781#define UNICODE_MASK 0x1fffffUL
771 782
772#if UNICODE_3 783#if UNICODE_3
773# define COMPOSE_LO 0x40000000UL 784# define COMPOSE_LO 0x110000UL
774# define COMPOSE_HI 0x400fffffUL 785# define COMPOSE_HI 0x1fffffUL
775# define IS_COMPOSE(n) ((int32_t)(n) >= COMPOSE_LO) 786# define IS_COMPOSE(n) ((int32_t)(n) >= COMPOSE_LO)
776#else 787#else
777# if ENABLE_PERL 788# if ENABLE_PERL
778# define COMPOSE_LO 0xe000UL // our _own_ functions don't like (illegal) surrogates 789# define COMPOSE_LO 0xe000UL // our _own_ functions don't like (illegal) surrogates
779# define COMPOSE_HI 0xf8ffUL // in utf-8, so use private use area only 790# define COMPOSE_HI 0xf8ffUL // in utf-8, so use private use area only
788// compose chars are used to represent composite characters 799// compose chars are used to represent composite characters
789// that are not representable in unicode, as well as characters 800// that are not representable in unicode, as well as characters
790// not fitting in the BMP. 801// not fitting in the BMP.
791struct compose_char 802struct compose_char
792{ 803{
793 unicode_t c1, c2; // any chars != NOCHAR are valid 804 // c1 can be any character != NOCHAR, including another compose character
805 // c2 must always be a zero-width character or NOCHAR, in case
806 // this just extends beyond the BMP.
807 unicode_t c1, c2;
794 808
795 compose_char (unicode_t c1, unicode_t c2) 809 compose_char (unicode_t c1, unicode_t c2)
796 : c1(c1), c2(c2) 810 : c1(c1), c2(c2)
797 { } 811 { }
798}; 812};
799 813
800class rxvt_composite_vec 814struct rxvt_composite_vec
801{ 815{
802 vector<compose_char> v; 816 vector<compose_char> v;
803public: 817
804 text_t compose (unicode_t c1, unicode_t c2 = NOCHAR); 818 text_t compose (unicode_t c1, unicode_t c2 = NOCHAR);
805 int expand (unicode_t c, wchar_t *r); 819 template<typename T> int expand (unicode_t c, T *r);
820 int expand (unicode_t c) { return expand (c, (text_t *)0); }
806 compose_char *operator [](text_t c) 821 compose_char *operator [](text_t c)
807 { 822 {
808 return c >= COMPOSE_LO && c < COMPOSE_LO + v.size () 823 return c >= COMPOSE_LO && c < COMPOSE_LO + v.size ()
809 ? &v[c - COMPOSE_LO] 824 ? &v[c - COMPOSE_LO]
810 : 0; 825 : 0;
811 } 826 }
812}; 827};
813 828
814extern class rxvt_composite_vec rxvt_composite; 829extern class rxvt_composite_vec rxvt_composite;
830#endif
831
832#if 0
833// expand the sequence into a static array
834// works even without ENABLE_COMBINING
835template<typename T, int max_size_ = 48>
836struct rxvt_compose_expand_static
837{
838#if ENABLE_COMBINING
839 enum { max_size = max_size_ };
840
841 T chrs[max_size];
842
843 // expand sequence and return start ptr
844 // guarantees at least one output
845 // get the length with length () on that ptr
846 T *operator ()(unicode_t c)
847 {
848 T *cur = chrs + max_size;
849
850 while (ecb_expect_false (IS_COMPOSE (c)))
851 if (ecb_expect_true (c - COMPOSE_LO < rxvt_composite.v.size ()))
852 {
853 compose_char *cc = &rxvt_composite.v [c - COMPOSE_LO];
854
855 if (cc->c2 != NOCHAR)
856 {
857 cur -= cur > chrs; *cur = cc->c2;
858 }
859
860 c = cc->c1;
861 }
862 else
863 c = NOCHAR;
864
865 cur -= cur > chrs; *cur = c;
866
867 return cur;
868 }
869
870 int length (T *first)
871 {
872 return chrs + max_size - first;
873 }
874#else
875 T chr;
876
877 T *operator ()(text_t c);
878 {
879 chr = c;
880 return &chr;
881 }
882
883 int length (T *first)
884 {
885 return 1;
886 }
887#endif
888};
815#endif 889#endif
816 890
817/****************************************************************************/ 891/****************************************************************************/
818 892
819#ifdef KEYSYM_RESOURCE 893#ifdef KEYSYM_RESOURCE
1028 current_screen:1, /* primary or secondary */ 1102 current_screen:1, /* primary or secondary */
1029 num_scr_allow:1, 1103 num_scr_allow:1,
1030 bypass_keystate:1, 1104 bypass_keystate:1,
1031#if ENABLE_FRILLS 1105#if ENABLE_FRILLS
1032 urgency_hint:1, 1106 urgency_hint:1,
1107 rewrap_always:1,
1108 rewrap_never:1,
1033#endif 1109#endif
1034#if CURSOR_BLINK 1110#if CURSOR_BLINK
1035 hidden_cursor:1, 1111 hidden_cursor:1,
1036#endif 1112#endif
1037#if TEXT_BLINK 1113#if TEXT_BLINK
1115#endif 1191#endif
1116 1192
1117#if ENABLE_OVERLAY 1193#if ENABLE_OVERLAY
1118 overlay_base ov; 1194 overlay_base ov;
1119 1195
1120 void scr_swap_overlay () NOTHROW; 1196 void scr_swap_overlay () noexcept;
1121 void scr_overlay_new (int x, int y, int w, int h) NOTHROW; 1197 void scr_overlay_new (int x, int y, int w, int h) noexcept;
1122 void scr_overlay_off () NOTHROW; 1198 void scr_overlay_off () noexcept;
1123 void scr_overlay_set (int x, int y, 1199 void scr_overlay_set (int x, int y,
1124 text_t text, 1200 text_t text,
1125 rend_t rend = OVERLAY_RSTYLE) NOTHROW; 1201 rend_t rend = OVERLAY_RSTYLE) noexcept;
1126 void scr_overlay_set (int x, int y, const char *s) NOTHROW; 1202 void scr_overlay_set (int x, int y, const char *s) noexcept;
1127 void scr_overlay_set (int x, int y, const wchar_t *s) NOTHROW; 1203 void scr_overlay_set (int x, int y, const wchar_t *s) noexcept;
1128#endif 1204#endif
1129 1205
1130 vector<void *> allocated; // free these memory blocks with free() 1206 vector<void *> allocated; // free these memory blocks with free()
1131 1207
1132 int parent_x, parent_y; // parent window position relative to root, only updated on demand 1208 int parent_x, parent_y; // parent window position relative to root, only updated on demand
1173# endif 1249# endif
1174#endif 1250#endif
1175 1251
1176 long vt_emask, vt_emask_perl, vt_emask_xim, vt_emask_mouse; 1252 long vt_emask, vt_emask_perl, vt_emask_xim, vt_emask_mouse;
1177 1253
1178 void vt_select_input () const NOTHROW 1254 void vt_select_input () const noexcept
1179 { 1255 {
1180 XSelectInput (dpy, vt, vt_emask | vt_emask_perl | vt_emask_xim | vt_emask_mouse); 1256 XSelectInput (dpy, vt, vt_emask | vt_emask_perl | vt_emask_xim | vt_emask_mouse);
1181 } 1257 }
1182 1258
1183#if ENABLE_PERL 1259#if ENABLE_PERL
1247 XPoint spot; // most recently sent spot position 1323 XPoint spot; // most recently sent spot position
1248 1324
1249 void im_destroy (); 1325 void im_destroy ();
1250 void im_cb (); im_watcher im_ev; 1326 void im_cb (); im_watcher im_ev;
1251 void im_set_size (XRectangle &size); 1327 void im_set_size (XRectangle &size);
1252 void im_set_position (XPoint &pos) NOTHROW; 1328 void im_set_position (XPoint &pos) noexcept;
1253 void im_set_color (unsigned long &fg, unsigned long &bg); 1329 void im_set_color (unsigned long &fg, unsigned long &bg);
1254 void im_set_preedit_area (XRectangle &preedit_rect, XRectangle &status_rect, const XRectangle &needed_rect); 1330 void im_set_preedit_area (XRectangle &preedit_rect, XRectangle &status_rect, const XRectangle &needed_rect);
1255 1331
1256 bool im_is_running (); 1332 bool im_is_running ();
1257 void im_send_spot (); 1333 void im_send_spot ();
1261 1337
1262 // command.C 1338 // command.C
1263 void key_press (XKeyEvent &ev); 1339 void key_press (XKeyEvent &ev);
1264 void key_release (XKeyEvent &ev); 1340 void key_release (XKeyEvent &ev);
1265 1341
1266 wchar_t next_char () NOTHROW; 1342 wchar_t next_char () noexcept;
1267 wchar_t cmd_getc () THROW ((class out_of_input)); 1343 wchar_t cmd_getc ();
1268 uint32_t next_octet () NOTHROW; 1344 uint32_t next_octet () noexcept;
1269 uint32_t cmd_get8 () THROW ((class out_of_input)); 1345 uint32_t cmd_get8 ();
1270 1346
1271 void cmd_parse (); 1347 void cmd_parse ();
1272 void mouse_report (XButtonEvent &ev); 1348 void mouse_report (XButtonEvent &ev);
1273 void button_press (XButtonEvent &ev); 1349 void button_press (XButtonEvent &ev);
1274 void button_release (XButtonEvent &ev); 1350 void button_release (XButtonEvent &ev);
1339 void set_widthheight (unsigned int newwidth, unsigned int newheight); 1415 void set_widthheight (unsigned int newwidth, unsigned int newheight);
1340 void get_window_origin (int &x, int &y); 1416 void get_window_origin (int &x, int &y);
1341 1417
1342 // screen.C 1418 // screen.C
1343 1419
1344 bool option (uint8_t opt) const NOTHROW 1420 bool option (uint8_t opt) const noexcept
1345 { 1421 {
1346 return options[opt >> 3] & (1 << (opt & 7)); 1422 return options[opt >> 3] & (1 << (opt & 7));
1347 } 1423 }
1348 1424
1349 void set_option (uint8_t opt, bool set = true) NOTHROW; 1425 void set_option (uint8_t opt, bool set = true) noexcept;
1350 1426
1351 int fgcolor_of (rend_t r) const NOTHROW 1427 int fgcolor_of (rend_t r) const noexcept
1352 { 1428 {
1353 int base = GET_BASEFG (r); 1429 int base = GET_BASEFG (r);
1354#ifndef NO_BRIGHTCOLOR 1430#ifndef NO_BRIGHTCOLOR
1355 if (r & RS_Bold 1431 if (r & RS_Bold
1356# if ENABLE_STYLES 1432# if ENABLE_STYLES
1360 base += minBrightCOLOR - minCOLOR; 1436 base += minBrightCOLOR - minCOLOR;
1361#endif 1437#endif
1362 return base; 1438 return base;
1363 } 1439 }
1364 1440
1365 int bgcolor_of (rend_t r) const NOTHROW 1441 int bgcolor_of (rend_t r) const noexcept
1366 { 1442 {
1367 int base = GET_BASEBG (r); 1443 int base = GET_BASEBG (r);
1368#ifndef NO_BRIGHTCOLOR 1444#ifndef NO_BRIGHTCOLOR
1369 if (r & RS_Blink 1445 if (r & RS_Blink
1370# if ENABLE_STYLES 1446# if ENABLE_STYLES
1375#endif 1451#endif
1376 return base; 1452 return base;
1377 } 1453 }
1378 1454
1379 // modifies first argument(!) 1455 // modifies first argument(!)
1380 void tt_paste (char *data, unsigned int len) NOTHROW; 1456 void tt_paste (char *data, unsigned int len) noexcept;
1381 void paste (char *data, unsigned int len) NOTHROW; 1457 void paste (char *data, unsigned int len) noexcept;
1382 void scr_alloc () NOTHROW; 1458 void scr_alloc () noexcept;
1383 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; 1459 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const noexcept;
1384 void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW; 1460 void scr_blank_screen_mem (line_t &l, rend_t efs) const noexcept;
1385 void scr_kill_char (line_t &l, int col) const NOTHROW; 1461 void scr_kill_char (line_t &l, int col) const noexcept;
1386 void scr_set_char_rend (line_t &l, int col, rend_t rend); 1462 void scr_set_char_rend (line_t &l, int col, rend_t rend);
1387 int scr_scroll_text (int row1, int row2, int count) NOTHROW; 1463 int scr_scroll_text (int row1, int row2, int count) noexcept;
1388 void copy_line (line_t &dst, line_t &src); 1464 void copy_line (line_t &dst, line_t &src);
1389 void scr_reset (); 1465 void scr_reset ();
1390 void scr_release () NOTHROW; 1466 void scr_release () noexcept;
1391 void scr_clear (bool really = false) NOTHROW; 1467 void scr_clear (bool really = false) noexcept;
1392 void scr_refresh () NOTHROW; 1468 void scr_refresh () noexcept;
1393 bool scr_refresh_rend (rend_t mask, rend_t value) NOTHROW; 1469 bool scr_refresh_rend (rend_t mask, rend_t value) noexcept;
1394 void scr_erase_screen (int mode) NOTHROW; 1470 void scr_erase_screen (int mode) noexcept;
1395#if ENABLE_FRILLS 1471#if ENABLE_FRILLS
1396 void scr_erase_savelines () NOTHROW; 1472 void scr_erase_savelines () noexcept;
1397 void scr_backindex () NOTHROW; 1473 void scr_backindex () noexcept;
1398 void scr_forwardindex () NOTHROW; 1474 void scr_forwardindex () noexcept;
1399#endif 1475#endif
1400 void scr_touch (bool refresh) NOTHROW; 1476 void scr_touch (bool refresh) noexcept;
1401 void scr_expose (int x, int y, int width, int height, bool refresh) NOTHROW; 1477 void scr_expose (int x, int y, int width, int height, bool refresh) noexcept;
1402 void scr_recolor (bool refresh = true) NOTHROW; 1478 void scr_recolor (bool refresh = true) noexcept;
1403 void scr_remap_chars () NOTHROW; 1479 void scr_remap_chars () noexcept;
1404 void scr_remap_chars (line_t &l) NOTHROW; 1480 void scr_remap_chars (line_t &l) noexcept;
1405 1481
1406 enum cursor_mode { SAVE, RESTORE }; 1482 enum cursor_mode { SAVE, RESTORE };
1407 1483
1408 void scr_poweron (); 1484 void scr_poweron ();
1409 void scr_soft_reset () NOTHROW; 1485 void scr_soft_reset () noexcept;
1410 void scr_cursor (cursor_mode mode) NOTHROW; 1486 void scr_cursor (cursor_mode mode) noexcept;
1411 void scr_do_wrap () NOTHROW; 1487 void scr_do_wrap () noexcept;
1412 void scr_swap_screen () NOTHROW; 1488 void scr_swap_screen () noexcept;
1413 void scr_change_screen (int scrn); 1489 void scr_change_screen (int scrn);
1414 void scr_color (unsigned int color, int fgbg) NOTHROW; 1490 void scr_color (unsigned int color, int fgbg) noexcept;
1415 void scr_rendition (int set, int style) NOTHROW; 1491 void scr_rendition (int set, int style) noexcept;
1416 void scr_add_lines (const wchar_t *str, int len, int minlines = 0) NOTHROW; 1492 void scr_add_lines (const wchar_t *str, int len, int minlines = 0) noexcept;
1417 void scr_backspace () NOTHROW; 1493 void scr_backspace () noexcept;
1418 void scr_tab (int count, bool ht = false) NOTHROW; 1494 void scr_tab (int count, bool ht = false) noexcept;
1419 void scr_gotorc (int row, int col, int relative) NOTHROW; 1495 void scr_gotorc (int row, int col, int relative) noexcept;
1420 void scr_index (enum page_dirn direction) NOTHROW; 1496 void scr_index (enum page_dirn direction) noexcept;
1421 void scr_erase_line (int mode) NOTHROW; 1497 void scr_erase_line (int mode) noexcept;
1422 void scr_E () NOTHROW; 1498 void scr_E () noexcept;
1423 void scr_insdel_lines (int count, int insdel) NOTHROW; 1499 void scr_insdel_lines (int count, int insdel) noexcept;
1424 void scr_insdel_chars (int count, int insdel) NOTHROW; 1500 void scr_insdel_chars (int count, int insdel) noexcept;
1425 void scr_scroll_region (int top, int bot) NOTHROW; 1501 void scr_scroll_region (int top, int bot) noexcept;
1426 void scr_cursor_visible (int mode) NOTHROW; 1502 void scr_cursor_visible (int mode) noexcept;
1427 void scr_autowrap (int mode) NOTHROW; 1503 void scr_autowrap (int mode) noexcept;
1428 void scr_relative_origin (int mode) NOTHROW; 1504 void scr_relative_origin (int mode) noexcept;
1429 void scr_insert_mode (int mode) NOTHROW; 1505 void scr_insert_mode (int mode) noexcept;
1430 void scr_set_tab (int mode) NOTHROW; 1506 void scr_set_tab (int mode) noexcept;
1431 void scr_rvideo_mode (bool on) NOTHROW; 1507 void scr_rvideo_mode (bool on) noexcept;
1432 void scr_report_position () NOTHROW; 1508 void scr_report_position () noexcept;
1433 void set_font_style () NOTHROW; 1509 void set_font_style () noexcept;
1434 void scr_charset_choose (int set) NOTHROW; 1510 void scr_charset_choose (int set) noexcept;
1435 void scr_charset_set (int set, unsigned int ch) NOTHROW; 1511 void scr_charset_set (int set, unsigned int ch) noexcept;
1436 void scr_move_to (int y, int len) NOTHROW; 1512 void scr_move_to (int y, int len) noexcept;
1437 bool scr_page (int nlines) NOTHROW; 1513 bool scr_page (int nlines) noexcept;
1438 bool scr_page (enum page_dirn direction, int nlines) NOTHROW 1514 bool scr_page (enum page_dirn direction, int nlines) noexcept
1439 { 1515 {
1440 return scr_page (direction * nlines); 1516 return scr_page (direction * nlines);
1441 } 1517 }
1442 bool scr_changeview (int new_view_start) NOTHROW; 1518 bool scr_changeview (int new_view_start) noexcept;
1443 void scr_bell () NOTHROW; 1519 void scr_bell () noexcept;
1444 void scr_printscreen (int fullhist) NOTHROW; 1520 void scr_printscreen (int fullhist) noexcept;
1445 void scr_xor_rect (int beg_row, int beg_col, int end_row, int end_col, rend_t rstyle1, rend_t rstyle2) NOTHROW; 1521 void scr_xor_rect (int beg_row, int beg_col, int end_row, int end_col, rend_t rstyle1, rend_t rstyle2) noexcept;
1446 void scr_xor_span (int beg_row, int beg_col, int end_row, int end_col, rend_t rstyle) NOTHROW; 1522 void scr_xor_span (int beg_row, int beg_col, int end_row, int end_col, rend_t rstyle) noexcept;
1447 void scr_reverse_selection () NOTHROW; 1523 void scr_reverse_selection () noexcept;
1448 void scr_dump (int fd) NOTHROW; 1524 void scr_dump (int fd) noexcept;
1449 1525
1450 void selection_check (int check_more) NOTHROW; 1526 void selection_check (int check_more) noexcept;
1451 void selection_changed () NOTHROW; /* sets want_refresh, corrects coordinates */ 1527 void selection_changed () noexcept; /* sets want_refresh, corrects coordinates */
1452 void selection_request (Time tm, int selnum = Sel_Primary) NOTHROW; 1528 void selection_request (Time tm, int selnum = Sel_Primary) noexcept;
1453 void selection_clear (bool clipboard = false) NOTHROW; 1529 void selection_clear (bool clipboard = false) noexcept;
1454 void selection_make (Time tm); 1530 void selection_make (Time tm);
1455 bool selection_grab (Time tm, bool clipboard = false) NOTHROW; 1531 bool selection_grab (Time tm, bool clipboard = false) noexcept;
1456 void selection_start_colrow (int col, int row) NOTHROW; 1532 void selection_start_colrow (int col, int row) noexcept;
1457 void selection_delimit_word (enum page_dirn dirn, const row_col_t *mark, row_col_t *ret) NOTHROW; 1533 void selection_delimit_word (enum page_dirn dirn, const row_col_t *mark, row_col_t *ret) noexcept;
1458 void selection_extend_colrow (int32_t col, int32_t row, int button3, int buttonpress, int clickchange) NOTHROW; 1534 void selection_extend_colrow (int32_t col, int32_t row, int button3, int buttonpress, int clickchange) noexcept;
1459 void selection_remove_trailing_spaces () NOTHROW; 1535 void selection_remove_trailing_spaces () noexcept;
1460 void selection_send (const XSelectionRequestEvent &rq) NOTHROW; 1536 void selection_send (const XSelectionRequestEvent &rq) noexcept;
1461 void selection_click (int clicks, int x, int y) NOTHROW; 1537 void selection_click (int clicks, int x, int y) noexcept;
1462 void selection_extend (int x, int y, int flag) NOTHROW; 1538 void selection_extend (int x, int y, int flag) noexcept;
1463 void selection_rotate (int x, int y) NOTHROW; 1539 void selection_rotate (int x, int y) noexcept;
1464 1540
1465 // xdefaults.C 1541 // xdefaults.C
1466 void rxvt_usage (int type); 1542 void rxvt_usage (int type);
1467 const char **get_options (int argc, const char *const *argv); 1543 const char **get_options (int argc, const char *const *argv);
1468 int parse_keysym (const char *str, unsigned int &state); 1544 int parse_keysym (const char *str, unsigned int &state);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines