/*** Copy the soft label key area backing screen to the virtual screen. @function slk_noutrefresh @treturn bool `true`, if successful @see slk_noutrefresh(3x) @see curses.window:refresh */ static int Pslk_noutrefresh(lua_State *L) { #if LCURSES_POSIX_COMPLIANT return pushokresult(slk_noutrefresh()); #else return binding_notimplemented(L, "slk_noutrefresh", "curses"); #endif }
/******************************************************\ * Description: refresh all of the curses windows * \******************************************************/ void refreshall(WINS *win) { slk_noutrefresh(); /* refresh fkeys menu */ wnoutrefresh(win->hex_outline); /* refresh all windows*/ wnoutrefresh(win->ascii_outline); wnoutrefresh(win->scrollbar); wnoutrefresh(win->ascii); wnoutrefresh(win->address); wnoutrefresh(win->hex); }
/******************************************************\ * Description: Initialize function key menu interface* \******************************************************/ void init_fkeys() { slk_set(1, "Help", 1); /* init menu tabs */ slk_set(2, "Save", 1); slk_set(3, "Open", 1); slk_set(4, "Goto", 1); slk_set(5, "Find", 1); slk_set(7, "Hex Edit", 1); slk_set(8, "Quit", 1); slk_set(9, "Quit", 1); slk_noutrefresh(); /* refresh the screen */ }
int slk_refresh() { int code = ERR; #ifdef M_CURSES_TRACE __m_trace("slk_refresh(void)"); #endif if ((code = slk_noutrefresh()) == OK) code = doupdate(); return __m_return_code("slk_refresh", code); }
int slk_refresh(void) { PDC_LOG(("slk_refresh() - called\n")); return (slk_noutrefresh() == ERR) ? ERR : doupdate(); }
/******************************************************\ * Description: Determines the screen size of the the * * terminal and prompts for the user to * * change the screen. * \******************************************************/ RETSIGTYPE checkScreenSize(int sig) { int count; /* Avoid unused variable warning */ UNUSED(sig); clearScreen(windows); endwin(); init_screen(); /* init visuals */ slk_clear(); /* init menu bar */ slk_restore(); /* restore bottom menu*/ slk_noutrefresh(); doupdate(); /* recacl these values*/ BASE = (COLS - 6 - MIN_ADDR_LENGTH) / 4; /*base for the number */ hex_outline_width = (BASE * 3) + 3 + MIN_ADDR_LENGTH; MAXY = LINES - 3; hex_win_width = BASE * 3; ascii_outline_width = BASE + 2; ascii_win_width = BASE; maxlines = maxLines((fpIN != NULL) ? maxLoc(fpIN) : 0); currentLine = 0; SIZE_CH = TRUE; /* check for term size*/ if ((COLS < MIN_COLS) || (LINES < MIN_LINES)) { /* endwin(); printf("\n\n\n\nscreen size too small\n"); exit(0); */ init_fkeys(); /* define menu bar */ init_menu(windows); /* init windows */ clearScreen(windows); slk_clear(); mvwprintw(windows->hex, 0, 0, "Your screen is too small"); /*mvwprintw(windows->hex, 1, 2, "Resize it to continue");*/ refreshall(windows); doupdate(); } else { init_fkeys(); /* define menu bar */ init_menu(windows); /* init windows */ wmove(windows->hex,0,0); if (fpIN) /* if a file is open */ { for (count = 0; count <= MAXY && count <= maxLines(maxLoc(fpIN)); count++) outline(fpIN, count); mvwprintw(windows->cur_address, 0, 0, "%0*d", MIN_ADDR_LENGTH, 0); wmove(windows->hex,0,0); } refreshall(windows); wnoutrefresh(windows->cur_address); /* this next refresh is to put the cursor in the correct window */ wnoutrefresh(windows->hex); doupdate(); } }
int chkr_slk_noutrefresh(void) { return(slk_noutrefresh()); }
SCM gucu_slk_noutrefresh () { int ret = slk_noutrefresh (); RETURNTF (ret); }