-1

Could someone share how can i create tui like this one with input boxex and search ?
What do i need?
tui

Philip Scot
  • 171
  • 2
  • 2
  • 9
  • 1
    https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/ BTW: Your question is off topic as it explicitly asks to search for a library. Not my rule :-) – Klaus Feb 16 '23 at 09:07
  • I did not know that i need alibrary for that :/ Thanx for your answer btw – Philip Scot Feb 16 '23 at 10:48

2 Answers2

1

Normally programmers use a ready to use library like ncurses.

You can also do it by hand if you really have to much time. To get for example the border lines of a dialog window you have to take a look at the current code page your terminal is emulating, for example: Code Page 850. As you can see, you will find single and double line boarders and also crossings and so on. Now you have to move your cursor to a given position, print that char from the code page and ... lots of work. Moving cursors itself can also be done by simple chars from your emulated terminal by using escape codes.

As said: Instead of doing it all by hand, simply use a lib like ncurses.

Klaus
  • 24,205
  • 7
  • 58
  • 113
0

You can use some python libraries like pyTermTk or textual, there is wide selection of libraries to choose from.