tuit

toolbox pour des tui - retour accueil

git clone git://bebou.netlib.re/tuit

Log | Files | Refs |

commit ae9096deb07b102539d545fdf0fad94866add98e
parent 3a31a373ce2daac694b0cd23d848dd83e47f083f
Auteurice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Thu, 12 Jun 2025 22:21:47 +0200

Renommer la variables pour l'impression des lignes

Diffstat:
Mchoose.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/choose.c b/choose.c @@ -35,13 +35,13 @@ int main(int argc, char **argv) { while(1) { tb_clear(); tb_printf(0,0,TB_DEFAULT,TB_DEFAULT,"> %s",buf); - int j=1; + int y=1; for (int i=0;i<tb_height();i++) { if(ishown[i+start]==-1) break; if (i==curline-2) - tb_printf(0,j++,TB_BLACK,TB_WHITE,"> %s",list[ishown[i+start]]); + tb_printf(0,y++,TB_BLACK,TB_WHITE,"> %s",list[ishown[i+start]]); else - tb_printf(0,j++,TB_DEFAULT,TB_DEFAULT," %s",list[ishown[i+start]]); + tb_printf(0,y++,TB_DEFAULT,TB_DEFAULT," %s",list[ishown[i+start]]); } tb_present(); tb_poll_event(&ev);