Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275097
b: refs/heads/master
c: 2ba908e
h: refs/heads/master
i:
  275095: 47ede56
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Oct 26, 2011
1 parent c1c2bfb commit e7e57ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 71172ed97cd4cd45c6ae70e594ba351798d11909
refs/heads/master: 2ba908ecfc4697dd856a526a9d4d4bd28e64a9cd
10 changes: 6 additions & 4 deletions trunk/tools/perf/util/ui/helpline.c
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <newt.h>

#include "../debug.h"
#include "helpline.h"
#include "ui.h"
#include "libslang.h"

void ui_helpline__pop(void)
{
newtPopHelpLine();
}

void ui_helpline__push(const char *msg)
{
newtPushHelpLine(msg);
SLsmg_gotorc(SLtt_Screen_Rows - 1, 0);
SLsmg_set_color(0);
SLsmg_write_nstring((char *)msg, SLtt_Screen_Cols);
SLsmg_refresh();
}

void ui_helpline__vpush(const char *fmt, va_list ap)
Expand Down Expand Up @@ -63,7 +65,7 @@ int ui_helpline__show_help(const char *format, va_list ap)

if (ui_helpline__last_msg[backlog - 1] == '\n') {
ui_helpline__puts(ui_helpline__last_msg);
newtRefresh();
SLsmg_refresh();
backlog = 0;
}
pthread_mutex_unlock(&ui__lock);
Expand Down

0 comments on commit e7e57ca

Please sign in to comment.