- /* Help box */
- int l = 0;
- DrawBox( p_sys->w, y++, 0, h, COLS, _(" Help "), p_sys->b_color );
-
- if( p_sys->b_color )
- wcolor_set( p_sys->w, C_CATEGORY, NULL );
- MainBoxWrite( p_intf, l++, 1, _("[Display]") );
- if( p_sys->b_color )
- wcolor_set( p_sys->w, C_DEFAULT, NULL );
- MainBoxWrite( p_intf, l++, 1, _(" h,H Show/Hide help box") );
- MainBoxWrite( p_intf, l++, 1, _(" i Show/Hide info box") );
- MainBoxWrite( p_intf, l++, 1, _(" m Show/Hide metadata box") );
- MainBoxWrite( p_intf, l++, 1, _(" L Show/Hide messages box") );
- MainBoxWrite( p_intf, l++, 1, _(" P Show/Hide playlist box") );
- MainBoxWrite( p_intf, l++, 1, _(" B Show/Hide filebrowser") );
- MainBoxWrite( p_intf, l++, 1, _(" x Show/Hide objects box") );
- MainBoxWrite( p_intf, l++, 1, _(" S Show/Hide statistics box" ) );
- MainBoxWrite( p_intf, l++, 1, _(" c Switch color on/off") );
- MainBoxWrite( p_intf, l++, 1, _(" Esc Close Add/Search entry") );
- MainBoxWrite( p_intf, l++, 1, "" );
-
- if( p_sys->b_color )
- wcolor_set( p_sys->w, C_CATEGORY, NULL );
- MainBoxWrite( p_intf, l++, 1, _("[Global]") );
- if( p_sys->b_color )
- wcolor_set( p_sys->w, C_DEFAULT, NULL );
- MainBoxWrite( p_intf, l++, 1, _(" q, Q, Esc Quit") );
- MainBoxWrite( p_intf, l++, 1, _(" s Stop") );
- MainBoxWrite( p_intf, l++, 1, _(" <space> Pause/Play") );
- MainBoxWrite( p_intf, l++, 1, _(" f Toggle Fullscreen") );
- MainBoxWrite( p_intf, l++, 1, _(" n, p Next/Previous playlist item") );
- MainBoxWrite( p_intf, l++, 1, _(" [, ] Next/Previous title") );
- MainBoxWrite( p_intf, l++, 1, _(" <, > Next/Previous chapter") );
- MainBoxWrite( p_intf, l++, 1, _(" <right> Seek +1%%") );
- MainBoxWrite( p_intf, l++, 1, _(" <left> Seek -1%%") );
- MainBoxWrite( p_intf, l++, 1, _(" a Volume Up") );
- MainBoxWrite( p_intf, l++, 1, _(" z Volume Down") );
- MainBoxWrite( p_intf, l++, 1, "" );
-
- if( p_sys->b_color )
- wcolor_set( p_sys->w, C_CATEGORY, NULL );
- MainBoxWrite( p_intf, l++, 1, _("[Playlist]") );
- if( p_sys->b_color )
- wcolor_set( p_sys->w, C_DEFAULT, NULL );
- MainBoxWrite( p_intf, l++, 1, _(" r Toggle Random playing") );
- MainBoxWrite( p_intf, l++, 1, _(" l Toggle Loop Playlist") );
- MainBoxWrite( p_intf, l++, 1, _(" R Toggle Repeat item") );
- MainBoxWrite( p_intf, l++, 1, _(" o Order Playlist by title") );
- MainBoxWrite( p_intf, l++, 1, _(" O Reverse order Playlist by title") );
- MainBoxWrite( p_intf, l++, 1, _(" g Go to the current playing item") );
- MainBoxWrite( p_intf, l++, 1, _(" / Look for an item") );
- MainBoxWrite( p_intf, l++, 1, _(" A Add an entry") );
- MainBoxWrite( p_intf, l++, 1, _(" D, <del> Delete an entry") );
- MainBoxWrite( p_intf, l++, 1, _(" <backspace> Delete an entry") );
- MainBoxWrite( p_intf, l++, 1, _(" e Eject (if stopped)") );
- MainBoxWrite( p_intf, l++, 1, "" );
-
- if( p_sys->b_color )
- wcolor_set( p_sys->w, C_CATEGORY, NULL );
- MainBoxWrite( p_intf, l++, 1, _("[Filebrowser]") );
- if( p_sys->b_color )
- wcolor_set( p_sys->w, C_DEFAULT, NULL );
- MainBoxWrite( p_intf, l++, 1, _(" <enter> Add the selected file to the playlist") );
- MainBoxWrite( p_intf, l++, 1, _(" <space> Add the selected directory to the playlist") );
- MainBoxWrite( p_intf, l++, 1, _(" . Show/Hide hidden files") );
- MainBoxWrite( p_intf, l++, 1, "" );
-
- if( p_sys->b_color )
- wcolor_set( p_sys->w, C_CATEGORY, NULL );
- MainBoxWrite( p_intf, l++, 1, _("[Boxes]") );
- if( p_sys->b_color )
- wcolor_set( p_sys->w, C_DEFAULT, NULL );
- MainBoxWrite( p_intf, l++, 1, _(" <up>,<down> Navigate through the box line by line") );
- MainBoxWrite( p_intf, l++, 1, _(" <pgup>,<pgdown> Navigate through the box page by page") );
- MainBoxWrite( p_intf, l++, 1, "" );
-
- if( p_sys->b_color )
- wcolor_set( p_sys->w, C_CATEGORY, NULL );
- MainBoxWrite( p_intf, l++, 1, _("[Player]") );
- if( p_sys->b_color )
- wcolor_set( p_sys->w, C_DEFAULT, NULL );
- MainBoxWrite( p_intf, l++, 1, _(" <up>,<down> Seek +/-5%%") );
- MainBoxWrite( p_intf, l++, 1, "" );
-
- if( p_sys->b_color )
- wcolor_set( p_sys->w, C_CATEGORY, NULL );
- MainBoxWrite( p_intf, l++, 1, _("[Miscellaneous]") );
- if( p_sys->b_color )
- wcolor_set( p_sys->w, C_DEFAULT, NULL );
- MainBoxWrite( p_intf, l++, 1, _(" Ctrl-l Refresh the screen") );
-
- p_sys->i_box_lines_total = l;
- if( p_sys->i_box_start >= p_sys->i_box_lines_total )
- {
- p_sys->i_box_start = p_sys->i_box_lines_total - 1;
- }
-
- if( l - p_sys->i_box_start < p_sys->i_box_lines )
- {
- y += l - p_sys->i_box_start;
- }
- else
- {
- y += p_sys->i_box_lines;