
/*
CLASS {NATIVE_Console|_Java}, NATIVE :

IMPORT, ANYWAY: {Console} .

NATIVE: "///COPY NATIVE_Console.java" .
*/

	import java.util.ArrayList;

    public class NATIVE_Console
    {
    
        public static byte Last_foreground_color = 7;
        public static byte Last_background_color = 0;
        public static boolean End_input_detected;

/*
CONST STR:
    NATIVE_Import_console = @
    ""
    
    NATIVE_Support_console_ANSI = @
    "	RESULT = false;"

    NATIVE_Console_color = @
    "NATIVE_Console.Last_foreground_color = X_C;"

    NATIVE_Console_colors = @
    "NATIVE_Console.Last_foreground_color = X_F;"
    "NATIVE_Console.Last_background_color = X_B;"
    
    NATIVE_Get_console_color = @
    "if (X_Which == 0)"
    "   RESULT = NATIVE_Console.Last_foreground_color;"
    "else RESULT = NATIVE_Console.Last_background_color;"

	NATIVE_Console_ANSI_colors = @
	"	"
	
	NATIVE_Write_direct  = @
	"  AL4_system.WriteLine(X_S);"
	
	NATIVE_apply_color_ansi = @
	"	"
	
	NATIVE_Get_char = @
	"	if (AL4_system.sim_Read != null) {"
	"		RESULT = AL4_system.sim_Read.do_get_char();"
	"		if (RESULT.length() == 1 && RESULT.charAt(0) == (char)26)"
	"			NATIVE_Console.End_input_detected = true;"
	"   }"
	
	NATIVE_End_input = @
	"  RESULT = NATIVE_Console.End_input_detected;"
	
	NATIVE_Input_ready = @
	"	if (AL4_system.sim_Read != null) {"
	"		RESULT = AL4_system.sim_Read.is_char_ready();"
	"	}"
	
	NATIVE_Key_pressed = @
	"	RESULT = false;"
	
	NATIVE_Key_pressed_async = @
	"	RESULT = 0;"
	
	NATIVE_Cursor_X = @
	"	RESULT = 0;"
	
	NATIVE_Cursor_Y = @
	"	RESULT = 0;"
	
	NATIVE_Set_cursor_pos = @
	"	"
	
	NATIVE_Console_height = @
	"	RESULT = 24;"
	
	NATIVE_Console_width = @
	"	RESULT = 80;"
	
	NATIVE_Set_console_size = @
	"	"
	
    .
    

    
END
*/
	}
	

