-VG_STATIC void _vg_console_draw(void)
-{
-#if 0
- if( !vg_console.enabled )
- return;
-
- SDL_AtomicLock( &log_print_sl );
-
- int ptr = vg_log.buffer_line_current;
- int const fh = 14,
- log_lines = 32;
- int console_lines = VG_MIN( log_lines, vg_log.buffer_line_count );
-
- vg_uictx.cursor[0] = 0;
- vg_uictx.cursor[1] = 0;
- vg_uictx.cursor[3] = log_lines*fh;
- ui_fill_x();
-
- /*
- * log
- */
- ui_new_node();
- {
- ui_fill_rect( vg_uictx.cursor, 0x77181818 );
-
- vg_uictx.cursor[3] = fh;
- ui_align_bottom();
-
- for( int i=0; i<console_lines; i ++ ){
- ptr --;
-
- if( ptr < 0 )
- ptr = vg_list_size( vg_log.buffer )-1;
-
- ui_text( vg_uictx.cursor, vg_log.buffer[ptr], 1, 0 );
- vg_uictx.cursor[1] -= fh;
- }
-
- }
- ui_end_down();
-
-
- /* Input area */
- vg_uictx.cursor[1] += 2;
- vg_uictx.cursor[3] = fh;
-
- ui_new_node();
- {
- ui_fill_rect( vg_uictx.cursor, 0x77111111 );
- ui_text( vg_uictx.cursor, vg_console.input, 1, 0 );
-
- int start = VG_MIN( vg_console.cursor_pos, vg_console.cursor_user ),
- end = VG_MAX( vg_console.cursor_pos, vg_console.cursor_user );
-
- vg_uictx.cursor[0] = start * UI_GLYPH_SPACING_X;
- vg_uictx.cursor[2] = (start == end? 0.5f: (float)(end-start))
- * (float)UI_GLYPH_SPACING_X;
-
- ui_fill_rect( vg_uictx.cursor, 0x66ffffff );
- }
- ui_end_down();
-
-
- /* suggestions */
- if( vg_console.suggestion_count ){
- vg_uictx.cursor[0] += UI_GLYPH_SPACING_X * vg_console.suggestion_pastepos;
- vg_uictx.cursor[1] += 2;
- vg_uictx.cursor[3] = vg_console.suggestion_count * fh;
- vg_uictx.cursor[2] = UI_GLYPH_SPACING_X * vg_console.suggestion_maxlen;
-
- ui_new_node();
- {
- ui_fill_rect( vg_uictx.cursor, 0x77040404 );
-
- vg_uictx.cursor[3] = fh;
- for( int i=0; i<vg_console.suggestion_count; i ++ ){
- if( i == vg_console.suggestion_select )
- ui_fill_rect( vg_uictx.cursor, 0x66a0e508 );
-
- ui_text( vg_uictx.cursor, vg_console.suggestions[i].str, 1, 0 );
- vg_uictx.cursor[1] += fh;
- }
- }
- ui_end_down();
- }
-
- SDL_AtomicUnlock( &log_print_sl );
-#endif
-}
-
-VG_STATIC int _vg_console_list( int argc, char const *argv[] )
-{