c++ - Add a scrollbar on Ncurses or make it like "more" -
c++ - Add a scrollbar on Ncurses or make it like "more" -
basically writing client programme receives response , logs server, client able send request server different information. used curses , output looks pretty good. looks vi, output @ top , user on client end come in command @ bottom. thing not able scroll back.. boss told me create "more command in linux" , want stick solution , add together scroll bar on side output window... thinking server sends logs randomly , it's impossible (or hard) create more...
if maintain list or array of lines in client , inquire ncurses paint range of lines sliding window, can slide window , downwards in response ^f ^b ^u ^d ^y ^e
commands, repaints screen different indexes.
i skip trying draw scrollbar though: out of place on linux system. not mc
has scrollbars. show content summary in bottom line, similar vim
's top
, bot
, all
, n%
when :set ruler
turned on, that'll sense @ home.
c++ c linux ncurses
Comments
Post a Comment