Bookwyrm β€” development thread - Programming On Unix

Users browsing this thread: 1 Guest(s)
venam
Administrators
(28-05-2017, 05:00 AM)josuah Wrote: You can print terminal escape sequences like '\033[7m\033[K' to highlight a whole line, then '\033[m' at the end. Then you can redraw the screen at every cursor movement with '\033[H\033[J' which also put the cursor at the top.
This won't be portable, this is the reason we use curses, they are wrapper over termcap/terminfo.
On the command line it would be preferable to use `tput(1)` instead of those escape code you shared, same for any language.


Messages In This Thread
Bookwyrm β€” development thread - by Tmplt - 13-04-2017, 03:22 PM
RE: Bookwyrm β€” development thread - by Tmplt - 27-05-2017, 02:45 PM
RE: Bookwyrm β€” development thread - by venam - 28-05-2017, 07:02 AM
RE: Bookwyrm β€” development thread - by Tmplt - 28-05-2017, 09:26 AM
RE: Bookwyrm β€” development thread - by Tmplt - 09-06-2017, 09:28 PM
RE: Bookwyrm β€” development thread - by Tmplt - 19-06-2017, 05:45 PM
RE: Bookwyrm β€” development thread - by Tmplt - 07-08-2017, 07:44 PM
RE: Bookwyrm β€” development thread - by Tmplt - 12-01-2018, 08:16 AM
RE: Bookwyrm β€” development thread - by Tmplt - 12-01-2018, 07:40 PM
RE: Bookwyrm β€” development thread - by Tmplt - 24-02-2018, 08:48 AM
RE: Bookwyrm β€” development thread - by Tmplt - 05-05-2018, 08:50 AM
RE: Bookwyrm β€” development thread - by Tmplt - 11-05-2018, 07:59 PM
RE: Bookwyrm β€” development thread - by Tmplt - 27-05-2018, 06:17 PM
RE: Bookwyrm β€” development thread - by Tmplt - 26-12-2018, 10:18 PM