aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.c b/main.c
index 7c7cd51..77ef0a7 100644
--- a/main.c
+++ b/main.c
@@ -225,9 +225,9 @@ void enable_term_echo() {
void print_pure(struct input_event * ie) {
if (repeat_counters[ie -> code] != 1) {
- printf("%-15s x%-13d\r", key_names[ie -> code], repeat_counters[ie -> code]);
+ printf("\r%-15s x%-13d", key_names[ie -> code], repeat_counters[ie -> code]);
} else {
- printf("\r%s", key_names[ie -> code]);
+ printf("%s", key_names[ie -> code]);
}
fflush(stdout);
@@ -292,16 +292,16 @@ int main(int argc, char ** argv) {
if (ie.type == EV_KEY) {
if (ie.value == KEY_PRESS) {
- if (line_lock != -1 && line_lock != ie.code && !cfg -> enable_time) printf("\n");
+ if (line_lock != -1 && !cfg -> enable_time) printf("\n");
repeat_counters[ie.code] = 1;
- line_lock = ie.code;
- fp( & ie);
+ line_lock = ie.code;
+ fp(&ie);
}
if (ie.value == KEY_REPEAT) {
line_lock = ie.code;
repeat_counters[ie.code]++;
- fp( & ie);
+ fp(&ie);
}
if (ie.value == KEY_RELEASE) {