search for: r_setoptionwidth

Displaying 4 results from an estimated 4 matches for "r_setoptionwidth".

2017 Sep 01
3
patch: automatically adjust width option when terminal is resized
...005,9 @@ > // introduced in readline 4.0: only used for >= 6.3 > #ifdef HAVE_RL_RESIZE_TERMINAL > rl_resize_terminal(); > + int rl_height, rl_width; > + rl_get_screen_size(&rl_height,&rl_width); > + R_SetOptionWidth(rl_width); > #endif > } > #endif The 'width' option affects more than printing to the console; it also affects, for example, printing to a file via sink() or capture.output(). So doing this unconditionally would not be a good idea. Making it available as an option for...
2017 Aug 28
2
patch: automatically adjust width option when terminal is resized
...4204023 +0200 @@ -1005,6 +1005,9 @@ // introduced in readline 4.0: only used for >= 6.3 #ifdef HAVE_RL_RESIZE_TERMINAL rl_resize_terminal(); + int rl_height, rl_width; + rl_get_screen_size(&rl_height,&rl_width); + R_SetOptionWidth(rl_width); #endif } #endif I tried it out and it works perfectly here. Of course there should be an option to switch this on and off but you get the idea. What do you think? Thanks, Ralf
2017 Sep 01
0
patch: automatically adjust width option when terminal is resized
...only used for >= 6.3 >>>> #ifdef HAVE_RL_RESIZE_TERMINAL >>>> rl_resize_terminal(); >>>> + int rl_height, rl_width; >>>> + rl_get_screen_size(&rl_height,&rl_width); >>>> + R_SetOptionWidth(rl_width); >>>> #endif >>>> } >>>> #endif >>> >>> The 'width' option affects more than printing to the console; it also >>> affects, for example, printing to a file via sink() or >>> capture.output(). So do...
2017 Sep 01
0
patch: automatically adjust width option when terminal is resized
...4204023 +0200 @@ -1005,6 +1005,9 @@ // introduced in readline 4.0: only used for >= 6.3 #ifdef HAVE_RL_RESIZE_TERMINAL rl_resize_terminal(); + int rl_height, rl_width; + rl_get_screen_size(&rl_height,&rl_width); + R_SetOptionWidth(rl_width); #endif } #endif > I tried it out and it works perfectly here. Of course there should be > an option to switch this on and off but you get the idea. What do you > think? It would be much appreciated if you considered it. Thanks Ralf