diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd.c | 8 | ||||
| -rw-r--r-- | src/irc.c | 4 | ||||
| -rw-r--r-- | src/screen.c | 4 | ||||
| -rw-r--r-- | src/screen.h | 1 |
4 files changed, 11 insertions, 6 deletions
@@ -308,7 +308,7 @@ static void do_me(void) { scr_print_current(usernick); scr_print_current("\x02 "); scr_print_current(arg1); - scr_print_current("\n"); + scr_eol_current(); } static void do_ping(void) { @@ -360,7 +360,7 @@ static void do_query(void) { } scr_print_current("Starting conversation with "); scr_print_current(arg1); - scr_print_current("\n"); + scr_eol_current(); } static void do_msg(void) { @@ -370,7 +370,7 @@ static void do_msg(void) { scr_print_current(arg1); scr_print_current("* "); scr_print_current(arg2); - scr_print_current("\n"); + scr_eol_current(); txbuf_set_str3("PRIVMSG ", arg1, " :"); txbuf_append_str(arg2); @@ -397,7 +397,7 @@ static int cmd_local(void) { /* scr_print_current("command: "); scr_print_current(command); - scr_print_current("\n"); + scr_eol_current(); */ for(cmd_def = &command_defs[0]; cmd_def->cmd; cmd_def++) { @@ -497,7 +497,7 @@ static void parse_msg(void) { /* scr_print_active("RAW: "); scr_print_active(msg); - scr_print_active("\n"); + scr_eol_active(); */ /* if there's a final multiword arg... */ @@ -552,7 +552,7 @@ static void parse_msg(void) { if(msg_dest) { scr_print_current("got here, msg_dest is: "); scr_print_current(msg_dest); - scr_print_current("\n"); + scr_eol_current(); } */ diff --git a/src/screen.c b/src/screen.c index 4a5bbfc..cae2585 100644 --- a/src/screen.c +++ b/src/screen.c @@ -183,6 +183,10 @@ void scr_eol_active(void) { scr_putc(scr_active, '\n'); } +void scr_eol_current(void) { + scr_putc(scr_current, '\n'); +} + /* TODO: skip color codes (start with 0x03 or 0x04). if we're going to ever support utf-8, decode it here... also, 0x16 is supposed to be reverse video. not widely used/supported. diff --git a/src/screen.h b/src/screen.h index f8db33e..ee11e8c 100644 --- a/src/screen.h +++ b/src/screen.h @@ -84,6 +84,7 @@ void scr_activate_name(const char *name); void scr_putc(char s, char c); void scr_putc_active(char c); void scr_eol_active(void); +void scr_eol_current(void); /* print text to a screen. handles scrolling. this doesn't have to be the screen being displayed, of course; |
