Bookwyrm β development thread - Programming On Unix
                
		         
	        
        
	
	Users browsing this thread: 1 Guest(s)
| 
 | |||
| (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. | |||

