diff options
author | John Kohl <jtkohl@mit.edu> | 1989-11-29 08:34:20 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1989-11-29 08:34:20 +0000 |
commit | 4c89a46dc92d611e97733fae9ec6e4cb647987be (patch) | |
tree | 552728011db262f4abc8b793f4b22c5e4a382c9c /zwgc | |
parent | 84365d81df811ad16c28cfcddd765755c39a7b64 (diff) |
add shorthand of @b, @i for bold, italic
Diffstat (limited to 'zwgc')
-rw-r--r-- | zwgc/tty_filter.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/zwgc/tty_filter.c b/zwgc/tty_filter.c index 531cc2c..b1efeb0 100644 --- a/zwgc/tty_filter.c +++ b/zwgc/tty_filter.c @@ -226,9 +226,11 @@ static int do_mode_change(current_mode_p, text, text_length) current_mode_p->alignment = 'r'; /* font commands: */ - else if (fixed_string_eq("bold", text, text_length)) + else if (fixed_string_eq("bold", text, text_length) || + fixed_string_eq("b", text, text_length)) current_mode_p->bold_p = 1; - else if (fixed_string_eq("italic", text, text_length)) + else if (fixed_string_eq("italic", text, text_length) || + fixed_string_eq("i", text, text_length)) current_mode_p->italic_p = 1; else if (fixed_string_eq("roman", text, text_length)) { current_mode_p->bold_p = 0; |