linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
0005-inline-info.patch
(970B)
1 From 2eaab24a615e5f3ffc275128c5824821c36ed596 Mon Sep 17 00:00:00 2001
2 From: Jul <jul@qh.is>
3 Date: Tue, 5 Aug 2025 04:26:59 -0400
4 Subject: [PATCH] inline info
5
6 ---
7 src/tty_interface.c | 7 +++----
8 1 file changed, 3 insertions(+), 4 deletions(-)
9
10 diff --git a/src/tty_interface.c b/src/tty_interface.c
11 index b4a99c1..18ccd59 100644
12 --- a/src/tty_interface.c
13 +++ b/src/tty_interface.c
14 @@ -101,8 +101,7 @@ static void draw(tty_interface_t *state) {
15 tty_printf(tty, "%s%s", options->prompt, state->search);
16
17 if (options->show_info) {
18 - tty_printf(tty, "\n");
19 - tty_clearline(tty);
20 + tty_printf(tty, " ");
21 tty_printf(tty, "[%lu/%lu]", choices->available, choices->size);
22 }
23
24 @@ -115,8 +114,8 @@ static void draw(tty_interface_t *state) {
25 }
26 }
27
28 - if (num_lines + options->show_info)
29 - tty_moveup(tty, num_lines + options->show_info);
30 + if (num_lines)
31 + tty_moveup(tty, num_lines);
32
33 tty_setcol(tty, 0);
34 fputs(options->prompt, tty->fout);
35 --
36 2.51.0
37