summaryrefslogtreecommitdiff
path: root/src/format.c
AgeCommit message (Collapse)Author
2017-09-17Move the sbuf_utf8_nconcat test to its own fileJérémie Courrèges-Anglas
2017-09-17Rename concat_width to sbuf_utf8_nconcat, and move it to sbuf.cJérémie Courrèges-Anglas
This function appends n UTF-8 characters to its sbuf parameter. Falls back to bytes in a non-UTF-8 locale. If width = -1, it appends the whole input string.
2017-09-17Add a test program to exercise concat_width()Will Storey
This program can be run using `make check`. In order to do this, you will need to run `autogen.sh` again.
2017-09-17Handle UTF-8 in concat_width()Jérémie Courrèges-Anglas
Ensure that we don't truncate UTF-8 characters in %42s-style format strings. Prompted by a similar diff by Will Storey <will@summercat.com>, that made use of the wide char API. I find it simpler to just handle UTF-8.
2016-11-17Add xrandr supportMathieu OTHACEHE
Drop deprecated xinerama support and replace it with xrandr. Signed-off-by: Mathieu OTHACEHE <m.othacehe@gmail.com>
2008-10-12PID support for format_stringAntti Nykänen
2008-06-20add a maxsize formatter character to format_stringShawn
2006-03-16remove tabs and trailing whitespace.sabetts
2006-03-15(init_user_commands): add optional argument to "info"sabetts
(cmd_info): handle optional argument * src/format.c: new file * src/format.h: new file * Makefile.am (ratpoison_SOURCES): add format.c and format.h * src/actions.c (set_infofmt): new function (wingravity_to_string): char * instead of static char * because needed in format.c (cmd_info): use format_string * src/actions.h (wingravity_to_string): add prototype * src/data.h (info_fmt): new variable * src/main.c (init_defaults): set a value for defaults.info_fmt * src/ratpoison.h: include format.h * src/windows.c (get_window_list): use format_string (isdigit): remove function as the formatting is now done in format.c (concat_width): likewise (format_window_name): likewise